Death Stadium Spawns
#3

You can do something such as this, then once the player leaves the stadium delete the PVar
Do that by using DeletePVar(playerid, #DeathStad);
This is just one example of doing it, you need to incorporate it into a way that will best fit your gamemode.
If you do not have any programming knowledge then please try to learn what the errors that will be thrown mean. If there aren't any errors, good job. You incorporated it correctly.

pawn Код:
forward OnPlayerEnterDeathStadium(playerid);

public OnPlayerEnterDeathStadium(playerid) // Place this function under your enter command.
{
    SetPVarInt(playerid, #DeathStad, 1);
    return true;
}
public OnPlayerSpawn(playerid)
{
    if(GetPVarInt(playerid, #DeathStad) == 1)
    {
            // Death Stadium Info here.
    }
    else {
        // Non-Death stadium spawn info.
    }
}
Reply


Messages In This Thread
Death Stadium Spawns - by MaxJohnson - 02.07.2015, 07:14
Re: Death Stadium Spawns - by MaxJohnson - 02.07.2015, 09:44
Re: Death Stadium Spawns - by Lynn - 02.07.2015, 10:05

Forum Jump:


Users browsing this thread: 2 Guest(s)