disables spawn protection in pb

This commit is contained in:
Stev 2018-12-24 18:22:55 +00:00
parent c9464706ef
commit 65fd8ac780

View File

@ -27,17 +27,20 @@ hook OnPlayerUpdateEx( playerid )
hook OnPlayerSpawn( playerid ) hook OnPlayerSpawn( playerid )
{ {
// Toggle Anti Spawn Kill if ( ! IsPlayerInPaintBall( playerid ) )
DisableRemoteVehicleCollisions( playerid, p_AdminOnDuty{ playerid } ); {
SetPlayerHealth( playerid, INVALID_PLAYER_ID ); // Toggle Anti Spawn Kill
Delete3DTextLabel( p_SpawnKillLabel[ playerid ] ); DisableRemoteVehicleCollisions( playerid, p_AdminOnDuty{ playerid } );
p_SpawnKillLabel[ playerid ] = Create3DTextLabel( "Spawn Protected!", COLOR_GOLD, 0.0, 0.0, 0.0, 15.0, 0 ); SetPlayerHealth( playerid, INVALID_PLAYER_ID );
p_AntiSpawnKill[ playerid ] = g_iTime + 15; Delete3DTextLabel( p_SpawnKillLabel[ playerid ] );
Attach3DTextLabelToPlayer( p_SpawnKillLabel[ playerid ], playerid, 0.0, 0.0, 0.3 ); p_SpawnKillLabel[ playerid ] = Create3DTextLabel( "Spawn Protected!", COLOR_GOLD, 0.0, 0.0, 0.0, 15.0, 0 );
p_AntiSpawnKillEnabled{ playerid } = true; p_AntiSpawnKill[ playerid ] = g_iTime + 15;
Attach3DTextLabelToPlayer( p_SpawnKillLabel[ playerid ], playerid, 0.0, 0.0, 0.3 );
p_AntiSpawnKillEnabled{ playerid } = true;
// Toggle Passive Mode // Toggle Passive Mode
SetPlayerPassiveMode( playerid ); SetPlayerPassiveMode( playerid );
}
return 1; return 1;
} }