Pause textlable
#3

pawn Код:
#include a_samp
new PauseTime[MAX_PLAYERS];

public OnPlayerUpdate(playerid)
{
    PauseTime[playerid] = gettime();
    return 1;
}

public OnGameModeInit()
{
    SetTimer("pausecheck", 4321, true);
    return 1;
}

forward pausecheck();
public pausecheck()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
            new PausedSeconds = gettime()-PauseTime[i], string[50];
            if(PausedSeconds > 5){
            format(string, 50, "Paused (%d)", PausedSeconds);
            SetPlayerChatBubble(i, string, -1, 100.0, 5000);
            }
    }
    return 1;
}
If you want to see the seconds as well
Reply


Messages In This Thread
Pause textlable - by Mikkel_RE - 30.07.2012, 08:52
Re: Pause textlable - by Devilxz97 - 30.07.2012, 09:33
Re: Pause textlable - by DeathTone - 30.07.2012, 09:36
Re: Pause textlable - by Mikkel_RE - 30.07.2012, 10:20

Forum Jump:


Users browsing this thread: 1 Guest(s)