Jump to content

help


golanu21

Recommended Posts

Related probably easy to say! I'm a translator to communicate with you and it takes WIKI awful and nothing is clear. You could not write a specific code for the script and I'll put you in the server.

Edit: Now I ask the question a little off topic: How to make so that when spawning player early in the game he was given the skin near spawning scooter and he was given weapons?

We don't give people the script finished, we help you learn.

Link to comment

My public resource:

function evento(source, cmd, ...) 
    for _, group in ipairs ({"Admin", "Supermoderator"}) do 
    local playerAccount = getPlayerAccount(source) 
    if (not playerAccount) then return end 
    local accountName = getAccountName(playerAccount) 
    if isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( group ) ) then 
    if (isElement(theMarker)) then 
        destroyElement(theMarker) 
        local nombre2 = getPlayerName(source) 
        removeCommandHandler("eventwarp") 
    else 
        local x,y,z = getElementPosition(source) 
        local interior = getElementInterior(source) 
        theMarker = createMarker ( x, y, z, "checkpoint", 2, 255, 255, 255, 100 ) 
        setElementInterior(theMarker, interior, x, y, z) 
        addCommandHandler("eventwarp", eventowarp) 
    end 
    end 
    end 
end 
addCommandHandler("event", evento) 
  
function eventowarp(thePlayer) 
    if isElement(theMarker) then 
        local x, y, z = getElementPosition(theMarker) 
        local interior = getElementInterior(theMarker) 
        fadeCamera ( thePlayer, false, 1.0, 0, 0, 0 ) 
        setTimer(fadeCamera, 2000, 1, thePlayer, true, 1.0) 
        setTimer(setElementPosition, 2000, 1, thePlayer, x, y, z) 
        setTimer(setElementInterior, 2000, 1, thePlayer, interior, x, y, z) 
                setTimer(giveWeapon, 2000, 1, thePlayer, 31, 999 ) 
    end 
end 

You should be "Admin" or "Moderator". Type /event to create an event and /eventwarp to join the event.

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...