03.09.2012, 16:20
OMG! My derby deathmatch, Keeps getting flood by derby vehicles after teleporting.
I have noticed that every time I teleport to derby deathmatch or /derby the vehicles that I have created just keep on spawning each time I teleport.
Let say I do /derby then I see 15 derby vehicles and thats good. After I leave derby. Then do /derby again. there are now 30 derby vehicles, it duplicates.
Here my derby teleport
I have noticed that every time I teleport to derby deathmatch or /derby the vehicles that I have created just keep on spawning each time I teleport.
Let say I do /derby then I see 15 derby vehicles and thats good. After I leave derby. Then do /derby again. there are now 30 derby vehicles, it duplicates.
Here my derby teleport
pawn Код:
// World 15 (/derby)
#define CreateVehicleEx(%0,%1,%2,%3,%4,%5,%6,%7,%8) CreateVehicle(%1, %2, %3, %4, %5, %6, %7, %8)
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
CMD:derby(playerid, params[])
{
SetPlayerPos(playerid, -1398.103515,937.631164,1038.479125);
SetPlayerInterior(playerid, 15);
SetPlayerVirtualWorld(playerid, 15);
DestroyVehicle(GetPlayerVehicleID(playerid));
bloodring1 = CreateVehicle(504,-1376.4580,966.9666,1024.4117,93.6894,57,38,-1);// Make sure you add -1 otherwise it will spam the vehicle and it will Cause high CPU Usage...
bloodring2 = CreateVehicle(504,-1393.1066,966.6279,1024.4623,91.7172,45,29,-1);
bloodring3 = CreateVehicle(504,-1406.1743,966.6417,1024.4677,88.1195,34,9,-1);
bloodring4 = CreateVehicle(504,-1421.7993,966.6398,1024.4993,89.4404,65,9,-1);
bloodring5 = CreateVehicle(504,-1460.3344,980.5142,1024.9666,38.2746,14,1,-1);
bloodring6 = CreateVehicle(504,-1467.7229,996.8605,1025.3131,9.6370,12,9,-1);
bloodring7 = CreateVehicle(504,-1449.6244,1019.4761,1025.6427,308.0523,26,1,-1);
bloodring8 = CreateVehicle(504,-1419.6575,1024.5049,1025.4474,269.2815,51,39,-1);
bloodring9 = CreateVehicle(504,-1396.2334,1025.4830,1025.5431,269.0367,57,38,-1);
bloodring10 = CreateVehicle(504,-1377.9559,1025.7511,1025.5701,266.9881,45,29,-1);
bloodring11 = CreateVehicle(504,-1352.7950,1020.7386,1025.3851,251.1414,34,9,-1);
bloodring12 = CreateVehicle(504,-1336.7513,1007.6894,1025.0256,219.3864,65,9,-1);
bloodring13 = CreateVehicle(504,-1331.9465,995.0533,1024.8557,177.4551,14,1,-1);
bloodring14 = CreateVehicle(504,-1341.5992,976.8063,1024.6448,120.8471,12,9,-1);
bloodring15 = CreateVehicle(504,-1357.5392,969.1069,1024.5077,102.8453,26,1,-1);
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;
}