Jump to content

Team Blips./ Need help


Recommended Posts

Posted (edited)

I want ask how i can set up my server to show on radar only my teammates?? i can't find on this forum anything useful

Edited by Guest
Posted

And if you aren't interested in searching other scripts you could also make your own. All you need is checking players from the same team and blip them on the radar. It's really easy. Good luck.

Posted

Ok, finnaly i found something useful, well it's not working for me.. I don't have any knowledge of lua. :/ Tell me what wrong there?

 function start ()  
playerBlips = { }    
for index,value in ipairs(getElementsByType("player")) do 
          if( playerBlips [ value ] ) then 
             destroyElement( playerBlips[ value ] ) 
             playerBlips [ value ] = nil 
          end 
          playerBlips[ value ] = createBlipAttachedTo ( value, 59 )    
          setElementVisibleTo(playerBlips[value],getRootElement( ),false) 
      
          if(getTeamName(getPlayerTeam(value)) == "Africa Militia") then 
             for index1,value1 in ipairs(getElementsByType("player")) do 
                if(getTeamName(getPlayerTeam(value1)) == "Africa Militia") then 
                   setElementVisibleTo(playerBlips[value],value1,true) 
                end    
             end 
          elseif(getTeamName(getPlayerTeam(value)) == "Delta") then 
             for index1,value1 in ipairs(getElementsByType("player")) do 
                if(getTeamName(getPlayerTeam(value1)) == "Delta") then 
                   setElementVisibleTo(playerBlips[value],value1,true) 
                end    
             end 
          elseif(getTeamName(getPlayerTeam(value)) == "Shadow Company") then 
             for index1,value1 in ipairs(getElementsByType("player")) do 
                if(getTeamName(getPlayerTeam(value1)) == "Shadow Company") then 
                   setElementVisibleTo(playerBlips[value],value1,true) 
                end    
             end 
          end    
       end 
  
    if (playerBlips[source]) then 
          destroyElement(playerBlips[source]) 
          playerBlips[source] = nil 
       end 
    end 

  • 2 months later...
Posted

if you CAN NOT script and are not WILLING TO LEARN to script then you should not put other peoples resources in your server and not give credit. in my opinion you do not deserve to have a server if you arent willing to learn. Gytis, what im trying to say is. before you open a server and try to add resources, and open up your server, learn some LUA and code some resources :/ your not gonna get very far off leeching , :/

Posted
if you CAN NOT script and are not WILLING TO LEARN to script then you should not put other peoples resources in your server and not give credit. in my opinion you do not deserve to have a server if you arent willing to learn. Gytis, what im trying to say is. before you open a server and try to add resources, and open up your server, learn some LUA and code some resources :/ your not gonna get very far off leeching , :/

Actually im re-scripted Gangwar by spawn gamemode. Added new teams, 10 Custom player models, wepons CONVERTED FROM Cod:MW3 by MYSELF, some my edited vehicles, objects from MW3. Im can't be pro at everything. It's easy to say : "U DUMB, LEARN SOME LUA AND GTFO". I'm asking for help, like the others.

Posted

I did not say what you quoted, im just saying, it seemed that you did not know what your doing, due to the fact you posted someone elses script , i was just saying, -.- no need to get all angry

I DID NOT SAY "U DUMB, LEARN SOME LUA AND GTFO". So dont put words in my mouth. :/

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