only MP5 drive by
#2

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == 3) // Passenger
    {
        // Get weapon data in slot 4 (SMGs)
        new weapon, ammo;
        GetPlayerWeaponData(playerid, 4, weapon, ammo);
        SetPlayerArmedWeapon(playerid, weapon);
    }
    // other code
    return 1;
}
Not tested. Should work. The 'weapon' might be 0, which means they don't have an SMG. In which case, their armed weapon will be set to 0 (fist).
Reply


Messages In This Thread
only MP5 drive by - by elitesae - 04.04.2013, 04:08
Re: only MP5 drive by - by MP2 - 04.04.2013, 04:14
Re : only MP5 drive by - by will-56 - 04.04.2013, 10:11
Re: only MP5 drive by - by elitesae - 05.04.2013, 01:36
Re: only MP5 drive by - by MP2 - 05.04.2013, 01:41
Re: only MP5 drive by - by elitesae - 05.04.2013, 01:42
Re: only MP5 drive by - by MP2 - 05.04.2013, 01:44

Forum Jump:


Users browsing this thread: 2 Guest(s)