nasserdfdd Posted July 20, 2015 Posted July 20, 2015 (edited) hi all so I have downloaded this script from a time https://community.multitheftauto.com/index.php?p= ... ils&id=110 so I want the admin to be able to build only in a specific place or a specific area (I mean ls, lv ,sf) so can anyone make it cuz I tried to make it I did not get it working thanks for ur patience i have old post xxahmedxx gave me some hints and i tried using this but could not make it if any one could make it i will be thankful for him Edited July 21, 2015 by Guest
Simple0x47 Posted July 20, 2015 Posted July 20, 2015 You can specify the zones ,set what players for each zone, start up the script manually/automatically when the players enters into the zone and if he leave's the zone the script stop's.
nasserdfdd Posted July 28, 2015 Author Posted July 28, 2015 soory for double post but pls any one give me working example
GTX Posted July 28, 2015 Posted July 28, 2015 An example: function createCurrentObject (player,cmd,objid) if getElementZoneName(player, true) == "Las Venturas" then if ( hasObjectPermissionTo ( player, "function.unbanSerial", true)) or (getElementData ( player, "permbuilder" ) == true) or (getElementData ( player, "tempbuilder" ) == true) then if playerobj[player] then outputChatBox ( "You are already editing an object. Please save or delete to make another.", player ) else local x, y, z = getElementPosition(player) destroyMObj (player) playerobj[player] = createObject(tonumber(objid), x + 5, y + 5, z - 1) if marker[player] then destroyElement(marker[player]) end if playerobj[player] then marker[player] = createMarker ( x, y, z, "arrow", 5, 255, 255, 0, 255) attachElementToElement ( marker[player], playerobj[player], 0, 0, 10) else outputChatBox ( "" ..objid.. " does not appear to be a valid model ID.", player ) end end else outputChatBox ( "You do not have permission to build.", player ) end end end addCommandHandler( "mcreate", createCurrentObject )
nasserdfdd Posted July 28, 2015 Author Posted July 28, 2015 do i make new script or put it with the the https://community.multitheftauto.com/index.php?p= ... ils&id=110
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