Gametextforplayer with % progress?
#2

I'd do something like this:

pawn Код:
new progress, turfTimer;

forward turfProgress(playerid);

public turfProgress(playerid)
{
//IsPlayerInRangeOfPoint, etc...
    progress++;
    new string[50];
    format(string, sizeof(string), "%d%", progress);
    GameTextForPlayer(playerid, string, 650, 3);
    if(progress == 100) {
        KillTimer(turfTimer);
// Set them owner of that turf, etc.
    }
}


//CMD:taketurf or however you are doing it
progress = 0;
turfTimer = SetTimerEx("turfProgress", 700, true, "i", playerid);
Reply


Messages In This Thread
Gametextforplayer with % progress? - by Face9000 - 21.12.2011, 19:29
Re: Gametextforplayer with % progress? - by jamiesage123 - 21.12.2011, 19:42
Re: Gametextforplayer with % progress? - by skaTim - 21.12.2011, 19:44
Re: Gametextforplayer with % progress? - by Face9000 - 21.12.2011, 19:48
Re: Gametextforplayer with % progress? - by Tee - 21.12.2011, 19:50
Re: Gametextforplayer with % progress? - by Face9000 - 21.12.2011, 19:54
Re: Gametextforplayer with % progress? - by -Rebel Son- - 21.12.2011, 20:01
Re: Gametextforplayer with % progress? - by Face9000 - 21.12.2011, 20:02

Forum Jump:


Users browsing this thread: 1 Guest(s)