Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Top Of Your Script
- new Minutes[ MAX_PLAYERS ] ;
- new Seconds [ MAX_PLAYERS ] ;
- new Timer [ MAX_PLAYERS ] ;
- //Jahan se Tujhe Counting start karni hai wahan pe Timer lagao
- Timer [ playerid ] = SetTimerEx ( "CountTime" , 1000 , true , "i" , playerid) ;
- //Function
- public CountTime ( playerid )
- {
- Seconds [ playerid ] ++ ;
- if(Seconds [ playerid ] >= 60)
- {
- Minutes [ playerid ]++;
- Seconds[playerid] = 0 ;
- }
- }
- //KillTimer When you done or u want to reset...
- KillTimer ( Timer [ playerid ] ) ;
- //Output
- new str [ 128 ] ;
- format(str,sizeof(str),"Lap Time --> Minutes: %d || Seconds: %d",Minutes[playerid],Seconds[playerid]);
- SendClientMessage(playerid,-1,str);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement