SA-MP Forums Archive
Wait on joining?! - 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: Wait on joining?! (/showthread.php?tid=658626)



Wait on joining?! - SiNaGaMeR - 08.09.2018

Hello there,
I wanna do something that keep waiting player in samp joining
like:

Connecting to IP.
Server didn't respond.
Connecting to IP.
Server didn't respond.

I don't know how I can do this but I tested banip but banip shown "You are banned from this server."
Please help me quickly as you can.


Re: Wait on joining?! - iHollyZinhO - 08.09.2018

You must create this messages using Timer, for example:

PHP код:
new TimerIP[MAX_PLAYERS];

public 
OnPlayerConnect(playerid)
{
    
TimerIP[playerid] = SetTimerEx("BanIPMessages"3000false"d"playerid);
    
}

forward BanIPMessages(playerid);
public 
BanIPMessages(playerid)
{
    
SendClientMessage(playerid, -1"Checking you IP.");
    
SendClientMessage(playerid, -1"Server didn't respond.");

It is only to show messages. You have to code the timer's end and IP verification.


Re: Wait on joining?! - SiNaGaMeR - 08.09.2018

Quote:
Originally Posted by iHollyZinhO
Посмотреть сообщение
You must create this messages using Timer, for example:

PHP код:
new TimerIP[MAX_PLAYERS];
public 
OnPlayerConnect(playerid)
{
    
TimerIP[playerid] = SetTimerEx("BanIPMessages"3000false"d"playerid);
    
}
forward BanIPMessages(playerid);
public 
BanIPMessages(playerid)
{
    
SendClientMessage(playerid, -1"Checking you IP.");
    
SendClientMessage(playerid, -1"Server didn't respond.");

It is only to show messages. You have to code the timer's end and IP verification.
tyyyy