OnPlayerTakeDamage
#5

I suggest putting your damage script inside of OnPlayerTake and disable all default damages and then choose when to give damage

Example:
Код:
	if(somethinghere)
	{
		new Float:x, Float:y, Float:z;

		switch(weaponid)
		{
			case 0: damage = 3; //Your weapon's damages
                        //Heres a code for shotgun damage and no damage for beanbag.
			case 25:
    		        {
	    		        if(!IsBBActive{issuerid})
				{
					if(!Beanbagged{playerid})
					{
                                              //Beanbag code here
					}
					else
					{
						//Else code here, aka a warning indicating you've shot him already
					}
				}
				else
				{
                                      // Your shotgun's weapon damage here
				}
    		}
Reply


Messages In This Thread
OnPlayerTakeDamage - by HidroDF - 27.12.2016, 19:09
Re: OnPlayerTakeDamage - by GoldenLion - 27.12.2016, 19:16
Respuesta: OnPlayerTakeDamage - by HidroDF - 27.12.2016, 19:20
Re: Respuesta: OnPlayerTakeDamage - by GoldenLion - 27.12.2016, 19:22
Re: OnPlayerTakeDamage - by Clora - 27.12.2016, 19:23
Re: OnPlayerTakeDamage - by GoldenLion - 27.12.2016, 19:25
Respuesta: OnPlayerTakeDamage - by HidroDF - 27.12.2016, 19:39

Forum Jump:


Users browsing this thread: 5 Guest(s)