zcmd command

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • der befehl sieht so aus?
    COMMAND:mv(playerid,params[])
    {
    #pragma unused params
    if(ImTutorial[playerid] != 0)return SendClientMessage(playerid,GRAU,"Du kannst keine Befehle nutzen,da du im Tutorial bist.");
    if(GetPVarInt(playerid,"Eingeloggt") == 0)return SendClientMessage(playerid,GRAU,"Du bist nicht eingeloggt!");
    if(Spieler[playerid][pAWAYFROMKEYBOARD] == 1)return SendClientMessage(playerid,WRONGCMD,"Du bist im AFK-Modus und kannst somit keine Befehle nutzen."),SendClientMessage(playerid,WRONGCMD,"BENUTZE: /back");
    if(Spieler[playerid][pInPrison] == 1)return SendClientMessage(playerid,GRAU,"Du bist im Prison.");
    if(Spieler[playerid][pFriedhof] == 1)return SendClientMessage(playerid,GRAU,"Du bist Tot.");
    if(Spieler[playerid][pDeath] == 1)return SendClientMessage(playerid,GRAU,"Du bist verletzt.");
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    if(IsPlayerInRangeOfPoint(playerid,10,344.97174072266,1797.9162597656,18.682033538818))
    {
    if(isPlayerInFrakt(playerid,6) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,16) || isPlayerAnAdmin(playerid,6) && Spieler[playerid][pAdminOnduty] == true)
    {
    if(torstatus[0] == 0)
    {
    MoveDynamicObject(tor[0],344.97174072266,1797.9162597656,18.682033538818 -10,5);
    torstatus[0] = 1;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    else
    {
    MoveDynamicObject(tor[0],344.97174072266,1797.9162597656,18.682033538818,5);
    torstatus[0] = 0;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    }
    return SendClientMessage(playerid,GRAU,"Du bist nicht in der jeweiligen Fraktion.");
    }
    if(IsPlayerInRangeOfPoint(playerid,10,96.696571350098,1920.7476806641,17.352685928345))
    {
    if(isPlayerInFrakt(playerid,6) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,16) || isPlayerAnAdmin(playerid,6) && Spieler[playerid][pAdminOnduty] == true)
    {
    if(torstatus[1] == 0)
    {
    MoveDynamicObject(tor[1],96.696571350098,1920.7476806641,17.352685928345 -10,5);
    torstatus[1] = 1;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    else
    {
    MoveDynamicObject(tor[1],96.696571350098,1920.7476806641,17.352685928345 ,5);
    torstatus[1] = 0;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    }
    return SendClientMessage(playerid,GRAU,"Du bist nicht in der jeweiligen Fraktion.");
    }
    if(IsPlayerInRangeOfPoint(playerid,10,1713.53,-1663.18,9.88))
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,6) || isPlayerInFrakt(playerid,16) || isPlayerAnAdmin(playerid,6) && Spieler[playerid][pAdminOnduty] == true)
    {
    if(torstatus[2] == 0)
    {
    MoveDynamicObject(tor[2],1713.53,-1663.18,9.88-10,5);
    torstatus[2] = 1;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    else
    {
    MoveDynamicObject(tor[2],1713.53,-1663.18,9.88,5);
    torstatus[2] = 0;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    }
    return SendClientMessage(playerid,GRAU,"Du bist nicht in der jeweiligen Fraktion.");
    }
    if(IsPlayerInRangeOfPoint(playerid,10,1754.92,-1719.75,7.10))
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,6) || isPlayerInFrakt(playerid,16) || isPlayerAnAdmin(playerid,6) && Spieler[playerid][pAdminOnduty] == true)
    {
    if(torstatus[3] == 0)
    {
    MoveDynamicObject(tor[3],1754.92,-1719.75 - 10,7.10,5);
    torstatus[3] = 1;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    else
    {
    MoveDynamicObject(tor[3],1754.92,-1719.75,7.10,5);
    torstatus[3] = 0;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    }
    return SendClientMessage(playerid,GRAU,"Du bist nicht in der jeweiligen Fraktion.");
    }
    if(IsPlayerInRangeOfPoint(playerid,7,924.65509033203,-1226.7703857422,15.9765625))
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,6) || isPlayerInFrakt(playerid,11) || isPlayerInFrakt(playerid,16) || TowFreeState[playerid] == 1 || isPlayerAnAdmin(playerid,6) && Spieler[playerid][pAdminOnduty] == true)
    {
    if(torstatus[4] == 0)
    {
    MoveDynamicObject(tor[4],924.65509033203,-1226.7703857422,15.9765625-10,5);
    torstatus[4] = 1;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    if(TowFreeState[playerid] == 1)
    {
    SendClientMessage(playerid,WEISS,"Das Tor schließt sich in 5 Sekunden wieder!");
    SetTimerEx("MoveGate",5000,0,"i",4);
    TowFreeState[playerid] = 0;
    }
    return 1;
    }
    else
    {
    MoveDynamicObject(tor[4],924.65509033203,-1226.7703857422,15.9765625,5);
    torstatus[4] = 0;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    }
    return SendClientMessage(playerid,GRAU,"Du bist nicht in der jeweiligen Fraktion.");
    }
    if(IsPlayerInRangeOfPoint(playerid,7,924.75158691406,-1215.5189208984,15.9765625))
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2)|| isPlayerInFrakt(playerid,6)|| isPlayerInFrakt(playerid,11) || isPlayerInFrakt(playerid,16) || TowFreeState[playerid] == 1 || isPlayerAnAdmin(playerid,6) && Spieler[playerid][pAdminOnduty] == true)
    {
    if(torstatus[5] == 0)
    {
    MoveDynamicObject(tor[5],924.75158691406,-1215.5189208984,15.9765625-10,5);
    torstatus[5] = 1;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    if(TowFreeState[playerid] == 1)
    {
    SendClientMessage(playerid,WEISS,"Das Tor schließt sich in 5 Sekunden wieder!");
    SetTimerEx("MoveGate",5000,0,"i",5);
    TowFreeState[playerid] = 0;
    }
    return 1;
    }
    else
    {
    MoveDynamicObject(tor[5],924.75158691406,-1215.5189208984,15.9765625,5);
    torstatus[5] = 0;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    }
    return SendClientMessage(playerid,GRAU,"Du bist nicht in der jeweiligen Fraktion.");
    }
    if(IsPlayerInRangeOfPoint(playerid,10,-1414.43,516.45,16.67))
    {
    if(isPlayerInFrakt(playerid,6) || isPlayerInFrakt(playerid,16) || isPlayerAnAdmin(playerid,6) && Spieler[playerid][pAdminOnduty] == true)
    {
    if(torstatus[6] == 0)
    {
    MoveDynamicObject(tor[6],-1414.44,516.48,16.7,2);
    torstatus[6] = 1;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    else
    {
    MoveDynamicObject(tor[6],-1414.44,516.48,9.6,2);
    torstatus[6] = 0;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    }
    return SendClientMessage(playerid,GRAU,"Du bist nicht in der jeweiligen Fraktion.");
    }
    if(IsPlayerInRangeOfPoint(playerid,15,-1456.63,501.30,16.99))
    {
    if(isPlayerInFrakt(playerid,6) || isPlayerInFrakt(playerid,16) || isPlayerAnAdmin(playerid,6) && Spieler[playerid][pAdminOnduty] == true)
    {
    if(torstatus[7] == 0)
    {
    MoveDynamicObject(tor[7],-1456.70,501.28 ,16.9,2);
    torstatus[7] = 1;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    else
    {
    MoveDynamicObject(tor[7],-1456.70,501.28 ,9.9,2);
    torstatus[7] = 0;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    }
    return SendClientMessage(playerid,GRAU,"Du bist nicht in der jeweiligen Fraktion.");
    }
    if(IsPlayerInRangeOfPoint(playerid,10,1017.16,1137.85,11.27))
    {
    if(isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,6) || isPlayerInFrakt(playerid,16) || isPlayerAnAdmin(playerid,6) && Spieler[playerid][pAdminOnduty] == true)
    {
    if(torstatus[8] == 0)
    {
    MoveDynamicObject(tor[8],1017.16,1137.85,11.27 -10,2);
    torstatus[8] = 1;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    else
    {
    MoveDynamicObject(tor[8],1017.16,1137.85,11.27,2);
    torstatus[8] = 0;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    }
    return SendClientMessage(playerid,GRAU,"Du bist nicht in der jeweiligen Fraktion.");
    }
    if(IsPlayerInRangeOfPoint(playerid,20,-371.38958740234,-1428.0352783203,27.707168579102 ))///GANGJAILTOR
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,6) || isPlayerInFrakt(playerid,16) || isPlayerAnAdmin(playerid,6) && Spieler[playerid][pAdminOnduty] == true)
    {
    if(torstatus[9] == 0)
    {
    MoveDynamicObject(tor[9],-371.38958740234,-1428.0352783203 +4,27.707168579102,5);
    torstatus[9] = 1;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    else
    {
    MoveDynamicObject(tor[9],-371.38958740234,-1428.0352783203,27.707168579102,5);
    torstatus[9] = 0;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    }
    return SendClientMessage(playerid,GRAU,"Du bist nicht in der jeweiligen Fraktion.");
    }
    if(IsPlayerInRangeOfPoint(playerid,10,1020.45,1160.46,10.43))
    {
    if(isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,6) || isPlayerInFrakt(playerid,16) || isPlayerAnAdmin(playerid,6) && Spieler[playerid][pAdminOnduty] == true)
    {
    if(torstatus[10] == 0)
    {
    MoveDynamicObject(tor[10],1020.45,1160.46,10.43 + 0.01,0.01,0.00,0.00,0.00);
    torstatus[10] = 1;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    else
    {
    MoveDynamicObject(tor[10],1020.45,1160.46,10.43 - 0.01,0.01,0.00,90.00,0.00);
    torstatus[10] = 0;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    }
    return SendClientMessage(playerid,GRAU,"Du bist nicht in der jeweiligen Fraktion.");
    }
    if(IsPlayerInRangeOfPoint(playerid,10,1034.34,1181.13,10.43))
    {
    if(isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,6) || isPlayerInFrakt(playerid,16) || isPlayerAnAdmin(playerid,6) && Spieler[playerid][pAdminOnduty] == true)
    {
    if(torstatus[11] == 0)
    {
    MoveDynamicObject(tor[11],1034.34,1181.13,10.43 + 0.01,0.01,0.00,0.00,180.00);
    torstatus[11] = 1;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    else
    {
    MoveDynamicObject(tor[11],1034.34,1181.13,10.43 - 0.01,0.01,0.00,90.00,180.00);
    torstatus[11] = 0;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    }
    return SendClientMessage(playerid,GRAU,"Du bist nicht in der jeweiligen Fraktion.");
    }
    if(IsPlayerInRangeOfPoint(playerid,20,-1465.76,501.32,1.08))
    {
    if(isPlayerInFrakt(playerid,6) || isPlayerInFrakt(playerid,16) || isPlayerAnAdmin(playerid,6) && Spieler[playerid][pAdminOnduty] == true)
    {
    if(torstatus[12] == 0)
    {
    MoveDynamicObject(tor[12],-1468.28,501.32,10.12,2);
    torstatus[12] = 1;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    else
    {
    MoveDynamicObject(tor[12],-1465.76,501.32,1.08,2);
    torstatus[12] = 0;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    }
    return SendClientMessage(playerid,GRAU,"Du bist nicht in der jeweiligen Fraktion.");
    }
    if(IsPlayerInRangeOfPoint(playerid,10,1690.42,-1602.29,14.02))//sapd tor
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,6) || isPlayerInFrakt(playerid,16) || isPlayerAnAdmin(playerid,6) && Spieler[playerid][pAdminOnduty] == true)
    {
    if(torstatus[13] == 0)
    {
    MoveDynamicObject(tor[13],1690.42,-1602.29,14.02 -10,5);
    torstatus[13] = 1;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    else
    {
    MoveDynamicObject(tor[13],1690.42,-1602.29,14.02,5);
    torstatus[13] = 0;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    }
    return SendClientMessage(playerid,GRAU,"Du bist nicht in der jeweiligen Fraktion.");
    }
    if(IsPlayerInRangeOfPoint(playerid,10,1810.71,-1669.59,13.10))//sapd schranke
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,6) || isPlayerInFrakt(playerid,16) || isPlayerAnAdmin(playerid,6) && Spieler[playerid][pAdminOnduty] == true)
    {
    if(torstatus[14] == 0)
    {
    MoveDynamicObject(tor[14],1810.71,-1669.59,13.10 +0.01,0.01,0.00,0.00,-90.00);
    torstatus[14] = 1;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    else
    {
    MoveDynamicObject(tor[14],1810.71,-1669.59,13.10 -0.01,0.01,0.00,90.00,-90.00);
    torstatus[14] = 0;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    }
    return SendClientMessage(playerid,GRAU,"Du bist nicht in der jeweiligen Fraktion.");
    }
    if(IsPlayerInRangeOfPoint(playerid,10,-3481.03,1714.34,8.96))
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,6) || isPlayerInFrakt(playerid,16) || isPlayerAnAdmin(playerid,6) && Spieler[playerid][pAdminOnduty] == true)
    {
    if(torstatus[15] == 0)
    {
    MoveDynamicObject(tor[15],-3481.03,1714.34,8.96 - 10,3);
    torstatus[15] = 1;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    else
    {
    MoveDynamicObject(tor[15],-3481.03,1714.34,8.96,3);
    torstatus[15] = 0;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    }
    return SendClientMessage(playerid,GRAU,"Du bist nicht in der jeweiligen Fraktion.");
    }
    if(IsPlayerInRangeOfPoint(playerid,10,-3427.49,1617.82,15.63))
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,6) || isPlayerInFrakt(playerid,16) || isPlayerAnAdmin(playerid,6) && Spieler[playerid][pAdminOnduty] == true)
    {
    if(torstatus[16] == 0)
    {
    MoveDynamicObject(tor[16],-3427.49,1617.82,15.63 - 10,3);
    torstatus[16] = 1;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    else
    {
    MoveDynamicObject(tor[16],-3427.49,1617.82,15.63,3);
    torstatus[16] = 0;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    }
    return SendClientMessage(playerid,GRAU,"Du bist nicht in der jeweiligen Fraktion.");
    }
    if(IsPlayerInRangeOfPoint(playerid,2.5,1133.15,-1376.59,14.18))
    {
    if(isPlayerInFrakt(playerid,3) || isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,6) || isPlayerInFrakt(playerid,16) || isPlayerAnAdmin(playerid,6) && Spieler[playerid][pAdminOnduty] == true)
    {
    if(torstatus[18] == 0)
    {
    MoveDynamicObject(tor[18],1133.1497,-1377.9303,14.1800,2);
    torstatus[18] = 1;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    else
    {
    MoveDynamicObject(tor[18],1133.15,-1376.59,14.18,2);
    torstatus[18] = 0;
    PlayerHearMusicInRange(x,y,z,1035,5,1,500);//x,y,z,soundid,radius,timer an = 1 wenn aus = 0,zeit wann timer music/sound beendet
    return 1;
    }
    }
    return SendClientMessage(playerid,GRAU,"Du bist nicht in der jeweiligen Fraktion.");



    //gekürzt da zuviele zeichen

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • Wenn du dir Include-Datei anguckst findest du folgende Zeile:

    #define COMMAND:%1(%2) \
    forward cmd_%1(%2); \
    public cmd_%1(%2)
    d.h. du kannst die Funktion auch direkt aufrufen: cmd_mv(playerid, params); bzw cmd_mv(playerid, "");