03.02.2011, 20:13
@2@
Use:
I propably left some unclosed bracers or something, but it's very late in poland and im sleepy. If theres something wrong in there, please fix it for me.
Use:
Код:
if (strcmp("/help", cmdtext, true) == 0) { if (gTeam[playerid] == POLICE) { for(new i=0; i<MAX_PLAYERS; i++) if(gTeam[i] == POLICE) { format(string, sizeof(string), "%s (%d) needs help ! You can find him on the map !"GetPlayerName(playerid), playerid); SendClientMessage(i,COLOR_RED, string); } else if(gTeam[playerid] == TERRORIST) { for(new i=0; i<MAX_PLAYERS; i++) if(gTeam[i] == TERRORIST) { format(string, sizeof(string), "%s (%d) needs help ! You can find him on the map !"GetPlayerName(playerid), playerid); SendClientMessage(i,COLOR_RED, string); } } else { SendClientMessage(playerid,COLOR_RED, "You are not a cop or a terrorist so you can't use this cmd !"); } return 1; }