[Pedido] Base de /trocarnick
#9

Quote:
Originally Posted by IlanZ
Посмотреть сообщение
Cara eu passei minutos refazendo e acho que agora vai funcionar, nгo й possivel kkk

PHP код:
CMD:mudarnick(playeridparams[]) 

    new 
nickn[24], data[6];
    if(
sscanf(params"s[24]"nickn)) return SendClientMessage(playerid0xFF0000FF"| ERRO | Use: /MudarNick (novo nick).");
    
getdate(data[0], data[1], data[2]); 
    
gettime(data[3], data[4], data[5]); 
    if(
NickLiberado[playerid] == 0)
    {
        
SendClientMessage(playerid0xFF0000FF"| ERRO | Vocк nгo estб liberado para mudar nick. Peзa pelo /Duvida.");
    } 
    else
    { 
        new 
nicknovo[70], string[80], nickantigo[70]; 
        
format(nickantigo,sizeof(nickantigo), "Contas/%s.ini"PlayerName(playerid)); 
        
format(nicknovo,sizeof(nicknovo),"Contas/%s.ini",nickn);
        
format(string,sizeof(string),"| NICK | O(A) %s %s(%d) trocou de nick. Novo nick: %s (%02d/%02d/%02d %02d:%02d:%02d)"CargoAdm(playerid), PlayerName(playerid), playeridnickndata[2], data[1], data[0], data[3], data[4], data[5]); 
        
SendClientMessageToAll(0xF3FF00AAstring); 
        
DOF2_RenameFile(nickantigonicknovo);  
        
SetPlayerName(playeridnickn); 
        
NickLiberado[playerid] = 0
    } 
    return 
1
}  
stock PlayerName(playerid){
    new 
aname[24];
    
GetPlayerName(playeridanamesizeof(aname));
    return 
aname;

Agora funcionou. Darei +REP se jб nгo tiver dado
Reply


Messages In This Thread
Base de /trocarnick - by Luiiiz - 04.04.2017, 00:17
Re: Base de /trocarnick - by IlanZ - 04.04.2017, 00:29
Re: Base de /trocarnick - by Luiiiz - 04.04.2017, 00:37
Re: Base de /trocarnick - by IlanZ - 04.04.2017, 00:49
Re: Base de /trocarnick - by Luiiiz - 04.04.2017, 00:57
Re: Base de /trocarnick - by IlanZ - 04.04.2017, 01:09
Re: Base de /trocarnick - by Luiiiz - 04.04.2017, 01:15
Re: Base de /trocarnick - by IlanZ - 04.04.2017, 01:41
Re: Base de /trocarnick - by Luiiiz - 04.04.2017, 02:09

Forum Jump:


Users browsing this thread: 4 Guest(s)