Baue das mal ein und schau mal was die returns denn alles sagen.
Ansonsten zeig mal deine IsACop her
[b][/b]
ocmd:ausruesten(playerid)
{
if(!IsPlayerInRangeOfPoint(playerid,4.0, 2807.5308,-1174.7401,1025.5703))return SendClientMessage(playerid,COLOR_RED,"Nicht an der Umkleide");
{
if(PlayerInfo[playerid][pMember] != 12 && PlayerInfo[playerid][pLeader] != 12) return SendClientMessage("playerid,COLOR_RED,"Nicht 12");
{
new header[64], string[256];
format(header, 96, "%d Mats, %dg Drogen", GroveMats, GroveDrugs);
format(string, sizeof(string), "4g Drogen: 4400$ (1100$ je Gramm)\nBaseballschläger: 72$ (12 Mats)\nDeagle 300$ (50 Mats)\nShotgun: 150$ (25 Mats)\nMP5: 300$ (50 Mats)\nAK47: 450$ (75 Mats)");
ShowPlayerDialog(playerid, DIALOG_GROVESTREET, DIALOG_STYLE_LIST, header, string, "Kaufen", "Abbrechen");
}
}
if(!IsPlayerInRangeOfPoint(playerid,4.0,255.0789,77.4782,1003.6406) && !IsPlayerInRangeOfPoint(playerid,4.0,197.8206,168.2515,1003.0234) && !IsPlayerInRangeOfPoint(playerid,4.0,225.0941,121.8315,999.0803)) return SendClientMessage(playerid, COLOR_RED, "Du bist nicht bei der Umkleide!");
{
if(IsACop(playerid))
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Ausrüstung", "Schlagstock\nDesert Eagle\nShotgun\nMP5\nSniper\nSpray","Ausrüsten", "Abbrechen");
return 1;
}
return SendClientMessage("playerid,COLOR_RED,"Nicht Cop");
}
return 1;
}