[HELP]Please Help for /setteam command.?
#2

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;
}
Sscanf2, ZCMD needed
Reply


Messages In This Thread
[HELP]Please Help for /setteam command.? - by kernest - 23.06.2011, 14:26
Re: [HELP]Please Help for /setteam command.? - by Wesley221 - 23.06.2011, 14:33
Re: [HELP]Please Help for /setteam command.? - by kernest - 24.06.2011, 00:52

Forum Jump:


Users browsing this thread: 1 Guest(s)