Jump to content

PROBLEM WITH PRIVATE GANGS


Recommended Posts

  
  
function createteam () 
teamamKEA = createTeam ( "Kill 'Em All", 255, 0, 0 ) 
end 
addEventHandler("onResourceStart", resourceRoot, createteam) 
function spawnKEA( cityName, teamName, skinName )     
    if ( teamName == "KEA" and skinName == "KEA 1" ) then    if ( getElementData(source, "gang") == "KEA" ) then 
 setPlayerTeam ( source, teamKEA)       local x,y,z       x = 731.79998779297       y = -1276.0999755859       z = 13.60000038147         spawnPlayer ( source, x,y,z  )         outputChatBox("YOU HAVE JOINED TO: Kill 'Em All[KEA] CLAN!", source, 0, 255,0)       fadeCamera(source, true)    giveWeapon ( source, 28, 2000 )    giveWeapon ( source, 31, 2000 )    giveWeapon ( source, 27, 2000 )setElementHealth ( source, 100 )         setElementModel ( source,15 )     setPedArmor ( source, 0 )     else    outputChatBox("No eres parte del clan KEA", thePlayer, 255, 0, 0)   triggerClientEvent ( "onPlayerChooseTeam", getRootElement(), teamName )       end    end 
addEvent("onPlayerChooseTeam", true) 
addEventHandler("onPlayerChooseTeam", getRootElement(), spawnKEA) 
  
  
  
  
  

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