03.01.2013, 20:14
Maybe:
But i think not that it works, when you use MYSQL.
Код:
COMMAND:setteam(playerid,params[]) { new id, team; if(sscanf(params,"dd",id,team)) return SendClientMessage(playerid,COLOR_RED,"Usage: /setteam <id> <2=Human/1=Zombie>"); if(PlayerAdmin[playerid] < 3) return SendClientMessage(playerid,COLOR_RED,"You must be an admin."); if(team < 1 || team > 2) return SendClientMessage(playerid,COLOR_RED,"Teams between 1 and 2!"); //you can make your teamammount here. gTeam[playerid] = team; SpawnPlayer(id); format(str,144,"You set %ss Team to %d.",PlayerName[playerid],gTeam[id],team); SendClientMessage(playerid,COLOR_LIGHTBLUE,str); return 1; }