Anit -DB bagged
#7

Quote:
Originally Posted by Brian.
Посмотреть сообщение
pawn Код:
new gun, ammo;

    if(newstate == PLAYER_STATE_DRIVER && GetPlayerWeapon(playerid) == 29)
    {
        if(GetPlayerWeapon(playerid) == 29)
        {
              GetPlayerWeaponData(playerid, 4, gun, ammo); // An MP5 was, is, and always will be slot 4. You don't need a loop for a constant value.
              SetPlayerAmmo(playerid, 4, 0); // SetPlayerAmmo works on the SLOT, not the weapon.
        }
    }
    if(newstate == 1 && oldstate == 2)
    {
        GivePlayerWeapon(playerid, 29, ammo);
    }
   return 1;
}
There's one way to do it, but the other...

pawn Код:
public OnPlayerStateChange(playerid, oldstate, newstate)
{
    if(newstate == 2) SetPlayerArmedWeapon(playerid, 0);
    return 1;
}

Not working dude.
Reply


Messages In This Thread
Anti Drive-By bagged - by Cypress - 04.09.2010, 15:46
Re: Anit -DB bagged - by LarzI - 04.09.2010, 15:49
Re: Anit -DB bagged - by Cypress - 04.09.2010, 15:53
Re: Anit -DB bagged - by LarzI - 04.09.2010, 16:07
Re: Anit -DB bagged - by Cypress - 04.09.2010, 16:09
Re: Anit -DB bagged - by General Abe - 04.09.2010, 17:22
Re: Anit -DB bagged - by Cypress - 04.09.2010, 21:40
Re: Anit -DB bagged - by General Abe - 05.09.2010, 00:58
Re: Anit -DB bagged - by Cypress - 05.09.2010, 07:45
Re: Anit -DB bagged - by Calgon - 05.09.2010, 07:59

Forum Jump:


Users browsing this thread: 2 Guest(s)