Shooting while on bike
#3

Try this code
PHP код:
public OnPlayerStateChange(playeridnewstateoldstate)
{
    if(
oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
    {
                new 
weaponammo;
        
GetPlayerWeaponData(playerid4weaponammo);
        if(
ammo>0SetPlayerArmedWeapon(playeridweapon);
    }
    return 
1;

Reply


Messages In This Thread
Shooting while on bike - by Frank901 - 20.08.2016, 17:21
Re: Shooting while on bike - by ThatFag - 20.08.2016, 17:25
Re: Shooting while on bike - by Shinja - 20.08.2016, 17:34
Re: Shooting while on bike - by Frank901 - 20.08.2016, 19:01
Re: Shooting while on bike - by Shinja - 20.08.2016, 19:05
Re: Shooting while on bike - by Konstantinos - 20.08.2016, 19:06
Re: Shooting while on bike - by Affan - 20.08.2016, 19:07
Re: Shooting while on bike - by Frank901 - 20.08.2016, 19:18

Forum Jump:


Users browsing this thread: 1 Guest(s)