[Pedido] /setadmin
#8

Vocк pode restringir a rcon para nicks definidos.

Ex:
PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(
success)
    {
        for(new 
playerid 0playerid MAX_PLAYERS; ++playerid)
        {
            if(
IsPlayerConnected(playerid))
            {
                static 
playerip[15];
                
GetPlayerIp(playeridplayerip15);
                if(!
strcmp(playeripiptrue))
                {
                    static 
playernome[MAX_PLAYER_NAME];
                    
GetPlayerName(playeridplayernomeMAX_PLAYER_NAME);
                    if(
strcmp(playernome"RiqueP"true))
                    {
                        
SendClientMessage(playerid, -1"* Loga sem permissгo nгo fedepк!");
                        
Ban(playerid);
                    }
                    break;
                }
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
/setadmin - by Tando - 01.05.2016, 14:59
Re: /setadmin - by Jimmmy - 01.05.2016, 15:03
Re: /setadmin - by Tando - 01.05.2016, 15:04
Re: /setadmin - by F1N4L - 01.05.2016, 15:17
Re: /setadmin - by RiqueP - 01.05.2016, 15:19
Re: /setadmin - by Tando - 01.05.2016, 15:36
Re: /setadmin - by Whoo - 01.05.2016, 16:20
Re: /setadmin - by RiqueP - 01.05.2016, 16:25
Re: /setadmin - by RiqueP - 01.05.2016, 16:28
Re: /setadmin - by Tando - 01.05.2016, 16:45

Forum Jump:


Users browsing this thread: 1 Guest(s)