tazer problem
#1

Here is my problem, when i hotstlers my tazer, the gun is still on me. how can i remove it?

Код:
    if(newkeys & KEY_LOOK_BEHIND && IsPlayerENF(playerid) && !IsPlayerInAnyVehicle(playerid) && PlayerTemp[playerid][isevent] == 0)
    {
        if(GetPVarInt(playerid, "Tazer") == 1)
        {
            //GivePlayerWeapon(playerid, 24, GetPVarInt(playerid, "Tazer"));
            SetPVarInt(playerid, "Tazer", 0);
            //RemovePlayerAttachedObject(playerid, 0);
		   	Action(playerid, "holsters their tazer.");
		   	return 1;
        }

        SetPVarInt(playerid, "Tazer", 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)