09.09.2012, 13:17
Daew Galera do forums samp, tem como setar o virtual world de um carro?
SetVehicleVirtualWorld(VehicleID, VW);
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);
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);
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;
}
LinkVehicleToInterior(IDVEICULO, INTERIOR);