a Help?
#5

Quote:
Originally Posted by RathTheBeast
Посмотреть сообщение
So what now?
Well, as stated by the wiki; you can detect weapons upon the OnPlayerUpdate callback instead and disable them through there.

So, the first thing you would need to do, is remove all instances of the depreciated function you are using, and instead use something of this nature:

Код:
public OnPlayerUpdate (playerid)
{
	new weapon = GetPlayerWeapon (playerid);
	
	if (weapon == 38 || weapon == 35) //disables minigun and RPG
	{
		SetPlayerArmedWeapon(playerid, 0);
	}
	
	return 1;
}
To get a list of weapon ID's, check out: https://sampwiki.blast.hk/wiki/Weapons
Reply


Messages In This Thread
a Help? - by RathTheBeast - 13.04.2017, 05:41
Re: a Help? - by Mencent - 13.04.2017, 05:44
Re: a Help? - by Celmir - 13.04.2017, 05:49
Re: a Help? - by RathTheBeast - 14.04.2017, 12:03
Re: a Help? - by LEOTorres - 14.04.2017, 12:09

Forum Jump:


Users browsing this thread: 1 Guest(s)