[Ajuda] Virtual World
#1

Daew Galera do forums samp, tem como setar o virtual world de um carro?
Reply
#2

https://sampwiki.blast.hk/wiki/SetVehicleVirtualWorld
Reply
#3

StanleyScripter exemplifica ae por favor ?

vlw pela atenзгo..
Reply
#4

pawn Код:
SetVehicleVirtualWorld(VehicleID, VW);
Reply
#5

vlw mano +reputaзгo!! )
Reply
#6

StanleyScripter nгo estou conseguindo colocar , a funзгo assume no server nгo da warnings nem erros mas nгo seta o veiculo para o virtual world , eu queria utilizar esse sistema para os eventos, o cara digita /eventorally e seta o player para o virtualworld do carro me entende?, mas nгo ta indo ((


Estou colocando o codigo no "OnGameModeInit", e estou fazendo assim:


pawn Код:
AddStaticVehicleEx(571,-2399.2908,2217.5532,4.2681,89.0774,0,0,60000*RESPAWN_TIME); // Kart 1 [513]
    AddStaticVehicleEx(571,-2396.9446,2212.2827,4.2581,86.7409,0,0,60000*RESPAWN_TIME); // Kart 2 [515]
    AddStaticVehicleEx(571,-2396.8755,2214.6748,4.2681,86.6157,0,0,60000*RESPAWN_TIME); // Kart 3 [515]
    AddStaticVehicleEx(571,-2396.5591,2217.4709,4.2681,89.6912,0,0,60000*RESPAWN_TIME); // Kart 4 [516]
    AddStaticVehicleEx(571,-2396.5164,2220.4089,4.2681,87.4044,0,0,60000*RESPAWN_TIME); // Kart 5 [517]
    AddStaticVehicleEx(571,-2396.5603,2222.8530,4.2681,87.6175,0,0,60000*RESPAWN_TIME); // Kart 6 [518]
    AddStaticVehicleEx(571,-2394.0044,2212.1846,4.2585,80.9706,0,0,60000*RESPAWN_TIME); // Kart 7 [519]
    AddStaticVehicleEx(571,-2394.0522,2214.5332,4.2594,87.5285,0,0,60000*RESPAWN_TIME); // Kart 8 [520]
    AddStaticVehicleEx(571,-2393.9614,2217.4075,4.2647,89.2130,0,0,60000*RESPAWN_TIME); // Kart 9 [521]

    SetVehicleVirtualWorld(513,20);
    SetVehicleVirtualWorld(514,20);
    SetVehicleVirtualWorld(515,20);
    SetVehicleVirtualWorld(516,20);
    SetVehicleVirtualWorld(517,20);
    SetVehicleVirtualWorld(518,20);
    SetVehicleVirtualWorld(519,20);
    SetVehicleVirtualWorld(520,20);
    SetVehicleVirtualWorld(521,20);
Reply
#7

pawn Код:
SetVehicleVirtualWorld(AddStaticVehicleEx(571,-2399.2908,2217.5532,4.2681,89.0774,0,0,60000*RESPAWN_TIME), 20);
SetVehicleVirtualWorld(AddStaticVehicleEx(571,-2396.9446,2212.2827,4.2581,86.7409,0,0,60000*RESPAWN_TIME), 20);
SetVehicleVirtualWorld(AddStaticVehicleEx(571,-2396.8755,2214.6748,4.2681,86.6157,0,0,60000*RESPAWN_TIME), 20);
SetVehicleVirtualWorld(AddStaticVehicleEx(571,-2396.5591,2217.4709,4.2681,89.6912,0,0,60000*RESPAWN_TIME), 20);
SetVehicleVirtualWorld(AddStaticVehicleEx(571,-2396.5164,2220.4089,4.2681,87.4044,0,0,60000*RESPAWN_TIME), 20);
SetVehicleVirtualWorld(AddStaticVehicleEx(571,-2396.5603,2222.8530,4.2681,87.6175,0,0,60000*RESPAWN_TIME), 20);
SetVehicleVirtualWorld(AddStaticVehicleEx(571,-2394.0044,2212.1846,4.2585,80.9706,0,0,60000*RESPAWN_TIME), 20);
SetVehicleVirtualWorld(AddStaticVehicleEx(571,-2394.0522,2214.5332,4.2594,87.5285,0,0,60000*RESPAWN_TIME), 20);
SetVehicleVirtualWorld(AddStaticVehicleEx(571,-2393.9614,2217.4075,4.2647,89.2130,0,0,60000*RESPAWN_TIME), 20);
Reply
#8

Mostra o comando do /eventorally, penso que serб no comando que estб o erro.
Reply
#9

pawn Код:
if (strcmp("/em", cmdtext, true, 10) == 0 || strcmp("/eventomonster", cmdtext, true, 10) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 4)
            {
                if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342)
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
                    return 1;
                }
                if (GetPlayerState(playerid) == 2)
                {
                    SetPlayerVirtualWorld(playerid,20);
                    SetPlayerInterior(playerid,0);
                    SetPlayerPos(playerid,-3652.5930,126.7906,68.8668);
                    PlayerInfo[playerid][pInt] = 0;
                    new tmpcar = GetPlayerVehicleID(playerid);
                    SetVehicleToRespawn(tmpcar);
                }
                else
                {
                    SetPlayerVirtualWorld(playerid,20);
                    SetPlayerInterior(playerid,0);
                    SetPlayerPos(playerid,-3652.5930,126.7906,68.8668);
                    PlayerInfo[playerid][pInt] = 0;
                }
                SendClientMessage(playerid, COLOR_GRAD1, "   Vocк Foi Teleportado para o evento de monster!");
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo esta autorizado a usar este comando!!");
            }
        }
        return 1;
    }
Reply
#10

Voce tem que ligar os veiculos a um interior usando a funзгo LinkVehicleToInterior

pawn Код:
LinkVehicleToInterior(IDVEICULO, INTERIOR);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)