[Ajuda] Rcon
#4

pawn Код:
if(strcmp(cmd, "/tapa", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /tapa [id]");
                return true;
            }
            new playa;
            //new Float:shealth;
            new Float:slx, Float:sly, Float:slz;
            playa = ReturnUser(tmp);
            if (PlayerInfo[playerid][pAdmin] >=1)
            {
    if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != DONO)
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
                    return true;
                }
                if(IsPlayerConnected(playa))
                {
                    if(playa != INVALID_PLAYER_ID)
                    {
                        if(PlayerInfo[playa][pAdmin] >= 1340 && PlayerInfo[playerid][pAdmin] < SUB_GERENTE)
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo pode dar tapas em um Admin Dono !");
                            return true;
                        }
                        GetPlayerName(playa, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        //GetPlayerHealth(playa, shealth);
                        //SetPlayerHealth(playa, shealth-5);
                        GetPlayerPos(playa, slx, sly, slz);
                        SetPlayerPos(playa, slx, sly, slz+12);
                        PlayerPlaySound(playa, 1130, slx, sly, slz+12);
                        printf("AdmCmd: %s slapped %s",sendername,  giveplayer);
                        if(admtrampando[playerid] == 1 && admhide[playerid] == 1)
                        {
                            format(string, sizeof(string), "AdmCmd: %s ganhou um tapa de: %s",giveplayer ,PlayerName(playerid));
                        }
                        else
                        {
                            format(string, sizeof(string), "AdmCmd: %s ganhou um tapa de: %s",giveplayer ,PlayerName(playerid));
                        }
                        ABroadCast(COLOR_LIGHTRED,string,1);
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo estб autorizado a usar este comando!");
            }
        }
        return true;
}
Acredito que nгo foi isso
----
matheus_alcapone Como localizo isso?
Reply


Messages In This Thread
Rcon - by darkturque - 04.10.2012, 21:22
Re: Rcon - by Sky™ - 04.10.2012, 21:28
Re: Rcon - by MatheusAlcapone - 04.10.2012, 21:28
Re : Rcon - by darkturque - 04.10.2012, 21:30
Re: Rcon - by Joao Pedro - 04.10.2012, 21:32
Re: Rcon - by MatheusAlcapone - 04.10.2012, 21:33
Re: Rcon - by Sky™ - 04.10.2012, 21:33
Re : Re: Rcon - by darkturque - 04.10.2012, 21:35
Re: Rcon - by MatheusAlcapone - 04.10.2012, 21:39
Re: Rcon - by VenoN - 04.10.2012, 21:43

Forum Jump:


Users browsing this thread: 1 Guest(s)