26.04.2014, 16:28
Mais simples para economizar linhas...
pawn Код:
if(strcmp(cmd, "/desbugar", true) == 0)
{
new plid;
if(pAdmin[playerid] > 0 || Helper[playerid] == 1)return SendClientMessage(playerid, Vermelho, "Valor invбlido, tente novamente!");
if(sscanf(cmdtext, "s[10]u", cmd, plid)) return SendClientMessage(playerid, Vermelho, "Digite: /desbugar [id]");
if(IsPlayerConnected(plid)) return SendClientMessage(playerid, Vermelho, "Usuario Offline.");
format(string, sizeof(string), "O(A) Administrador %s (%d) desbugou o player: %s (%d)!", GetPlayerNameEx(playerid), playerid, GetPlayerNameEx(plid), plid);
SendClientMessageToAll(tcadm, string);
SpawnPlayer(plid);
return 1;
}