iFoReX Posted May 20, 2012 Share Posted May 20, 2012 in a servers I looked a buttons for paste the serial , a function for do it ? Link to comment
Castillo Posted May 20, 2012 Share Posted May 20, 2012 You mean paste a text copied on the clipboard? if so then you can use the function: setClipboard to set the clipboard text. Link to comment
iFoReX Posted May 20, 2012 Author Share Posted May 20, 2012 Ok thank you, , now, how do a script for it : Example : guiSetText(label, "the Manhunt Finished in X Seconds" ) how ? X seconds Link to comment
Stanley Sathler Posted May 20, 2012 Share Posted May 20, 2012 getTickCount() I don't know, but I think it works for it. Link to comment
Noneatme Posted May 20, 2012 Share Posted May 20, 2012 local rofl = 5 setTimer(function() guiSetText(label, "the Manhunt Finished in "..rofl.." Seconds" ) rofl = rofl-1 end, 1000, rofl) Link to comment
Jaysds1 Posted May 20, 2012 Share Posted May 20, 2012 Use what StanleySathler posted at the beginning of the manhunt then when it's time to get the seconds , add the same thing again before the output then get the first tick and the last tick and minus both then put: local X = firstTick - secondTick You could use my resource for an example: https://community.multitheftauto.com/index.php?p= ... ls&id=4730 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now