Send the message when he shot another diff. player
#4

Quote:
Originally Posted by DarkMythHunter
Посмотреть сообщение
It might be so easy for you since you're experienced.

Thanks.
I think you should try...

Quote:
Originally Posted by Exhibit
Посмотреть сообщение
Save the weapon id in a variable and check if it's the same weapon or not. What's so hard ?
Код:
new LastShotWeapon[MAX_PLAYERS][MAX_PLAYERS];

if (LastShotWeapon[attacker][victim] !=  weaponid)
{
	// Display message
	
	LastShotWeapon[attacker][victim] = weaponid;
}
Also you might want to exclude "flame/fire" weapons from this, it'll still spam if someone burning is being shot with another gun. You can search functions like IsPlayerBurning & OnPlayerBurning in this forums.
Reply


Messages In This Thread
Send the message when he shot another diff. player - by DarkMythHunter - 18.01.2019, 03:32
Re: Send the message when he shot another diff. player - by Exhibit - 18.01.2019, 10:15
Re: Send the message when he shot another diff. player - by DarkMythHunter - 18.01.2019, 11:41
Re: Send the message when he shot another diff. player - by RoboN1X - 18.01.2019, 11:56

Forum Jump:


Users browsing this thread: 1 Guest(s)