07.11.2010, 22:11
Why do you even need this when playerid is available...
Код:
new id = strval(cmdtext[11]); //this is the id of the player whos team your trying to change
pawn Код:
if(strcmp(cmdtext,"/putzombie", true, 10) == 0)
{
team[playerid] = 2;
infected[playerid] = 0;
SetPlayerPos(playerid,X,Y,Z);
SetPlayerColor(playerid,ZRED);
SetPlayerTeam(playerid, 2);
SetPlayerHealth(playerid, 200);
SetPlayerSkin(playerid,162);
GameTextForPlayer(playerid,"~r~Zombie: ~b~/hide",10000,1);
return 1;
}