Tazer problem
#1

Код:
 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, "puts his tazer back into his belt.");
		   	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, 10);
		Action(playerid, "takes his tazer out of his belt.");
        return 1;
    }
This was getting on my nerves all night, how do I re-create this to get Silenced Pistol as a tazer isntead of having meele tazer in hand. And that I will make command that when I have deagle in my hand and write /tazer that it will swtich to SD Pistol as tazer and /tazaer again to swtich it back to deagle.
Reply


Messages In This Thread
Tazer problem - by xdarren - 14.09.2013, 14:42
Re: Tazer problem - by Mark_Samp - 14.09.2013, 15:23
Re: Tazer problem - by xdarren - 14.09.2013, 16:31
Re: Tazer problem - by Nothis - 14.09.2013, 20:07
Re: Tazer problem - by Nothis - 14.09.2013, 20:13
Re: Tazer problem - by Mark_Samp - 14.09.2013, 20:18

Forum Jump:


Users browsing this thread: 2 Guest(s)