![]() |
Player Paused
Is there a function on command for a player being paused? I don't mean something like "if (playerpaused) {}"
|
If it was a function woudnt be an event, so in that case why in Gods sweet strawberry slushy would you start with "if" anyway. XD but maybe you can find your answer here.. http://wiki.graal.net/index.php/Crea...ns:_NPC_Server.
Good luck! |
Quote:
|
Well, why dont you use "if (playerpaused)". I doubt theres a function for that, just check the if one in a timeout.
|
to my knowledge there isn't one. would be cool though !! :)
|
I believe ispaused is a variable of the player object.
|
Quote:
Meaning, you could do something like: PHP Code:
|
Quote:
At the end of your script...why set the timer again? thats in fact if you did set the timer again. |
Because player.ispaused is a boolean, not an event. So you have to check it in an event, most likely one that is looped.
|
Quote:
|
Quote:
|
Quote:
When you first login, or the script gets updated, the onCreated() event will trigger and call the event onTimeOut() after 0.5 seconds. Once onTimeOut() is called, it will call itself after 0.5 seconds over and over again. |
Quote:
|
| All times are GMT +2. The time now is 05:48 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.