SA:MP Passenger shooting from car (By H) fix?
#9

I don't understand you but you need to try this:

PHP код:
public OnPlayerStateChange(playeridnewstateoldstate)
{
    if(
oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
    {
        
SetPlayerArmedWeapon(playerid0);
    }
    if(
oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_PASSENGER)
    {
        
SetPlayerArmedWeapon(playerid0);
    }
    return 
1;

When player enter in vehicle as driver or passenger, it select his weapon to 0 (Don't reset, just select) and he cannot shot.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)