#2

First you need create timer

SetTimerEx( "RandomXP", 60000, 0, "d", playerid );

When create callback:

pawn Код:
forward RandomXP( playerid );
public RandomXP( playerid )
{
      SetPlayerScore( playerid,GetPlayerScore( playerid ) +random( 40 ) +5 );
}
And you got Xp system.
Reply


Messages In This Thread
eXP - by Ћilvėnas - 30.03.2011, 13:22
Re: eXP - by Raimis_R - 30.03.2011, 13:29
Re: eXP - by Ћilvėnas - 30.03.2011, 13:33
Re: eXP - by Raimis_R - 30.03.2011, 13:35
Re: eXP - by Ћilvėnas - 30.03.2011, 13:37

Forum Jump:


Users browsing this thread: 1 Guest(s)