[HELP]/setteam [ID]
#4

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
That should do it

pawn Код:
CMD:setteam(playerid, team[]) {
    if((team[0] == 0) || ((team[0] == 1) && (team[1] == 0))) { // isnull(team)
        SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /setteam [team]");
    } else {
        team[0] = strval(team);
        if(0 < team[0] <= 500) {
            SetPlayerTeam(playerid, team[0]);
        } else {
            SendClientMessage(playerid, 0xFFFFFFFF, "Invalid team, only 1 - 500");
        }
    }
    return true;
}
That's for zcmd, right? Can you give me the strcmp? Thanks before
Reply


Messages In This Thread
[HELP]/setteam [ID] - by Horrible - 07.07.2011, 14:44
AW: [HELP]/setteam [ID] - by Nero_3D - 07.07.2011, 14:51
Re: AW: [HELP]/setteam [ID] - by Horrible - 07.07.2011, 14:53
Re: AW: [HELP]/setteam [ID] - by Deviant96 - 09.07.2011, 19:59
AW: [HELP]/setteam [ID] - by Nero_3D - 09.07.2011, 21:38

Forum Jump:


Users browsing this thread: 1 Guest(s)