Mathias Lui Posted July 27, 2016 Share Posted July 27, 2016 Hello Community, I hope this is in the right section. I wanted to ask you if you like this resource I made, or if you have any improvement suggestions. This is one of my first scripts. Here's the link: https://community.multitheftauto.com/in ... s&id=13524 would be great if you would take some minutes and test it. regards Mathias Lui Link to comment
Tails Posted July 28, 2016 Share Posted July 28, 2016 Haven't tested the script but I had a look at the code. outputChatBox( "ERROR: Since you or someone else killed the trader, you can't buy a driving licence. Ask an administrator for help." It's probably better to make the ped respawn after some time if it dies. Link to comment
Mathias Lui Posted July 28, 2016 Author Share Posted July 28, 2016 Haven't tested the script but I had a look at the code. outputChatBox( "ERROR: Since you or someone else killed the trader, you can't buy a driving licence. Ask an administrator for help." It's probably better to make the ped respawn after some time if it dies. That's a good idea. I didn't have that in mind. Just...I'm not familiar with timers, for loops and repeat and while loops. There aren't any good tutorials out there on the net. Link to comment
Tails Posted July 29, 2016 Share Posted July 29, 2016 Timers are easy. The rest as well but you don't need them for this. Try doing setTimer(function() -- your code end,300000,1) The code inside this timer gets triggered after 300000 milliseconds or 5 minutes, and it's only triggered once. You can make an event for when the ped dies and trigger the timer with it. 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