26.02.2013, 15:18
You would have to use SetTimerEx for player-specific timers, and you should start them at OnPlayerConnect for your purpose:
And there you have it.
pawn Код:
SetTimerEx( "MyTimer", ( 5 * 60 * 1000 ), true, "i", playerid );
// 5 * 60 * 1000 = 5 minutes, i = integer, playerid is the chosen integer to use as parameter
pawn Код:
forward MyTimer(playerid); //here put the parameter - you may call it whatever you like, but make sure it matches the data you send( in this case: integer)
public MyTimer(playerid)
{
SetPlayerScore( playerid, ( GetPlayerScore( playerid ) + 12 ));
return true;
}

