tazer problem
#6

Add this to the top of your script:
pawn Код:
new Weapon[MAX_PLAYERS][2];
Then:
pawn Код:
if(newkeys & KEY_LOOK_BEHIND && IsPlayerENF(playerid) && !IsPlayerInAnyVehicle(playerid) && !PlayerTemp[playerid][isevent])
    {
        if(GetPVarInt(playerid, "Tazer") == 1)
        {
            RemovePlayerWeapon(playerid, 23);
            if(Weapon[playerid][0]) GivePlayerWeapon(playerid, Weapon[playerid][0], Weapon[playerid][1]);
            SetPVarInt(playerid, "Tazer", 0);
            //RemovePlayerAttachedObject(playerid, 0);
            Action(playerid, "holsters their tazer.");
            return 1;
        }

        SetPVarInt(playerid, "Tazer", 1);
        GetPlayerWeaponData(playerid, 2, Weapon[playerid][0], Weapon[playerid][1]);
        //SetPlayerAttachedObject(playerid, 0, 18642, 6, 0.06, 0.01, 0.08, 180.0, 0.0, 0.0);
        GivePlayerWeapon(playerid, 23, 999999);
        Action(playerid, "unholsters their tazer.");
        return 1;
    }
Reply


Messages In This Thread
tazer problem - by ajam112 - 29.05.2014, 07:00
Re: tazer problem - by Threshold - 29.05.2014, 07:07
Re: tazer problem - by ajam112 - 29.05.2014, 07:47
Re: tazer problem - by Threshold - 29.05.2014, 07:49
Re: tazer problem - by ajam112 - 29.05.2014, 07:59
Re: tazer problem - by Threshold - 29.05.2014, 08:29
Re: tazer problem - by ajam112 - 29.05.2014, 08:53

Forum Jump:


Users browsing this thread: 1 Guest(s)