SA-MP Forums Archive
[HELP]Please Help for /setteam command.? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Please Help for /setteam command.? (/showthread.php?tid=263799)



[HELP]Please Help for /setteam command.? - kernest - 23.06.2011

all guys.
I need help how to create /setteam command,
for example, we are different skins and colors but if you take /setteam the same does not reduce blood
if there is a player his team together for example, Player A and Player B has the same team / setteam 5 and their blood will not abate, even if different skins

Quote:

/setteam [1-1000]

Please help me thanks all !


Re: [HELP]Please Help for /setteam command.? - Wesley221 - 23.06.2011

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


Re: [HELP]Please Help for /setteam command.? - kernest - 24.06.2011

oke thanks, i will try the script