Advertisement
FarzamZhoon

Anti G-Abuve

Apr 29th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.39 KB | None | 0 0
  1. // Search for "OnPlayerUpdate" and then when you found it like this: public OnPlayerUpdate(playerid) put following lines in the top after the opening of the callback (brackets):
  2.  
  3.     if(IsPlayerInAnyVehicle(playerid))
  4.     {
  5.         if(!IsVehicleOccupied(GetPlayerVehicleID(playerid)) && GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
  6.         {
  7.             SetPlayerArmedWeapon(playerid, 0);
  8.         }
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement