OnPlayerTakeDamage
#6

Quote:
Originally Posted by Clora
Посмотреть сообщение
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
				}
    		}
That's what I said. But he needs to set everyone to the same team for that. In my opinion that OnPlayerWeaponShot thing is OK if he doesn't need any custom damages.
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: 6 Guest(s)