Jump to content

Server settings!


Deagle

Recommended Posts

I have my own MTA DM server, and I want to know some things :

1. How can i limit the "Play Again" option to maximum 3 times at the vote of the same map ?

2. How can i add a "Random" option in the vote ?

3. What can i do so that the players could not use /voteredo and commands like that ?

4. How can I make colored blips on the radar for each team ?

5. How can i change the servers font ? The one that apears above the players for example.

6. How can i move the time passed from its initial position (down-right) to up-center, near the timeleft.

Thanks for who will help me.

Link to comment

Answer on #4:

function setBlipColour(player) 
        local attachedElements = getAttachedElements(player) 
        local team = getPlayerTeam" class="kw2">getPlayerTeam(player) 
        local r, g, b = getTeamColor(team) 
        if attachedElements then 
            for k,v in ipairs(attachedElements) do 
                if getElementType(v) == "blip" then 
                    setBlipColor(v,r,g,b,255) 
                end 
            end 
        end 
    end 
  
function onSpawn() 
    setTimer(setBlipColour,500,1,source) 
end 
addEventHandler ( "onPlayerSpawn", getRootElement(),  onSpawn) 
  

P.S: I didn't test it (yet)

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