How can I make a player return to there position after they die in this event?
#4

You have to create a global variable:

pawn Код:
// top of script

new InEvent[MAX_PLAYERS];

// in the event cmd or however the event is started

InEvent[playerid] = 1; // tells the server that the player joined in/is in the event (1 = true)

// onplayerspawn

if(InEvent[playerid] == 1) // if the player was in the event when he died
{
    // set the player position back to the event
    // other stuff here
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)