Command by name?
#1

CLOSED.
Reply
#2

Quote:
Originally Posted by Rodri99
Посмотреть сообщение
How to make a command for a special name player or kick automatic a player that for name has 'Rodri'?

Thanks to all,
Rodri.
PHP код:
public OnIncomingConnection(playeridip_address[], port) {
     new
          
name[MAX_PLAYER_NAME]
     ;
     
GetPlayerName(playeridnamesizeof(name));
     if (
strcmp(name"YourName"false)==0) {
         
// kick(playerid);
         
BlockIpAddress(ip_address10000); // Blocking a time 10 seconds
     
}
     return 
true;

Reply
#3

PHP код:
#include a_samp
public OnPlayerConnect(playerid)
{
    new 
name[32];
    
GetPlayerName(playerid,name,sizeof(name));
    if(
strcmp(name"Rodri"true)) {
        
SendClientMessage(playerid, -1"Don't come back e.e");
        
Kick(playerid);
    }
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)