BanEx(playerid); - 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: BanEx(playerid); (
/showthread.php?tid=463327)
BanEx(playerid); -
Don_Cage - 11.09.2013
What would this ban? The IP or the Name?
Re: BanEx(playerid); -
Eyce - 11.09.2013
The player's IP (stored in your samp.ban) and the only difference with "Ban();" is you can add a comment or reason.
Example:
pawn Код:
BanEx(playerid, "Hacking");
Re: BanEx(playerid); -
Don_Cage - 11.09.2013
Can I show a string too?
pawn Код:
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string),"%s, You got banned.",name);
BanEx(playerid, string);
Re: BanEx(playerid); -
Eyce - 11.09.2013
Yes, absolutely.
Re: BanEx(playerid); -
Don_Cage - 11.09.2013
Well Thank you very much for the help!