[HELP]/setteam [ID]
#5

yeah, its not hard to change

pawn Код:
//OnPlayerCommandText
    if((strcmp("/setteam", cmdtext, true, 8) == 0) && ((cmdtext[8] == EOS) || (cmdtext[8] == ' '))) {
        if((cmdtext[8] == EOS) || (cmdtext[9] == EOS)) {
            SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /setteam [team]");
        } else {
            cmdtext[0] = strval(cmdtext[9]);
            if(0 < cmdtext[0] <= 500) {
                SetPlayerTeam(playerid, cmdtext[0]);
            } else {
                SendClientMessage(playerid, 0xFFFFFFFF, "Invalid team, only 1 - 500");
            }
        }
        return true;
    }
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: 2 Guest(s)