Spawns Deleting/Creating.
#1

Hey all!,

Quite urgent because I'm trying to get my server up and running in a few days.

My question is.
In PPC_GameModeInit.inc and PPC_Diologs.inc

I can edit the vehicle spawns and it displays the spawns for each class, for example trucking has 7, bus driver has 2.
They're 2 trucking depots which i do not like (El Corona,Shady Creek Depot's.) What i have tried to do is in PPC_Diologs there's a bit that shows the spawns, below.

HTML Code:
		case ClassTruckDriver:
		{
			// Set the spawn coordinates based on the selection in the list
			switch (listitem)
			{
case 0: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -525.0, -502.0, 26.0, 0.0, 0, 0, 0, 0, 0, 0);

case 1: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -74.7, -1137.5, 4.5, 0.0, 0, 0, 0, 0, 0, 0);

case 2: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 1457.0, 975.5, 11.0, 0.0, 0, 0, 0, 0, 0, 0);

case 3: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -2136.0, -247.5, 36.5, 270.0, 0, 0, 0, 0, 0, 0);

case 4: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 1766.5, -2040.7, 14.0, 270.0, 0, 0, 0, 0, 0, 0);

case 5: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -546.0, 2594.0, 54.0, 270.0, 0, 0, 0, 0, 0, 0);

case 6: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 332.0, 900.0, 25.0, 205.0, 0, 0, 0, 0, 0, 0);

case 7: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -1575.0, -2724.0, 49.0, 146.0, 0, 0, 0, 0, 0, 0);
			}
Now case 7, and case 4, are the two depots which i don't want, and i tried to delete them form the list, but when i enter the server they're still there.
I have also tried to change the coordinates to each case 7 and case 4 to a new location, and the game still spawns me in case 7 and case 4 depots.

Now before someone gives me a random spawn tutorial i want to delete or change the current spawns which are included into the GameMode.


PROBLEM HAS BEEN FIXED :Read Below: (Thanks to Mr.Annonymous)


Just goto any location, get the cordinates and do the following:

Suppose the cordinates are 012,345,678

Then replace

Code:
case 3: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -2136.0, -247.5, 36.5, 270.0, 0, 0, 0, 0, 0, 0);
with
Code:
case 3: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 012, 345, 678, 270.0, 0, 0, 0, 0, 0, 0);
The 270 in above code is the facing angle.



Thanks all.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)