Not sending messages
#2

Make a timer before kicking the player, like this:

PHP код:
#define     DelayKick(%0)   SetTimerEx("DelayedKick", 300, 0, "d", %0)
forward DelayedKick(playerid);
public 
DelayedKick(playerid)
{
    
Kick(playerid);
    return 
1;
}
stock NameCheck(playerid

    new 
str[128]; 
    new 
namecheck strfind(GetName(playerid), "_"true); 
    if(
namecheck >= 1
    { 
        
SendClientMessage(playeridCOLOR_RED"On United County Roleplay we operate a 'Master Account' system. In order to register an account you will need to join with a nickname(without the '_'), instead of your roleplay name."); 
        
format(strsizeof(str), "%s was kicked by the server for joining with a roleplay name.",GetName(playerid)); 
        
SendAdminsMessage(1COLOR_ORANGEREDstr); 
        
DelayKick(playerid); 
    } 
    return 
1

Reply


Messages In This Thread
Not sending messages - by aoky - 19.05.2017, 10:28
Re: Not sending messages - by oMa37 - 19.05.2017, 10:32
Re: Not sending messages - by Logic_ - 19.05.2017, 10:55
Re: Not sending messages - by GTLS - 19.05.2017, 16:39

Forum Jump:


Users browsing this thread: 1 Guest(s)