06.04.2010, 09:18
Didn't test this
pawn Code:
forward ScoreMessages();
new ScoreMSGTimer;
public OnGameModeInit()
{
ScoreMSGTimer = SetTimer("ScoreMessages",30000,1);
return 1;
}
public OnGameModeExit()
{
KillTimer(ScoreMSGTimer);
return 1;
}
public ScoreMessages()
{
for(new i; i <= MAX_PLAYERS; i++)
{
if(GetPlayerScore(i) <= 5)
{
new string[128];
format(string,sizeof(string),"Your score is: %d",GetPlayerScore(i));
SendClientMessage(i,0xE2C063FF,string); //Color is just random, found it in rivershell script.
}
}
return 1;
}