[Pedido] Lуgica
#4

Eu consegui fazer isso
mas nгo estou conseguindo fazer o que estб na lуgica

eu estou tentando fazer mais ou menos assim

na pasta scriptfiles
Admin:luuuck - Player:luuuck2.ini

dentro do arquivo
Код:
Admin luuuck: olб poderia ajudar?
Player luuuck2: onde que e a prefeitura?
Admin luuuck: й perto da dp
vai indo atй o admin digitar o comando de terminar o atendimento

pawn Код:
public OnPlayerText(playerid, text[]){
    if(adminSpec[playerid] == 1){
        new str1[100], str2[100], str3[100], File:hFile, getName1[MAX_PLAYER_NAME], getName2[MAX_PLAYER_NAME];
        GetPlayerName(playerid, getName1, MAX_PLAYER_NAME);
        GetPlayerName(playerid, getName2, MAX_PLAYER_NAME);
        if(playerAdmin[playerid] >= 1) {
            format(str1, 100, "Admin %s: %s", getName1, text);
        }else {
            format(str2, 100, "Player %s: %s", getName2, text);
        }
        format(str3, "Admin:%s - Player:%s", getName1, getName2);
        hFile = fopen(str3, io_append);
        fwrite(hFile, text);
        fclose(hFile);
    }
    return 0;
}
Reply


Messages In This Thread
Lуgica - by luuuck - 04.01.2014, 16:51
Re: Lуgica - by JoaoPedro - 04.01.2014, 16:54
Re: Lуgica - by pWesley - 04.01.2014, 17:03
Re: Lуgica - by luuuck - 04.01.2014, 17:06
Re: Lуgica - by luuuck - 04.01.2014, 18:16

Forum Jump:


Users browsing this thread: 3 Guest(s)