SA-MP Forums Archive
[Ajuda] SetVirtualWorld - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] SetVirtualWorld (/showthread.php?tid=346996)



[Ajuda] SetVirtualWorld - jonathan_agv - 30.05.2012

Ae quando eu vo para um mundo de carro, o carro aparece, mas quando eu crio o carro lб ele desaparece e vai pro mundo principal, tem como voces me ajudarem? Eu nao sei usar o Search pf se poderem me ajudar... +rep


Re: [Ajuda] SetVirtualWorld - ReDKiiL - 30.05.2012

poste seu comando de criiar veiculo


Re: [Ajuda] SetVirtualWorld - jonathan_agv - 30.05.2012

Quote:
Originally Posted by ReDKiiL
Посмотреть сообщение
poste seu comando de criiar veiculo
pawn Код:
if (!strcmp("/Elegy", cmdtext, true))
    {
        if(SpawnedVehicles[playerid] != 0) DestroyVehicle(SpawnedVehicles[playerid]);
        new Float:X,Float:Y,Float:Z,Float:ROT;
        GetPlayerPos(playerid,X,Y,Z);
        GetPlayerFacingAngle (playerid,ROT);
        SpawnedVehicles[playerid] = CreateVehicle(562,X,Y,Z,ROT,-1,-1,60);
        PutPlayerInVehicle(playerid,SpawnedVehicles[playerid],0);
        GameTextForPlayer(playerid,"~h~~w~Elegy~n~~h~~w~ID:~h~~r~562",2500,1);
        return 1;



Re: [Ajuda] SetVirtualWorld - ReDKiiL - 30.05.2012

pawn Код:
if (!strcmp("/Elegy", cmdtext, true))
    {
        if(SpawnedVehicles[playerid] != 0) DestroyVehicle(SpawnedVehicles[playerid]);
        new Float:X,Float:Y,Float:Z,Float:ROT;
        GetPlayerPos(playerid,X,Y,Z);
        GetPlayerFacingAngle (playerid,ROT);
        SpawnedVehicles[playerid] = CreateVehicle(562,X,Y,Z,ROT,-1,-1,60);
        SetVehicleVirtualWorld(SpawnedVehicles[playerid],GetPlayerVirtualWorld(playerid));
        PutPlayerInVehicle(playerid,SpawnedVehicles[playerid],0);
        GameTextForPlayer(playerid,"~h~~w~Elegy~n~~h~~w~ID:~h~~r~562",2500,1);
        return 1;
Aproveite e Veja Isso >> https://sampforum.blast.hk/showthread.php?tid=211189