Quote:
Originally Posted by hipy
Quote:
Originally Posted by lrZ^ aka LarzI
I believe the callback you are thinking of Don Correlli, is in YUP.
Anyways, if you don't want to use more callbacks, just use OnPlayerUpdate
pawn Код:
//global new Float:g_fUpdateHealth; //OnPlayerUpdate public OnPlayerUpdate(playerid) { new Float:fUpdateHealth; if( fUpdateHealth != g_fUpdateHealth ); { //health has changed } return true; }
|
Do you have any idea how often onplayerupdate is called? yes A LOT per seconds.
Wouldn't recommend this.
|
20-30 times in one second.
You have to divide 1 with 25 so 40-50 ms.