Posts: 366
Threads: 113
Joined: Feb 2014
Hello , i want to add a function that when player spawn jetpack and then again if he want to spawn jetpack so if the last jetpack was spawned before 10 seconds ago then he can spawn the other one other wise he get a message "You spawn another jetpack in the warning time".
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
Just make a timer when he spawns a jetpack of 10 seconds while setting a variable to 1, then reset the variable to 0 when timer is finished.
Then detect if the variable is set to 1 when spawning another jetpack, and send that message if it is.
Posts: 366
Threads: 113
Joined: Feb 2014
how to start timer after spawning jetpack . so that if the jetpack isn't attached to him he still get the message .
Posts: 366
Threads: 113
Joined: Feb 2014
I know this function but i don't know how to detect that player got an jetpack and then no jetpack can spawn even player don't have jetpack.
Posts: 366
Threads: 113
Joined: Feb 2014