SA:MP Map Construction - Remove fully SA
#1

Hi everybody.. I need little help. I tried delete fully SA map.
You can delete it, when you add to gamemode line this:
RemoveBuildingForPlayer(playerid, -1, 0.0, 0.0, 0.0, 6000.0);
But if i add to the Map Construction it's not working.. Can anyone help me? I want create own city and I need for it this...


//Sorry for my english =D
Reply
#2

Hi Daniels, because

Код:
RemoveBuildingForPlayer(playerid, (this the object id)-1 <, 0.0, 0.0, 0.0, 6000.0);
so you can't use -1 in that field.

It will work if your code is correct
Код:
like RemoveBuildingForPlayer(playerid, This the object id>> 16591<<, 205.4922, 1730.3516, 17.8281, 0.25);
So your code should be like this

Код:
RemoveBuildingForPlayer(playerid, 16591, 205.4922, 1730.3516, 17.8281, 0.25);
Can you post one code from you want to import on the MAP Construction ?
Reply
#3

There is one problem, if you create a new map, cars will fall through it, it will stream when you are close so probably alot of things wont be visible from far away as they are right now.
Reply
#4

Not working. I need remove all objects in the game. If I this code add in server, it's work and all objects all removed. But if i post this code in Map Construction, it's not working. And

RemoveBuildingForPlayer(playerid, 16591, 205.4922, 1730.3516, 17.8281, 0.25);

this not working, too.

Any idea?


(by the way, sorry for my english, i know it's not the best...)
Reply
#5

I think its currently not possible to remove all objects.
To much efort to get this working by your own.

Kind regards
Sphinx
Reply
#6

EDIT: I didn't read the topic properly. Sorry guys!
Reply
#7

Okey, I used this code:

Quote:

RemoveBuildingForPlayer(playerid, -1, 0.0, 0.0, 0.0, 6000.0);

Just put it to the filterscript. It's not working for Map Construction, but in Texture Studio it's awesome.
Reply
#8

If you tried to add it as paste it won't work, You need to copy all the "RemoveBuildingForPlayer" to a.pwn without putting it under OnGameModeInIt or anything, and save it but don't compile, go to the map construction and do "import.pwn" and it will work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)