23.06.2011, 14:33
(
Последний раз редактировалось Wesley221; 23.06.2011 в 15:15.
)
pawn Код:
CMD:setteam(playerid, params[])
{
new Target, Team;
if(!sscanf(params, "ui", Target, Team))
{
if(Team < 0 || Team > 1000) return SendClientMessage(playerid, COLOR, "/setteam <playerid> <1-1000>");
if(Target == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR, "Invalid playerid");
SetPlayerTeam(Target, Team);
} else return SendClientMessage(playerid, COLOR, "/setteam <optional playerid> <1-1000>");
return 1;
}