[Dъvida] Este Comando Estб Corrйto?
#1

pawn Код:
if (strcmp("/condominioentrar", cmdtext, true, 10) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 0)
            {
                if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 0)
                {
                SendClientMessage(playerid, COLOR_GRAD1, "/trabalhar seu FDP");
                return 1;
                }
                if (GetPlayerState(playerid) == 2)
                {
                    new tmpcar = GetPlayerVehicleID(playerid);
                    SetVehiclePos(tmpcar, 917.4199,-1752.3068,13.3790); LinkVehicleToInterior(tmpcar, 0);
                }
                else
                {
                    SetPlayerInterior(playerid,0);
                    SetPlayerVirtualWorld(playerid,0);
                    SetPlayerPos(playerid,917.4199,-1752.3068,13.3790);
                    SetPlayerFacingAngle(playerid,226.0);
                }
                SendClientMessage(playerid, COLOR_GRAD1, "Vocк Entrou No Condominio, Para Sair Digite: /condominiosair");
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo estб autorizado a usar este comando!!");
            }
        }
        return 1;
    }
        if (strcmp("/condominiosair", cmdtext, true, 10) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 0)
            {
                if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 0)
                {
                SendClientMessage(playerid, COLOR_GRAD1, "/trabalhar primeiro.");
                return 1;
                }
                if (GetPlayerState(playerid) == 2)
                {
                    new tmpcar = GetPlayerVehicleID(playerid);
                    SetVehiclePos(tmpcar, 925.6021,-1778.0144,13.3906); LinkVehicleToInterior(tmpcar, 0);
                }
                else
                {
                    SetPlayerInterior(playerid,0);
                    SetPlayerVirtualWorld(playerid,0);
                    SetPlayerPos(playerid,925.6021,-1778.0144,13.3906);
                    SetPlayerFacingAngle(playerid,226.0);
                }
                SendClientMessage(playerid, COLOR_GRAD1, "   Voce Saiu Do Condominio, Para Voltar Digite: /condominioentrar");
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo estб autorizado a usar este comando!!");
            }
        }
        return 1;
    }
Tem Algo Errado? Por Que Quando Eu Digito: /condominio , o personagem ja se Mуve para dentro do /condominioentrar, e quando digito /condominiosair, se Move Para O Mesmo Lugar.

O Que Estб Havendo?

PS: Nгo Tenho O CMD /condominio No Servidor, Isso Que Й Estranho u.U
Reply


Messages In This Thread
[Dъvida] Este Comando Estб Corrйto? - by shadauer - 10.03.2012, 21:15
Re: [Dъvida] Este Comando Estб Corrйto? - by paulor - 10.03.2012, 21:23
Re: [Dъvida] Este Comando Estб Corrйto? - by shadauer - 10.03.2012, 21:24
Re: [Dъvida] Este Comando Estб Corrйto? - by rjjj - 10.03.2012, 21:47
Re: [Dъvida] Este Comando Estб Corrйto? - by paulor - 10.03.2012, 22:08

Forum Jump:


Users browsing this thread: 2 Guest(s)