[Ajuda] /desbugar
#3

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;
    }
Reply


Messages In This Thread
/desbugar - by Netiinho - 26.04.2014, 15:14
Re: /desbugar - by AndreOliveira - 26.04.2014, 15:16
Re: /desbugar - by DownGrade - 26.04.2014, 15:49
Re: /desbugar - by Caio_Freeze - 26.04.2014, 16:28
Re: /desbugar - by rogerioexper - 26.04.2014, 16:57

Forum Jump:


Users browsing this thread: 2 Guest(s)