22.10.2011, 07:19
Hee all,
I need a timer with minutes and seconds for my jailing system.
Code:
I hope you will share your code.
Thanks Admigo
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); }
Thanks Admigo