20.06.2010, 08:08
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
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:
Download
[INC] Simple Script Callbacks (SSC) 0.1 (Solidfiles.com)
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);
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>
[INC] Simple Script Callbacks (SSC) 0.1 (Solidfiles.com)