AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   timeleft yields rounds left (https://forums.alliedmods.net/showthread.php?t=132069)

ghostofmybrain 07-11-2010 14:24

timeleft yields rounds left
 
I'd like to try to edit the timeleft.sma so that if mp_timelimit 0, it will output "No time limit. X rounds remaining" (where X is mp_maxrounds minus the number of rounds played).

I was trying to look at the roundsleft plugin in conjunction with the timeleft AMX plugin and try to consolidate them into one, but I couldn't figure out how to do that right.

fysiks 07-11-2010 16:31

Re: timeleft yields rounds left
 
You hook new round then count each time it is called. Then just do mp_maxrounds - number of rounds counted when you print it in timeleft.


All times are GMT -4. The time now is 07:07.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.