01.02.2010, 16:58
Am I doing something wrong here?
Because this doesn't work ingame :S
Because this doesn't work ingame :S
pawn Код:
dcmd_setteam(playerid, params[])
{
new target, targetteam;
if (sscanf(params, "ud", target, targetteam)) SendClientMessage(playerid, COLOR_GREY, "* Usage: '/setteam [playerid] [team]'");
else if(gTeam[playerid] != 1) return SendClientMessage(playerid, COLOR_GREY, "* Admins only!");
else
{
gTeam[target] = targetteam;
}
return 1;
}