Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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):
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(!IsVehicleOccupied(GetPlayerVehicleID(playerid)) && GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
- {
- SetPlayerArmedWeapon(playerid, 0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement