27.04.2014, 07:24
alguem mim ajuda tenho esse comando aki
de dar aviso queria fazer um pra tira de 1 em 1 aviso alguem ajuda?
Код:
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;
}


