Jump to content

Team Blips./ Need help


Recommended Posts

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 

Link to comment
  • 2 months later...

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 , :/

Link to comment
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.

Link to comment

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

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