kalyn Posted August 15, 2012 Share Posted August 15, 2012 (edited) Hi guys! I need help whit a little script for removing 2 gates from the Area51 because I don't need them in my server but I don't have any ideea how to use remoweWorldObject. I will be werry grateful if anyone can help me. Edited August 17, 2012 by Guest Link to comment
0 Jaysds1 Posted August 16, 2012 Share Posted August 16, 2012 Do you know the gates ID? Link to comment
0 kalyn Posted August 16, 2012 Author Share Posted August 16, 2012 Do you know the gates ID? Actualy the gate is bind by the fence but it's ok if you can remove it ID = 16094 Link to comment
0 Jaysds1 Posted August 16, 2012 Share Posted August 16, 2012 (edited) ok, try this: addEventHandler("onResourceStart",resourceRoot,function(res) if res == getThisResource() then removeWorldModel(16094,15,135.17442,1941.87561,19.32008) end end) Edited August 16, 2012 by Guest Link to comment
0 kalyn Posted August 16, 2012 Author Share Posted August 16, 2012 ok, try this:addEventHandler("onResourceStart",resourceRoot,function(res) if res == getThisResource() then removeWorldModel(16094,15,135.17442 1941.87561 19.32008) end end) And to make it like a resource or to put it in the map folder and in the map's meta?! Link to comment
0 Jaysds1 Posted August 16, 2012 Share Posted August 16, 2012 oh, I'll send you the resource EDIT: here:http://www.mediafire.com/?srv0mad8bvkad81 Link to comment
0 kalyn Posted August 16, 2012 Author Share Posted August 16, 2012 oh, I'll send you the resourceEDIT: here:http://www.mediafire.com/?srv0mad8bvkad81 nope, is still there, the only thing that changed is that now if i look at him in certain angle it blips (dissapear/appear).... Here is when it blips but I'm still stopped by it... Link to comment
0 Jaysds1 Posted August 16, 2012 Share Posted August 16, 2012 oh, found the reason why download this file: http://www.mediafire.com/?yq15ubay6niu45q Link to comment
0 kalyn Posted August 16, 2012 Author Share Posted August 16, 2012 oh, found the reason why download this file: http://www.mediafire.com/?yq15ubay6niu45q I have already changed that and it's not working (you added the " , ") and i tryed anyway your resouce but it's the same, only blips and I can't go trough it. And by blips i mea that it dissapears for just a fraction of second and the reappears, only in the picture it has dissapeared... Link to comment
0 Jaysds1 Posted August 16, 2012 Share Posted August 16, 2012 I think there's another object in it Link to comment
0 kalyn Posted August 16, 2012 Author Share Posted August 16, 2012 I think there's another object in it Don't understand, 1 object colide whit it?! Link to comment
0 kalyn Posted August 16, 2012 Author Share Posted August 16, 2012 I think there's another object in it Nope, the COL was wrong, I inserted the right one from SAMP Map Converter and now the script works, thanks a lot for your help. I have one more question: from where did you get the coordinates of the object, I mean is a big one, how I can get coordinates for other objects that can work?! Link to comment
0 Jaysds1 Posted August 17, 2012 Share Posted August 17, 2012 well, I stood right beside the object then typed-in /getpos , that's all Link to comment
Question
kalyn
Hi guys!
I need help whit a little script for removing 2 gates from the Area51 because I don't need them in my server but I don't have any ideea how to use remoweWorldObject.
I will be werry grateful if anyone can help me.

Edited by GuestLink to comment
12 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now