30.03.2011, 13:29
First you need create timer
SetTimerEx( "RandomXP", 60000, 0, "d", playerid );
When create callback:
And you got Xp system.
SetTimerEx( "RandomXP", 60000, 0, "d", playerid );
When create callback:
pawn Код:
forward RandomXP( playerid );
public RandomXP( playerid )
{
SetPlayerScore( playerid,GetPlayerScore( playerid ) +random( 40 ) +5 );
}