Wait on joining?!
#1

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)