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

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 !
Reply
#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
#3

oke thanks, i will try the script
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)