Me tiene loco esto
#5

PHP код:
CMD:unban(playeridparams[]){
    
    
    if(
PlayerInfo[playerid][jAdmin] < 5
            return 
SCM(playeridROJO"** Necesitas ser administrador nivel +5 para usar este comando.");
    
    if(
isnull(params))
       return 
SCM(playeridAMARILLO"** Utiliza: /unban [nombre]");
   
     static 
        
string[128]
    ;
    
    
string[0] = '\0';
       
    
format(stringsizeof(string), "/Cuentas/%s.ini"params);
    
    
    if(!
fexist(string)) 
        return 
SCM(playeridROJO"** Esa cuenta no existe.");
    
    
    new 
INI:Archivo INI_Open(desbaneado);
    
INI_SetTag(Archivo"data");
    
INI_WriteInt(Archivo"Baneado"0);
    
INI_Close(Archivo);
    
    
    
format(stringsizeof(string), "[#] %s ha sido desbaneado por el administrador %s(%d)."desbaneadoNombre(playerid), playerid);
    
SAM(ROJOstr);
    
    return 
true;

sin sscanf

usted puedes testar?
Reply


Messages In This Thread
Me tiene loco esto - by DeLiC - 31.05.2016, 17:55
Re: Me tiene loco esto - by Unrea1 - 31.05.2016, 18:35
Respuesta: Re: Me tiene loco esto - by DeLiC - 31.05.2016, 18:40
Re: Me tiene loco esto - by Unrea1 - 31.05.2016, 18:52
Re: Me tiene loco esto - by zSuYaNw - 31.05.2016, 19:34
Re: Me tiene loco esto - by SickAttack - 01.06.2016, 02:38

Forum Jump:


Users browsing this thread: 1 Guest(s)