10.06.2013, 14:12
Код:
if (strcmp(cmdtext, "/setplayertg", true ) == 0) { new tmp[256]; tmp = strtok(cmdtext, idx); new otherplayerid; if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Use /setplayertg [playerid/name]"); else if(!IsPlayerConnected(otherplayerid)) return SendClientMessage(playerid, COLOR_LIGHTRED, "This player is not connected"); SendClientMessage(otherplayerid,COLOR_LIGHTRED,"You've been set to [Team 2] by an [Admin]."); setTG[otherplayerid] = 1; return 1; }