04.01.2014, 17:06
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
vai indo atй o admin digitar o comando de terminar o atendimento
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
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;
}