Ban message change???
#1

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
Reply
#2

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
Reply
#3

Please could you show me how to do it? :P
Thanks
Reply
#4

If you are banned, you dont even connect to the server and you wont receive messages. afaik

WeeDarr
Reply
#5

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
Reply
#6

When you ban someone you can send him a message before he gets it.
Reply
#7

Ok I will try it (do you know the code)

Reply
#8

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
Reply
#9

The server loads if banned?
Reply
#10

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)