07.07.2012, 04:21
OnPlayerScoreChange v2
pawn Код:
#include <a_samp>
stock iPs_SetPlayerScore(playerid, score)
{
new current_score = GetPlayerScore(playerid);
return score == current_score ? 1 : SetPlayerScore(playerid, score), CallLocalFunction("OnPlayerScoreChange", "iii", playerid, score, current_score);
}
#define SetPlayerScore iPs_SetPlayerScore
forward OnPlayerScoreChange(playerid, newscore, oldscore);