[Include] [INC] Simple Script Callbacks (SSC) 0.1
#1

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)
Reply
#2

Nice, thanks
Reply
#3

Quote:
Originally Posted by .::: Gamestar :::.
Nice, thanks
Thanks, no problem :P
Reply
#4

OnPlayerPositionChange

if you use tat wont it cause Major lag?
since a player updates his pos every(by default) 50MS?
Reply
#5

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.
Reply
#6

did you use the callback there?
with functions in it?
Reply
#7

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).
Reply
#8

legodude did you maybe tested OnPlayerPositionChange with more players?
Reply
#9

Good Work
Reply
#10

Awesome work! Very useful for anticheats. I will surely use it. Thanks!
Reply
#11

Quote:
Originally Posted by bpeterson
Awesome work! Very useful for anticheats. I will surely use it. Thanks!
Wow, thanks
Reply
#12

Nice work, Luka!
Reply
#13

Quote:
Originally Posted by Burridge
Nice work, Luka!
Thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)