13.09.2011, 23:20
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;
}

