[Include] [AP] Anti-Pause System - Automatic
#1

Callbacks:

• OnPlayerPause(playerid, type);

Types:
1 - Player has tabbed out.
2 - Player is not moving.

• OnPlayerUnPause(playerid, type, time);

Types:
1 - Player has disconnected.
2 - Player still connected.

Time in seconds.


Functions:

• IsPlayerPaused(playerid);
- Returns 1 if the player is paused, 0 if is not.

• GetPauseTime(playerid);
- Returns player paused time in seconds.

• GetPauseType(playerid);
- Returns 1 if the player tabbed out, 2 if the player is not moving.

Defines:

• PAUSE_LABEL
- Enables the 3D text label on the player name.

• PAUSE_LABEL_TEXT "YourText"
- Change the 3D label text.

• PAUSE_LABEL_COLOR 0xCOLOR
- Change the 3D label color.

Example:

PHP Code:
#include <a_samp>
#define PAUSE_LABEL
#define PAUSE_LABEL_TEXT "I'M PAUSED PLAYER!"
#define PAUSE_LABEL_COLOR 0xFF0000FF
#include <AP> 
Requirements:

Streamer - Incognito

Bugs:

Nothing found yet, If you found post here.

Download:

ClickHere! - GitHub

Special Thanks:

- iLearner; Few ideas and suggestions.
- Konstantinos; Few notes and improvements on the code.


Enjoy, Hope you like it.
Reply


Messages In This Thread
[AP] Anti-Pause System - Automatic - by oMa37 - 27.12.2016, 20:34
Re: [AP] Anti-Pause System - Automatic - by iLearner - 27.12.2016, 20:37
Re: [AP] Anti-Pause System - Automatic - by oMa37 - 27.12.2016, 20:42
Re: [AP] Anti-Pause System - Automatic - by SyS - 28.12.2016, 11:11
Re: [AP] Anti-Pause System - Automatic - by Lordzy - 02.01.2017, 14:52
Re: [AP] Anti-Pause System - Automatic - by Logic_ - 02.01.2017, 15:20

Forum Jump:


Users browsing this thread: 1 Guest(s)