[Ajuda] Log para o comando.
#1

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б.
Reply
#2

Clique aqui
Reply
#3

Nгo consegui,alguem pode ajuda
Reply
#4

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.
Reply
#5

Код:
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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)