10.12.2014, 07:10
There will be no lag. I ran this on a server with 50+ players flawlessly. Let's take this snippet from callbacks.inc:
This section of code will only be called if "OnPlayerBurning" is defined in the other script, e.g:
pawn Код:
if (g_bCallbacks & CB_OnPlayerBurning)
{
if (g_cbPlayers[playerid][e_cbFlags] & e_cbBurning)
{
if ((GetTickCount() - g_cbPlayers[playerid][e_cbLastBurn]) >= 1500)
{
g_cbPlayers[playerid][e_cbFlags] &= ~e_cbBurning;
CallLocalFunction("OnPlayerBurning", "dd", playerid, 0);
}
}
}
pawn Код:
#include <a_samp>
#include <callbacks>
public OnPlayerBurning(playerid, status)
{
// ...
}