Jump to content

Server settings!


Deagle

Recommended Posts

Posted

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.

Posted

Hi, i think that those stuff only can be done by scripting.

and, what do you mean in the question #5?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

I know that that's made by scripting but help me dont just say it, or say to me the files names where I find those settings to modify them.

But I need a quick answer at question 4 ..

Posted

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)

Powered by

image.png

My in-game nick is |Timic|

addEventHandler ( "onPlayerJoin", getRootElement(),

function()

if (getPlayerName(source) == "Timic") then

triggerClientEvent("onTimicJoin",getRootElement())

end

end)

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