[AJUDA] Sobre Comando
#2

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 1;
            }
            new playa;
            new Float:slx, Float:sly, Float:slz;
            playa = ReturnUser(tmp);
            if (PlayerInfo[playerid][pAdmin] >=1)//Definiзгo Para Admins
            {
                if(IsPlayerConnected(playa))
                {
                    if(playa != INVALID_PLAYER_ID)
                    {
                        GetPlayerName(playa, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        GetPlayerPos(playa, slx, sly, slz);
                        SetPlayerPos(playa, slx, sly, slz+12);
                        PlayerPlaySound(playa, 1130, slx, sly, slz+12);
                        printf("AVISO: %s slapped %s",sendername,  giveplayer);
                        format(string, sizeof(string), "AVISO: %s ganhou um tapa de: %s",giveplayer ,sendername);
                        SendClientMessageToAll(COLOR_LIGHTRED,string);
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "Voce nгo estб autorizado a usar este comando!");
            }
        }
        return 1;
    }
Reply


Messages In This Thread
[AJUDA] Sobre Comando - by CristoferBahr - 14.10.2011, 03:47
Re: [AJUDA] Sobre Comando - by xFernando_xD - 14.10.2011, 04:00
Re: [AJUDA] Sobre Comando - by Jason` - 14.10.2011, 04:15
Re: [AJUDA] Sobre Comando - by .CrazZy._.[De] - 14.10.2011, 04:30
Re: [AJUDA] Sobre Comando - by guilhermeghc@hotmail.com - 21.01.2012, 11:21

Forum Jump:


Users browsing this thread: 2 Guest(s)