Seconds to minutes and seconds?
#1

Hee all,
I need a timer with minutes and seconds for my jailing system.
Code:
Код:
 if(JailTime[i] > 1)
	        {
	            //Timer
	            format(string,sizeof(string),"Jailtime: %d",JailTime[i]);
	            TextDrawSetString(JailTimer[i],string);
	            
	            JailTime[i] --;
			}
			if(JailTime[i] == 1)
			{
			    format(string,sizeof(string),"[JAIL] %s(%d) has been released from San Fierro Prison after %d seconds in jail.",pname,i,TotalJailTime[i]);
			    SendClientMessageToAll(COLOR_ORANGE,string);
			    format(string,sizeof(string),"7[JAIL] %s(%d) has been released from San Fierro Prison after %d seconds in jail.",pname,i,TotalJailTime[i]);
			    

				TotalJailTime[i] =0;
				JailTime[i] =0;
				TextDrawHideForPlayer(i,JailTimer[i]);
				
				SetPlayerPos(i,225.8451,112.8976,1003.2188);
				SetPlayerFacingAngle(i,1.0816);
				SetCameraBehindPlayer(i);
			}
I hope you will share your code.
Thanks Admigo
Reply


Messages In This Thread
Seconds to minutes and seconds? - by Admigo - 22.10.2011, 07:19
Re: Seconds to minutes and seconds? - by Michael@Belgium - 22.10.2011, 11:16

Forum Jump:


Users browsing this thread: 1 Guest(s)