Ban message change??? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Ban message change??? (
/showthread.php?tid=69279)
Ban message change??? -
CAMERON_BANFIELD - 16.03.2009
Hi, is of
Possaible to change the message that shows up to someone who is banned, youknow the messae that showsmwhen they try and rejoin, is there a way of changing it
Thanks,
Cameron
Re: Ban message change??? -
brett7 - 16.03.2009
sort of, but to do it you would have to check the persons ip on connect then if it matches a banned ip then sendclientmessage("bye bye

")
kick("playerid")
or what ever you like, but you cant alter the samp default
Re: Ban message change??? -
CAMERON_BANFIELD - 16.03.2009
Please could you show me how to do it? :P
Thanks
Re: Ban message change??? -
weedarr - 16.03.2009
If you are banned, you dont even connect to the server and you wont receive messages. afaik
WeeDarr
Re: Ban message change??? -
lfcbill - 16.03.2009
so instead of actually banning the player make the banned ip goto a file, then as someone said make it check if the players i is in the file, if so you can send a message then kick
Re: Ban message change??? -
MenaceX^ - 16.03.2009
When you ban someone you can send him a message before he gets it.
Re: Ban message change??? -
CAMERON_BANFIELD - 16.03.2009
Ok I will try it (do you know the code

)
Re: Ban message change??? -
ICECOLDKILLAK8 - 16.03.2009
Just use your own ban system, Like a ban.cfg file in scriptfiles, Then when they connect use strfind to see if thier IP/Name is in the ban file, If it is send them the message and kick them
Re: Ban message change??? -
Austin_Lynn - 16.03.2009
The server loads if banned?
Re: Ban message change??? -
Kinetic - 17.03.2009
Quote:
Originally Posted by Austin_Lynn
The server loads if banned?
|
It will if you dont use the default samp banning system.
ex.
pawn Код:
public OnPlayerConnect(playerid)
{
if(Player[banned] == 0)
{
SendClientMessage(playerid, 0xffffffff, Your account has been banned. Go to this site ('[url]http://www.whateveryoursiteis.com'[/url]) to appeal against your ban. You better have some rock solid evidence against the ban.");
Kick(playerid);
return 1;
}
return 1;
}