11.06.2011, 12:57
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
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