01.04.2011, 19:29
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.
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
Enjoy.