passive players will not be able to pick up weapon, ammo and money drops.
This commit is contained in:
parent
ddd1cf38e8
commit
7197c3289b
@ -133,6 +133,10 @@ hook OnPlayerPickUpDynPickup( playerid, pickupid )
|
|||||||
if ( p_PlayerPickupDelay[ playerid ] > GetServerTime( ) )
|
if ( p_PlayerPickupDelay[ playerid ] > GetServerTime( ) )
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
// if player is in passive mode cannot pickup weapons, ammo
|
||||||
|
if ( IsPlayerPassive( playerid ) )
|
||||||
|
return 1;
|
||||||
|
|
||||||
// Player Drops
|
// Player Drops
|
||||||
foreach ( new dropid : weapondrop )
|
foreach ( new dropid : weapondrop )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user