06.05.2015, 15:17
I don't understand you but you need to try this:
When player enter in vehicle as driver or passenger, it select his weapon to 0 (Don't reset, just select) and he cannot shot.
PHP код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
{
SetPlayerArmedWeapon(playerid, 0);
}
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_PASSENGER)
{
SetPlayerArmedWeapon(playerid, 0);
}
return 1;
}