Respawn Cmd
#1

Hello, I would like a command that can give you respawn all the members of that faction

can be done?
Reply
#2

Use ForceClassSelection(playerid) in a player loop below that command and set a variable to 1
Under OnPlayerRequestClass, if the variable is 1 automatically spawn them and again set the variable to 0.
Reply
#3

First of all.

This is scripting help section not free commands or whatever.

Learn to script, Make that command if it have bugs or errors then come here for help.
Reply
#4

You will need to edit this to suit the needs for your faction variables, command processor, etc
try this:

pawn Код:
if (strcmp("/spawnfaction", cmdtext, true, 13) == 0)
    {
        if(IsPlayerAdmin(playerid))
        {
            for(new i; i<MAX_PLAYERS; i++)
            {
                if(factionname[i] == NumberVariable)
                {
                    SpawnPlayer(i);
                    SendClientMessage(i,-1,"An Admin Has Respawned Your Faction.");
                }
            }

        }
        return 1;
    }
Reply
#5

thx banana , and stuun this is a scripting help section "help" not answer with yes or no bro ... +rep banana and davidbilla
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)