Versuch es mal so:
if(strcmp(cmd, "/Gangequip", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,5.0,2819.0388,-1169.9384,1025.5703) || IsPlayerInRangeOfPoint(playerid,5.0,1211.8036,-15.4760,1000.9219) || IsPlayerInRangeOfPoint(playerid,5.0,745.0085,1439.7786,1102.7031) || IsPlayerInRangeOfPoint(playerid,5.0,327.8148,1482.8434,1084.4375) || IsPlayerInRangeOfPoint(playerid,5.0,259.5170,1243.1080,1084.2578) || IsPlayerInRangeOfPoint(playerid,5.0,2267.2373,-79.2482,26.7834) || IsPlayerInRangeOfPoint(playerid,5.0,27.3693,1343.2300,1084.3750))
if (IsPlayerInRangeOfPoint(playerid,5.0,1233.1462,-981.1647,43.4766) || IsPlayerInRangeOfPoint(playerid,5.0,145.6218,1367.0225,1083.8594) || IsPlayerInRangeOfPoint(playerid,5.0,236.5579,1064.8623,1084.2083) || IsPlayerInRangeOfPoint(playerid,5.0,145.5831,1366.8931,1083.8594) || IsPlayerInRangeOfPoint(playerid,5.0,-222.6197,1400.7908,27.7656) || IsPlayerInRangeOfPoint(playerid,5.0,503.2602,-75.1576,998.7651) || IsPlayerInRangeOfPoint(playerid,5.0,2491.7283,-1690.8501,14.7656))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_RED, "WARNUNG : Wenn du kein Waffenschein hast, wirst du von Kent_Brockman gekickt!");
SendClientMessage(playerid, COLOR_WHITE, "Hilfe : /gangequip [item nummer]");
SendClientMessage(playerid, COLOR_GREEN, "|_______ Ausrüstung _______|");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "| 1: Alle Waffen weglegen 2: MP5+Deagle");
return 1;
}
if(strcmp(tmp,"1",true) == 0)
{
if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 10)
if(PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pLeader] == 22 || PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)
if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
ResetPlayerWeapons(playerid);
return 1;
}
}
else if(strcmp(tmp,"2",true) == 0)
{
if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 10)
if(PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pLeader] == 22 || PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)
if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 29, 500);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "WARNUNG : Wenn du kein Waffenschein hast, wirst du von Kent_Brockman gekickt!");
SendClientMessage(playerid, COLOR_WHITE, "Hilfe : /gangequip [item nummer]");
SendClientMessage(playerid, COLOR_GREEN, "|_______ Ausrüstung _______|");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "| 1: Alle Waffen weglegen 2: MP5+Deagle");
return 1;
}
}
}