Jump to content

pls help[unsolved]


Recommended Posts

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 by Guest
Link to comment

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 ) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...