2020-07-27, 12:24 AM
samp-delayed-kick
![[Image: sampctl-samp--advanced--kick-2f2f2f.svg?...-the-badge]](https://img.shields.io/badge/sampctl-samp--advanced--kick-2f2f2f.svg?style=for-the-badge)
Installation
Simply install to your project:
Include in your code and begin using the library:
Usage
To use this include, simply include it. There's no need for fixing kick and SendClientMessage(etc...) due to its problems.
There're a few functions.
Very famous function, already known.
Sister function of famous Kick. You may now kick with reason, that's going to be send like a message
This function will check whether the playerid or targetid are connected, returning a `OnPlayerKicked` callback. Allowing you to choose interval after which will player get kicked.
Allows player to choose and create their own response if the either player or target's not connected
Theese're the response levels used by a responselevel param in OnPlayerKicked callback
Testing
To test, simply run the package:
Other
I don't know why I've just had published this
Installation
Simply install to your project:
Code:
sampctl package install Mergevos/samp-advanced-kick
Include in your code and begin using the library:
Code:
#include <m_kicks>
Usage
To use this include, simply include it. There's no need for fixing kick and SendClientMessage(etc...) due to its problems.
There're a few functions.
Code:
Kick(playerid)
Code:
KickEx(playerid, string: reason[], bool:usecallback=false)
Sister function of famous Kick. You may now kick with reason, that's going to be send like a message
Code:
AdvancedKick(playerid, targetid, string: reason[], time);
Code:
public OnlayerKicked(playerid, kickerid, string: reason[], time, responselevel)
Code:
enum {
KICK_SUCCESS = 1, // Kick's successful
KICK_KICKEROFFLINE, // Player offline, target id not player id
KICK_TARGETOFFLINE // Target offline, player id not kicker id
}
Testing
To test, simply run the package:
Code:
sampctl package run
Other
I don't know why I've just had published this