Need announce : Banned + server closed connection
#1

My server is Roleplay , sometime my member got banned from account or IP just has seen : Server closed connection , they cant understand and dont know why what happen . I want announce in my FS or GM for make a table or red announce banned like :

you are banned from this server , make a form in forum : wwww...
Your ip has been banned from this server
So On to show them know what happen

sorry my bad english , hope you understand and answer help me !
Reply
#2

You must create a timer so that the player can see the message. Refer to the code below.

pawn Код:
// This goes were the message is being sent.
SendClientMessage(playerid, ...); // Your message goes here.
SetTimerEx("KickPlayer", 1000, false, "i", playerid);

// Put this on the bottom of your gamemode.
forward KickPlayer(playerid);
public KickPlayer(playerid)
{
    Kick(playerid);
}
Reply
#3

Since 0.3d+ you have to set some timer before kicking or banning some player in order to give them your client messages.

https://sampwiki.blast.hk/wiki/Kick
http://forum.sa-mp.com/showpost.php?...3&postcount=65
Reply
#4

Try using SetTimer
Reply
#5

Quote:
Originally Posted by eXeDeveloper
Посмотреть сообщение
Try using SetTimer
You must use SetTimerEx. If you use SetTimer then ID 0 (Or the minimun id) will get kicked from the server.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)