Script help...re; RemoveObject
#1

When I remove an object on the map with samp editor, it gives you the code for that.

I can assume that I must make a section in the gm with the likes of "RemoveObject" but do I also need to make any in "Defines" sections before the gm??

Thanks for your time to look or even answer.
Reply
#2

You put the RemoveObject in OnPlayerConnect... If thats what you're asking?
Reply
#3

https://sampwiki.blast.hk/wiki/RemoveBuildingForPlayer
Reply
#4

You use RemoveBuildingForPlayer to remove original GTA:SA objects, DestroyObject won't work.
Reply
#5

Thanks to all of you for responding. I see 2 viable options as I already was aware about how destroyobject would not work well. So I guess either of the 2 will be okay to use? RemoveObject or RemoveBuildingForPlayer?

Are both of those commands for all players or just 1 player? Or do I need to add the word "ALL" in that command?


Another question i have and having trouble finding anything with the search button.......

When setting a gang/team zone and using the samp map editor, how do I find the 4 boundary coordinates??

I do appreciate the help guys/gals. For the most part I can find the answers I need using search and ****** but sometimes it helps more to get a quick explanation from someone who actually knows. So on behalf of all of us who wish to learn and keep SAMP alive, THANK YOU all for being patient and helping us along.
Reply
#6

There's no such thing as 'RemoveObject'. Use RemoveBuildingForPlayer. This function only applys to one player at a time, so it's recommended that you use this function under OnPlayerConnect.
Reply
#7

For finding boundary coordinates I recommend using your map editor, or making a simple textdraw that updates every so often with your X and Y position.
Reply
#8

Quote:
Originally Posted by Threshold
Посмотреть сообщение
There's no such thing as 'RemoveObject'. Use RemoveBuildingForPlayer. This function only applys to one player at a time, so it's recommended that you use this function under OnPlayerConnect.
Awesome, thanks again. I was unaware of the RemoveObject because that is what the samp map editor puts in front of the coords when you remove something from the map.



Quote:
Originally Posted by jonrb
Посмотреть сообщение
For finding boundary coordinates I recommend using your map editor, or making a simple textdraw that updates every so often with your X and Y position.
This is where my problem lies. I am not sure how to get those coords from the editor. I have read a lot about creating gang zones but have read no clear directions on how to grab those 4 coords.....

X = west side
Y = south side
X = east side
Y = north

I am pretty sure there is a way on the editor to do this just not have found it so came here.
Reply
#9

I am still trying to figure out how to grab the coords if anyone can help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)