Kick/Ban - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Kick/Ban (
/showthread.php?tid=409626)
Kick/Ban -
UnknownGamer - 22.01.2013
Hey guys,
do you know what variable kick and ban comes under, is it OnPlayerDisconnect?
I'm trying to save a variable, but doesn't sometimes work when we ban someone from the server, or kick.
Am I correct?
Re: Kick/Ban -
Threshold - 22.01.2013
try saving your variables in the ban or kick command.
Re: Kick/Ban -
arakuta - 22.01.2013
Save the variable before kick...
pawn Код:
CMD:kicktest(playerid) // Only an exemple
{
Kicked[playerid] = true;
Kick(playerid);
return 1;
}
Also, reason 2 at OnPlayerDisconnect, means kick or banned.
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
if(reason == 2) SendClientMessageToAll(-1,"A bitch got kicked or banned off from the server.");
return 1;
}
Re: Kick/Ban -
Mado - 22.01.2013
What's the point of "Kicked[playerid] = true;"?