I need help
#4

pawn Код:
// Put this under OnGameModeInit
SetTimer("GiveScore",1800000,true); // 1 sec = 1000 millisecond 1800000 = 30 mins.
// These two anywhere incase you ask.
forward GiveScore();
public GiveScore()
{
    for(new i = 0; i < sizeof(MAX_PLAYERS); i ++)
    {
        SetPlayerScore(i, GetPlayerScore(playerid)+1);
        new string[25]; format(string,sizeof(string,"Level up ~N~ ~>~ You're now level %d ~<~",GetPlayerScore(playerid);
        GameTextForPlayer(i,string,5000,6);
    }
    return 1;
}
Be sure to read wiki.sa-mp.com for such basic coding.

Read:
GameTextForPlayer.
How to set a timer and use it.
Formatting messages.
Reply


Messages In This Thread
I need help - by Nenzittow - 29.07.2014, 18:26
Re: I need help - by Clad - 29.07.2014, 18:29
Re: I need help - by Nenzittow - 29.07.2014, 18:34
Re: I need help - by DaniceMcHarley - 29.07.2014, 18:48
Re: I need help - by Nenzittow - 29.07.2014, 18:57
Re: I need help - by Clad - 29.07.2014, 19:14
Re: I need help - by Nenzittow - 29.07.2014, 19:31
Re: I need help - by Burning - 29.07.2014, 19:33
Re: I need help - by Clad - 29.07.2014, 19:35
Re: I need help - by Burning - 29.07.2014, 19:36

Forum Jump:


Users browsing this thread: 2 Guest(s)