[Ajuda] Ajuda
#1

alguem mim ajuda tenho esse comando aki

Код:
if(strcmp(cmd, "/aviso", true) == 0)
	{
		if(pAdmin[playerid] > 0 || Helper[playerid] == 1)
		{
			new plid, motivo[256];

			if(sscanf(cmdtext, "s[7]us[256]", cmd, plid, motivo))
			{
				SendClientMessage(playerid, Vermelho, "Digite: /aviso [id] [motivo]");
				return 1;
			}
			if(IsPlayerConnected(plid))
			{
				aviso[plid] += 1;
				if(aviso[plid] >= 3)
				{
					format(string, sizeof(string), "O(A) jogador(a) %s foi kickado(a) por [New]System. Motivo: 3/3 Avisos", GetPlayerNameEx(plid));
     				SendClientMessageToAll(Amarelo, string);
					KickLog(string);
					Kick(plid);
				}
				else
				{
					format(string, sizeof(string), "O(A) jogador(a) %s levou um aviso por %s. Motivo: %s (%d/3)", GetPlayerNameEx(plid), GetPlayerNameEx(playerid), motivo, aviso[plid]);
					SendClientMessageToAll(tcadm, string);
				}
			}
			else
			{
				format(string, sizeof(string), " ID invбlido!");
				SendClientMessage(playerid, Vermelho, string);
			}
		}
		return 1;
	}
de dar aviso queria fazer um pra tira de 1 em 1 aviso alguem ajuda?
Reply


Messages In This Thread
Ajuda - by Netiinho - 27.04.2014, 07:24
Re: Ajuda - by VeNuZ_ - 27.04.2014, 07:33
Re: Ajuda - by Netiinho - 27.04.2014, 07:48
Re: Ajuda - by VeNuZ_ - 27.04.2014, 07:55
Re: Ajuda - by Netiinho - 27.04.2014, 08:08
Re: Ajuda - by VeNuZ_ - 27.04.2014, 08:18
Re: Ajuda - by Netiinho - 27.04.2014, 08:22
Re: Ajuda - by VeNuZ_ - 27.04.2014, 08:28
Re: Ajuda - by Netiinho - 27.04.2014, 08:29
Re: Ajuda - by VeNuZ_ - 27.04.2014, 08:40

Forum Jump:


Users browsing this thread: 1 Guest(s)