19.05.2014, 08:05
I would suggest removing the weapon check if(GetPlayerWeapon(playerid) != 29) and just set the players armed weapon to 0 when they enter a car at all.
Like this
This code works, so whenever someone gets inside any seat of a car their weapons are set to fists.
Like this
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) { SetPlayerArmedWeapon(playerid, 0); } return 1; }