SA-MP Forums Archive
[Include] Tion's Callbacks - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Tion's Callbacks (/showthread.php?tid=260939)



Tion's Callbacks - Tion - 11.06.2011

Hey,

I can't play SA:MP right now ( ;( ) so I decidet to code a little bit with the windows text editor.

First i wanted to do a little OnPlayerArmedWeaponChange - callback, but right now there are more callbacks:

Callbacks:

OnPlayerArmedWeaponChange(playerid, lastarmed, newarmed);
Called when a player changes his weapon he's holding in his hand

OnPlayerGatWeapon(playerid, weaponslot, weaponid, ammo);
Called when a player gat a new weapon for example through a pickup, ammunation, GivePlayerWeapon or cheating

OnPlayerLostConnection(playerid, playerip[], playername[]);
Called when a player lost he connection for example when his GTA was crashing

OnPlayerGetMessageSend(playerid, color, string);
Called when a player gat a message with SendClientMessage or SendClientMessagToAll

Installation: Just copy the source from pastebin in the pawno include folder and include it - Plug 'n play !

I can't test it and can't compile it for errors because this computer has no PAWN !

Pastebin:
http://pastebin.com/79z9QS9F

( I know that this was made in less than 5 minutes )

Tion


Re: Tion's Callbacks - Skaizo - 11.06.2011

more information please and download with solider or mediafire


AW: Tion's Callbacks - Tion - 11.06.2011

solidfiles has deleted my account >.< don't know why
I think I will upload it on my webspace...
That are Callbacks, don't know what to write about them... Such like

pawn Код:
OnGameModeInit()
/Edit:

I dont have a ftp-client and my computer will be to slow for it ( 224 mb RAM )