[Ajuda] Log para o comando. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Log para o comando. (
/showthread.php?tid=637514)
Log para o comando. -
helpmesamp - 16.07.2017
Olб,queria colocar log nesse comando:
Код:
CMD:delblacklist(playerid, params[])
{
if(!APlayerData[playerid][pLogged])
return SendClientMessage(playerid, COLOR_GRAD1, " » Vocк nгo estб logado.");
if(APlayerData[playerid][pAdmin] < 10)
return SendClientMessage(playerid, COLOR_GRAD1, " » Vocк nгo й um admin mбster.");
new name[25], cFile[25+8];
if(sscanf(params, "s[25]", name))
return SendClientMessage(playerid, COLOR_GRAD1, " » (DICA): Use /delblacklist [Nome]");
format(cFile, sizeof(cFile), "Bans/%s.ini", name);
if(DOF2_FileExists(cFile))
{
DOF2_RemoveFile(cFile);
SendClientMessage(playerid, COLOR_LIGHTBLUE, " » Usuбrio desbanido com sucesso.");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " » Este usuбrio nгo estб banido.");
}
return 1;
}
Ou seja,aparece lб quem digitou ele,entгo vou saber quem estб desbanindo contas..
Diretorio: Logs > delblacklist !
Muito obrigado des de jб.
Re: Log para o comando. -
LosHermanos - 16.07.2017
Clique aqui
Re: Log para o comando. -
helpmesamp - 16.07.2017
Nгo consegui,alguem pode ajuda
Re: Log para o comando. -
Saw_BR - 16.07.2017
Quote:
Originally Posted by helpmesamp
Nгo consegui,alguem pode ajuda
|
https://sampforum.blast.hk/showthread.php?tid=293534
Cara, dб uma lida, tenta entender e usa/adaptar no teu servidor, й um sistema simples de usar.
Re: Log para o comando. -
MrEdu - 16.07.2017
Код:
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
printf("%s desbaniu a conta de %s", aname, name);
Essa й a forma bбsica, e se vocк quiser apenas nesse comando