Help with Map Constuction
#1

Hello,
I'm just wondering how i delete objects with Map editor

thanks
Reply
#2

The way i do it. MTA for adding objects. SA-MP construction for removing.

The way i add them in game:

Ive got a FS with everything related to car spawns and removing things. under
Код:
OnFilterScriptInit

AddStaticVehicle(415,0,000,00,0,00,); // random, dont use it :P

OnPlayerConnect

RemoveBuildingForPlayer(playerid, 615, 0.0, 0.0, 0.0, 200.0);
But like you said, you imported the pwn to samp construction correct? then yes, it will be gone, just remember to export it again, or get the code, and add it manually
Reply
#3

Hello,

i did what you said, and the crap just wont go, please help
Reply
#4

Quote:
Originally Posted by Murderface
Посмотреть сообщение
Hello,

i did what you said, and the crap just wont go, please help
You need remove buildings ?

Go in Map Construction and Click on some object, than just press " DELETE " button, than click Show Code and Copy Paste it!
Reply
#5

@BodyboardVEVO hello,

i did that and it just caused my server to crash.
Reply
#6

Did you put the RemoveBuilding code under player connect? Are you using a server version huger than 0.3d?

Removebuilding codes must be centered under the call back or you'll get errors.
Reply
#7

Vehicle spawns like this, and mapped roads and stuff:

Код:
public OnGameModeInit()
{
	
        AddStaticVehicle(435,1806.0644500,-2031.9257800,14.1852100,89.3130000,245,245); //Trailer 1
	AddStaticVehicle(435,1805.8728000,-2038.3654800,14.1837800,89.3130000,245,245); //Trailer 1
	AddStaticVehicle(591,1806.4237100,-2044.4559300,14.2134900,89.3140000,245,245); //Trailer 3
	AddStaticVehicle(591,1806.5114700,-2050.3247100,14.2134900,89.3130000,245,245); //Trailer 3
	AddStaticVehicle(591,1806.4566700,-2056.0764200,14.2134900,89.3130000,245,245); //Trailer 3
	AddStaticVehicle(591,1806.3402100,-2062.0681200,14.2134900,89.3130000,245,245); //Trailer 3
        return 1;
}
Then removing buildings: EDIT: anything you remove comes up as RemoveBuildingForPlayer (it does for me)
Код:
public OnPlayerConnect(playerid)
{
	RemoveBuildingForPlayer(playerid, 18499, -1849.5156, -1701.1563, 32.9531, 0.25);
	RemoveBuildingForPlayer(playerid, 18555, -1813.8047, -1615.5625, 29.8516, 0.25);
	RemoveBuildingForPlayer(playerid, 762, 1023.5938, -2050.6875, 16.0859, 0.25);
	RemoveBuildingForPlayer(playerid, 762, 1011.8594, -2043.5000, 16.0859, 0.25);
	return 1;
}
Reply
#8

Quote:
Originally Posted by DobbysGamertag
Посмотреть сообщение
Vehicle spawns like this, and mapped roads and stuff:

Код:
public OnGameModeInit()
{
	
        AddStaticVehicle(435,1806.0644500,-2031.9257800,14.1852100,89.3130000,245,245); //Trailer 1
	AddStaticVehicle(435,1805.8728000,-2038.3654800,14.1837800,89.3130000,245,245); //Trailer 1
	AddStaticVehicle(591,1806.4237100,-2044.4559300,14.2134900,89.3140000,245,245); //Trailer 3
	AddStaticVehicle(591,1806.5114700,-2050.3247100,14.2134900,89.3130000,245,245); //Trailer 3
	AddStaticVehicle(591,1806.4566700,-2056.0764200,14.2134900,89.3130000,245,245); //Trailer 3
	AddStaticVehicle(591,1806.3402100,-2062.0681200,14.2134900,89.3130000,245,245); //Trailer 3
        return 1;
}
Then removing buildings: EDIT: anything you remove comes up as RemoveBuildingForPlayer (it does for me)
Код:
public OnPlayerConnect(playerid)
{
	RemoveBuildingForPlayer(playerid, 18499, -1849.5156, -1701.1563, 32.9531, 0.25);
	RemoveBuildingForPlayer(playerid, 18555, -1813.8047, -1615.5625, 29.8516, 0.25);
	RemoveBuildingForPlayer(playerid, 762, 1023.5938, -2050.6875, 16.0859, 0.25);
	RemoveBuildingForPlayer(playerid, 762, 1011.8594, -2043.5000, 16.0859, 0.25);
	return 1;
}
With Code all is good. What SA-MP version you using ?
Reply
#9

Hello @Tamer_T

It didn't even give me that code, all it game me was Createobject etc and i was trying to delete objects not create

I'm using 0.3x
Reply
#10

How many objects alredy is in your server ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)