help with count down secounts
#2

Код:
new Jailed[MAX_PLAYERS], JailTime[MAX_PLAYERS];
In command set:
Код:
Jailed[playerid] = 1;
JailTime[playerid] = 120;
Down of your script:
Код:
forward jailtime(playerid);
public jailtime(playerid)
{
if(Jailed[playerid])
{
format (format your TextDraw with time)
TextDrawSetString
TextDrawShowForPlayer
		
JailTime[playerid] -= 1;

if(JailTime[playerid] == -1)
{
Jailed[playerid] = 0;
// Unjail player here.
}
return true;
}
And in command use SetTimerEx with looping.
Reply


Messages In This Thread
help with count down secounts - by Rafa - 27.07.2011, 17:14
Re: help with count down secounts - by Riddick94 - 27.07.2011, 17:23
Re: help with count down secounts - by iPLEOMAX - 27.07.2011, 17:26
Re: help with count down secounts - by Rafa - 27.07.2011, 17:36
Re: help with count down secounts - by iPLEOMAX - 27.07.2011, 17:43
Re: help with count down secounts - by Rafa - 27.07.2011, 18:31

Forum Jump:


Users browsing this thread: 1 Guest(s)