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