public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate & PLAYER_STATE_PASSENGER) { if(GetPlayerWeapon(playerid) == 24) { SetPlayerArmedWeapon(playerid, 0); } } return true;}