[Pedido] Base de /trocarnick
#4

PHP код:

CMD
:mudarnick(playeridparams[]) 

    new 
nickn[20], nickold[24], pname[20], Ano1Mes1Dia1Hora1Minuto1Segundo1string[70], string2[80], string3[70]; 
    if(
sscanf(params"s[20]"nickn)) return SendClientMessage(playerid0xFF0000FF"| ERRO | Use: /MudarNick (novo nick).");
    
getdate(Ano1Mes1Dia1); 
    
gettime(Hora1Minuto1Segundo1); 
    
GetPlayerName(playeridpname20); 
    
GetPlayerName(playerid,nickold,24)
    
format(nickoldsizeof(nickold), "Contas/%s.ini"pname); 
    if(
NickLiberado[playerid] == 0) return SendClientMessage(playerid0xFF0000FF"| ERRO | Vocк nгo estб liberado para mudar nick. Peзa pelo /Duvida."); 
    if(
NickLiberado[playerid] == 1
    { 
        
format(stringsizeof(string), "Contas/%s.ini"nickold); 
        
format(string3sizeof(string3),"Contas/%s.ini"nickn);
        
format(string2,sizeof(string2), "| NICK | O(A) %s %s(%d) trocou de nick. Novo nick: %s (%02d/%02d/%02d %02d:%02d:%02d)"CargoAdm(playerid), pnameplayeridnicknDia1Mes1Ano1Hora1Minuto1Segundo1); 
        
SendClientMessageToAll(0xF3FF00AAstring2); 
        
NickLiberado[playerid] = 0
        
DOF2_RenameFile(stringstring3);  
        
SetPlayerName(playeridnickn); 
    } 
    return 
1

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: 1 Guest(s)