21.12.2011, 19:42
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);