[Include] OnPlayerShoot callback
#1

Hy! First: Sorry for my bad English.

In my boredom i create this include.
Then calls when we shoot.

Usage(example):

Код:
#include < a_samp >
#include < OnPlayerShoot >

public OnPlayerShoot( playerid, weaponid, ammo )
{
	if( weaponid == 38 )
	{
	    ResetPlayerWeapons( playerid ); // If player shot with 'Minigun', reset player weapons.
	}
	return 1;
}
Download the include

This include request YSI:

YSI Link
Reply
#2

function is not implemented..... Ok then...
Reply
#3

Код:
SetTimerEx( "Update", 5, 1, "i", playerid );
SetTimerEx( "Leker", 5, 1, "i", playerid );
What the ...

Use OnPlayerTakeDamage/OnPlayerGiveDamage callbacks from SA:MP, no timers or other ... things.
Reply
#4

Are you serious? Use OnPlayerKeyStateChange and OnPlayerUpdate..
Reply
#5

THIEF!

It's a OnPlayerShootPlayer include made by wups!
Reply
#6

Quote:
Originally Posted by iWhite
Посмотреть сообщение
THIEF!

It's a OnPlayerShootPlayer include made by wups!
Clearly it's not, this way more un-efficient and supports less features than Wup's version.

Also, this is OnPlayerShoot. Not OnPlayerShootPlayer, there's a big difference, however nice work.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)