Set spawn vehicle in a interior
#1

Problem is whenever I go to /derby it always spawn new derby vehicles so it's look like vehicle flood.

Edit: How to set 15 derby vehicles in this interior, but not adding new one?

pawn Код:
new bloodring1; //derby
new bloodring2; //derby
new bloodring3; //derby
new bloodring4; //derby
new bloodring5; //derby
new bloodring6; //derby
new bloodring7; //derby
new bloodring8; //derby
new bloodring9; //derby
new bloodring10; //derby
new bloodring11; //derby
new bloodring12; //derby
new bloodring13; //derby
new bloodring14; //derby
new bloodring15; //derby
pawn Код:
CMD:derby(playerid, params[])
{
    new string[128], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
    format(string, sizeof(string), "{6666FF}(/derby) {00CCFF}%s {6666FF}has Teleported to Derby  Deathmatch",pName);
    SendClientMessageToAll(0xFFFFFFFF, string);
    GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Derby Deathmatch",2000,3);
    SetPlayerPos(playerid, -1398.103515,937.631164,1038.479125);
    SetCameraBehindPlayer(playerid);
    SetPlayerFacingAngle(playerid, 0.0);
    SetPlayerHealth(playerid, 100);
    SetPlayerInterior(playerid, 15);
    SetPlayerVirtualWorld(playerid, 15);
    DestroyVehicle(GetPlayerVehicleID(playerid));
    bloodring1 = AddStaticVehicleEx(504,-1376.4580,966.9666,1024.4117,93.6894,57,38,30);
    bloodring2 = AddStaticVehicleEx(504,-1393.1066,966.6279,1024.4623,91.7172,45,29,30);
    bloodring3 = AddStaticVehicleEx(504,-1406.1743,966.6417,1024.4677,88.1195,34,9,30);
    bloodring4 = AddStaticVehicleEx(504,-1421.7993,966.6398,1024.4993,89.4404,65,9,30);
    bloodring5 = AddStaticVehicleEx(504,-1460.3344,980.5142,1024.9666,38.2746,14,1,30);
    bloodring6 = AddStaticVehicleEx(504,-1467.7229,996.8605,1025.3131,9.6370,12,9,30);
    bloodring7 = AddStaticVehicleEx(504,-1449.6244,1019.4761,1025.6427,308.0523,26,1,30);
    bloodring8 = AddStaticVehicleEx(504,-1419.6575,1024.5049,1025.4474,269.2815,51,39,30);
    bloodring9 = AddStaticVehicleEx(504,-1396.2334,1025.4830,1025.5431,269.0367,57,38,30);
    bloodring10 = AddStaticVehicleEx(504,-1377.9559,1025.7511,1025.5701,266.9881,45,29,30);
    bloodring11 = AddStaticVehicleEx(504,-1352.7950,1020.7386,1025.3851,251.1414,34,9,30);
    bloodring12 = AddStaticVehicleEx(504,-1336.7513,1007.6894,1025.0256,219.3864,65,9,30);
    bloodring13 = AddStaticVehicleEx(504,-1331.9465,995.0533,1024.8557,177.4551,14,1,30);
    bloodring14 = AddStaticVehicleEx(504,-1341.5992,976.8063,1024.6448,120.8471,12,9,30);
    bloodring15 = AddStaticVehicleEx(504,-1357.5392,969.1069,1024.5077,102.8453,26,1,30);
    LinkVehicleToInterior(bloodring1, 15);
    SetVehicleVirtualWorld(bloodring1, 15);
    LinkVehicleToInterior(bloodring2, 15);
    SetVehicleVirtualWorld(bloodring2, 15);
    LinkVehicleToInterior(bloodring3, 15);
    SetVehicleVirtualWorld(bloodring3, 15);
    LinkVehicleToInterior(bloodring4, 15);
    SetVehicleVirtualWorld(bloodring4, 15);
    LinkVehicleToInterior(bloodring5, 15);
    SetVehicleVirtualWorld(bloodring5, 15);
    LinkVehicleToInterior(bloodring6, 15);
    SetVehicleVirtualWorld(bloodring6, 15);
    LinkVehicleToInterior(bloodring7, 15);
    SetVehicleVirtualWorld(bloodring7, 15);
    LinkVehicleToInterior(bloodring8, 15);
    SetVehicleVirtualWorld(bloodring8, 15);
    LinkVehicleToInterior(bloodring9, 15);
    SetVehicleVirtualWorld(bloodring9, 15);
    LinkVehicleToInterior(bloodring10, 15);
    SetVehicleVirtualWorld(bloodring10, 15);
    LinkVehicleToInterior(bloodring11, 15);
    SetVehicleVirtualWorld(bloodring11, 15);
    LinkVehicleToInterior(bloodring12, 15);
    SetVehicleVirtualWorld(bloodring12, 15);
    LinkVehicleToInterior(bloodring13, 15);
    SetVehicleVirtualWorld(bloodring13, 15);
    LinkVehicleToInterior(bloodring14, 15);
    SetVehicleVirtualWorld(bloodring14, 15);
    LinkVehicleToInterior(bloodring15, 15);
    SetVehicleVirtualWorld(bloodring15, 15);
    return 1;
}
Reply


Messages In This Thread
Set spawn vehicle in a interior - by kbalor - 17.08.2012, 09:52
Re: Set spawn vehicle in a interior - by Dan. - 17.08.2012, 09:55
Re: Set spawn vehicle in a interior - by FalconX - 17.08.2012, 09:55
Re: Set spawn vehicle in a interior - by [MM]RoXoR[FS] - 17.08.2012, 09:56
Re: Set spawn vehicle in a interior - by JaKe Elite - 17.08.2012, 09:57
Re: Set spawn vehicle in a interior - by kbalor - 17.08.2012, 10:16

Forum Jump:


Users browsing this thread: 1 Guest(s)