Merge pull request #18 from meCloudy/patch-6
Auto respawn people in event after death
This commit is contained in:
commit
a5987c7b55
@ -728,6 +728,18 @@ public OnPlayerSpawn( playerid )
|
||||
return 1;
|
||||
}
|
||||
|
||||
#if defined __cloudy_event_system
|
||||
else if ( IsPlayerInEvent( playerid ) )
|
||||
{
|
||||
if( ! EventSettingAllow( 0 ) && g_eventData[ EV_STARTED ] )
|
||||
{
|
||||
SetPlayerInEvent( playerid ); // respawns player in event.
|
||||
return 1;
|
||||
}
|
||||
else RemovePlayerFromEvent( playerid, true ); // changes the InEvent variable to false.
|
||||
}
|
||||
#endif
|
||||
|
||||
if ( p_Class[ playerid ] == CLASS_CIVILIAN )
|
||||
{
|
||||
if ( !p_JobSet{ playerid } )
|
||||
|
Loading…
Reference in New Issue
Block a user