[INC] Simple Script Callbacks (SSC) 0.1 - 
Luka P. -  20.06.2010
About
Simple Script Callbacks offers you more 'detailed' player tracking. There are 13 callbacks in package. This server uses OnPlayerUpdate to process/compare old values with the current ones so you will have to define every callback you are going to use because of lag reduce.
Function list
pawn Код:
forward OnPlayerHealthChange(playerid, Float:oldhealth, Float:newhealth);
forward OnPlayerArmourChange(playerid, Float:oldarmour, Float:newarmour);
forward OnPlayerWeaponChange(playerid, oldweapon, newweapon);
forward OnPlayerWeaponAmmoChange(playerid, oldammo, newammo);
forward OnPlayerPositionChange(playerid, Float:oldX, Float:oldY, Float:oldZ, Float:newX, Float:newY, Float:newZ);
forward OnPlayerTeamChange(playerid, oldteam, newteam);
forward OnPlayerSkinChange(playerid, oldskin, newskin);
forward OnPlayerMoneyChange(playerid, oldmoney, newmoney);
forward OnPlayerSpecialActionChange(playerid, oldaction, newaction);
forward OnPlayerPingChange(playerid, oldping, newping);
forward OnPlayerScoreChange(playerid, oldscore, newscore);
forward OnPlayerDrunkLevelChange(playerid, oldlevel, newlevel);
forward OnPlayerWantedLevelChange(playerid, oldlevel, newlevel);
 
How to use
To use this include, copy the 'ssc.inc' in your pawno/includes folder. After that, you will need to define callbacks you are going to use and then include SSC. To define callbacks use _ as prefix. Example:
pawn Код:
#define _OnPlayerHealthChange
#define _OnPlayerArmourChange
#include <ssc>
 
Download
[INC] Simple Script Callbacks (SSC) 0.1 (Solidfiles.com)
Re: [INC] Simple Script Callbacks (SSC) 0.1 - 
[HUN]Gamestar -  20.06.2010
Nice, thanks
Re: [INC] Simple Script Callbacks (SSC) 0.1 - 
Luka P. -  20.06.2010
Quote:
| 
 
					Originally Posted by .::: Gamestar :::.  
 
Nice, thanks 
 | 
 Thanks, no problem :P
Re: [INC] Simple Script Callbacks (SSC) 0.1 - 
legodude -  20.06.2010
OnPlayerPositionChange
if you use tat wont it cause Major lag?
since a player updates his pos every(by default) 50MS?
Re: [INC] Simple Script Callbacks (SSC) 0.1 - 
Luka P. -  20.06.2010
Quote:
| 
 
					Originally Posted by legodude  
 
OnPlayerPositionChange 
 
if you use tat wont it cause Major lag? 
since a player updates his pos every(by default) 50MS? 
 | 
 I tested with 7 players and it worked fine. I don't know about more players.
Re: [INC] Simple Script Callbacks (SSC) 0.1 - 
legodude -  20.06.2010
did you use the callback there?
with functions in it?
Re: [INC] Simple Script Callbacks (SSC) 0.1 - 
Luka P. -  20.06.2010
Quote:
| 
 
					Originally Posted by legodude  
 
did you use the callback there? 
with functions in it? 
 | 
 It goes this way -> You define that you're going to use OnPlayerChangePosition callback for example -> OnPlayerUpdate compares old X, Y, Z coordinates with new X, Y, Z coordinates. Simple. It may be laggy. Just thats the only way SSC will offer, I'm not going to create timers because it is just stupid (slow response - what you get? same as OnPlayerUpdate).
Re: [INC] Simple Script Callbacks (SSC) 0.1 - 
Luka P. -  22.06.2010
legodude did you maybe tested OnPlayerPositionChange with more players?
Re: [INC] Simple Script Callbacks (SSC) 0.1 - 
iZN -  22.06.2010
Good Work 
Re: [INC] Simple Script Callbacks (SSC) 0.1 - 
bpeterson -  22.06.2010
Awesome work! Very useful for anticheats. I will surely use it. Thanks!
Re: [INC] Simple Script Callbacks (SSC) 0.1 - 
Luka P. -  22.06.2010
Quote:
| 
 
					Originally Posted by bpeterson  
 
Awesome work! Very useful for anticheats. I will surely use it. Thanks! 
 | 
 Wow, thanks
Re: [INC] Simple Script Callbacks (SSC) 0.1 - 
Burridge -  22.06.2010
Nice work, Luka!
Re: [INC] Simple Script Callbacks (SSC) 0.1 - 
Luka P. -  22.06.2010
Quote:
| 
 
					Originally Posted by Burridge  
 
Nice work, Luka! 
 | 
 Thank you