GetPlayerWeapon
#1

Do anybody knows why this is not working?

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(GetPlayerWeapon(playerid) == 24 || 25 || 34)
    {
        if (RELEASED(KEY_FIRE))
        {
            new Float:X;
            new Float:Y;
            new Float:Z;
            GetPlayerPos(playerid, X, Y, Z);
            SetPlayerPos(playerid, X, Y, Z+0.0001);
        }
    }
    return 1;
}
i have enabled this code for only three weapons but it is automatically being enabled to other weapons too.
Reply


Messages In This Thread
GetPlayerWeapon - by Champ - 30.09.2013, 11:51
Re: GetPlayerWeapon - by Konstantinos - 30.09.2013, 11:56
Re: GetPlayerWeapon - by Champ - 30.09.2013, 12:03
Re: GetPlayerWeapon - by Konstantinos - 30.09.2013, 12:06

Forum Jump:


Users browsing this thread: 1 Guest(s)