SA-MP Forums Archive
[Include] OnPlayerPause - Another release (Smaller) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] OnPlayerPause - Another release (Smaller) (/showthread.php?tid=245738)



OnPlayerPause - Another release (Smaller) - $t3ve - 01.04.2011

Hi.


This is another OnPlayerPause release, I know, you may ask why you should use another one. Well, you should use it because its smaller, and better (I THINK, I don't know).


Код:
// Functions
OnPlayerPause(playerid) // That's your callback wich you should add to your gamemode.
Installation

Put "OnPlayerPause.inc" to your ServerDirectory/pawno/include folder.
Open your GAMEMODE and include "OnPlayerPause" in it (#include <OnPlayerPause>).
Add PAUSE_OnGameModeInit() to your OnGameModeInit() callback.
Add PAUSE_OnPlayerConnect(playerid) to your PAUSE_OnPlayerConnect(playerid) callback.
Add PAUSE_OnPlayerDisconnect(playerid, reason) to your PAUSE_OnPlayerDisconnect(playerid, reason) callback.
Add PAUSE_OnPlayerUpdate(playerid) to your PAUSE_OnPlayerUpdate(playerid) callback.


Download

Pastebin

Solidfiles


Enjoy.



Re: OnPlayerPause - Another release (Smaller) - St1geR - 01.04.2011

Very cool.


Re: OnPlayerPause - Another release (Smaller) - Rock_Ro - 01.04.2011

And what the difference is ?


Respuesta: OnPlayerPause - Another release (Smaller) - anonymousx - 01.04.2011

That could be better than The_Moddler's OnPlayerPause, because this use only a timer, and the other include creates differents timers for the players in OnPlayerConnect.
By the way, can you add the callback OnPlayerUnpause? You can assign variables to detect if the player get back to the game.
And you can hook those callbacks without using functions, you can use ALS's method.


Re: Respuesta: OnPlayerPause - Another release (Smaller) - $t3ve - 01.04.2011

Quote:
Originally Posted by anonymousx
Посмотреть сообщение
That could be better than The_Moddler's OnPlayerPause, because this use only a timer, and the other include creates differents timers for the players in OnPlayerConnect.
By the way, can you add the callback OnPlayerUnpause? You can assign variables to detect if the player get back to the game.
And you can hook those callbacks without using functions, you can use ALS's method.
ALS's method?

And yeh, trying to add it.


Re: OnPlayerPause - Another release (Smaller) - Ironboy - 02.04.2011

Good Job!


Re: OnPlayerPause - Another release (Smaller) - [DOG]irinel1996 - 02.04.2011

Good job man! Thanks.


Re: OnPlayerPause - Another release (Smaller) - misho1 - 19.07.2011

Very Goood !!!


Re: OnPlayerPause - Another release (Smaller) - Lenny the Cup - 19.07.2011

Why are you using CallLocalFunction on line 81? Also when are you calling PAUSE_CheckPlayers? Because it doesn't look like it's ever called. So why is it included?


Re: OnPlayerPause - Another release (Smaller) - titanak - 01.01.2012

the other version of pause detector was better.


Re: OnPlayerPause - Another release (Smaller) - Emmet_ - 01.01.2012

Quote:
Originally Posted by titanak
Посмотреть сообщение
the other version of pause detector was better.
So, you bumped a 5-month-old thread to tell us this?


Re: OnPlayerPause - Another release (Smaller) - Marko Koprivanac - 20.04.2012

Is there public OnPlayerUnPause ?!


Re: OnPlayerPause - Another release (Smaller) - NoahF - 30.06.2013

No UnPause?


Re: OnPlayerPause - Another release (Smaller) - BiosMarcel - 28.01.2017

Quote:
Originally Posted by GoodFather
Посмотреть сообщение
Its Not Working For Me!
Nice bumping and nice logs / errors that you gave us :P


Re: OnPlayerPause - Another release (Smaller) - GoodFather - 28.01.2017

It Works Perfectly! )