Jump to content

Radar


BlackIN

Recommended Posts

Posted

I Am Snake i Run My own Lan Server

I want to Know Is that Possible In radar Admins Shows in Red Colour And Normal People Shows In his Normal Colour

If it is Possible or have Script Like This Please Send me Needed

Posted

its probably quicker to edit the gamemode you use and on spawn set it to set admin blips as red.

failing that:

function setAdminBlipColour(player) 
    if (hasObjectPermissionTo(player, "function.kickPlayer", false)) then 
        local attachedElements = getAttachedElements(player) 
        if attachedElements then 
            for k,v in ipairs(attachedElements) do 
                if getElementType(v) == "blip" then 
                    setBlipColor(v,255,0,0,255) 
                end 
            end 
        end 
    end 
end 
  
function onSpawn() 
    setTimer(setAdminBlipColour,500,1,source) 
end 
addEventHandler ( "onPlayerSpawn", getRootElement(),  onSpawn) 

Posted

I'm guessing you are using the Default game mode named "play" and "freeroam" include, then you must make "play" a folder and open broph.lua and paste the code Scooby made on it.

Posted

Sorry but i am Using Race Gamemod..........And i Want Admins=To Be Red Colour

And other Players to Be Normal white colour..............and i cant find broph.lua

Posted

Look As Scooby says i Copy His Script And Copy To Notepad And Save as Name Radar.lua

And Made Meta Of it Like This

<meta> 
    <info author="Snake" description="Radar Red Blips" version="4.0.0"/> 
  
  
    <script src="radar.lua" type="client" /> 
  
</meta> 

And Make a Folder Name Call RADAR Then I Run No Changes in it now what to do ?

Posted

It's server-side script (server event onPlayerSpawn used), so it must be just like that:

<meta> 
    <info author="Snake" description="Radar Red Blips" version="4.0.0"/> 
  
  
    <script src="radar.lua" type="server" /> 
  
</meta> 

  • 2 weeks later...
Posted

As MetalGear14 said. Just try it before asking us, we have own things to do. Practice makes the master!

PS: Actually, Scooby gave you an example -.-

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