• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Library] samp-advanced-kicks
#1
samp-delayed-kick



[Image: sampctl-samp--advanced--kick-2f2f2f.svg?...-the-badge]





?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)

Very?famous?function,?already?known.

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);??

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.??

Code:
public?OnlayerKicked(playerid,?kickerid,?string:?reason[],?time,?responselevel)

Allows?player?to?choose?and?create?their?own?response?if?the?either?player?or?target's?not?connected??



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??

}

Theese're?the?response?levels?used?by?a?responselevel?param?in?OnPlayerKicked?callback





Testing



To?test,?simply?run?the?package:



Code:
sampctl?package?run




Other



I don't know why I've just?had published this
  Reply


Messages In This Thread
samp-advanced-kicks - by Mergevos - 2020-07-27, 12:24 AM
RE: samp-advanced-kicks - by Pinch - 2020-07-30, 10:09 PM
RE: samp-advanced-kicks - by Mergevos - 2020-08-01, 12:41 PM
RE: samp-advanced-kicks - by Pinch - 2020-08-01, 04:42 PM
RE: samp-advanced-kicks - by Mergevos - 2020-08-01, 05:26 PM

Forum Jump: