Jump to content

esta bien este codigo ?


iFoReX

Recommended Posts

Posted

no puedo probar este codigo me podrian decir si esta bien o esta mal ?

area = {} 
areaC = {} 
  
area[1] = createRadarArea() 
areaC[1] = createColCuboid() 
  
addEventHandler("onPlayerQuit", root, function() 
local theTeam = getPlayerTeam(source) 
local team = getTeamFromName(theTeam) 
if team then 
setAccountData(source,"team",team) 
end 
end 
) 
  
addEventHandler("onPlayerJoin",root,function() 
local team = getAccountData(source,"team") 
if team then 
setPlayerTeam(source,team) 
end 
end 
) 
  
addCommandHandler("createteam",function(theteam) 
if theteam then 
createTeam(theteam) 
end 
end 
) 
  
addCommandHandler("unir",function(player,team) 
if player and team then 
local theteam = getTeamFromName(team) 
setPlayerTeam(player,theteam) 
end 
end 
) 
  
addEventHandler("onColShapeHit",root,function(thePlayer,matchingDimension) 
if source == areaC[1] then 
if getElementType ( thePlayer ) == "player" then 
if ( getPlayerTeam ( thePlayer ) and getTeamName ( getPlayerTeam ( thePlayer ) ) ~= "theTeam" ) then 
killPed(thePlayer) 
end 
end 
end 
end 
) 

elMota/elFoReX De Vuelta En MTA *---------*

Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3

https://www.youtube.com/user/KillersGPs

430x73_FFFFFF_FF9900_000000_000000.png
Posted

Te lo voy a hacer simple: No tiene sentido.

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

Intente deducir de que trataba, pero no entendi. Cual es el proposito?

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted

men es muy complicado hay functions que lo hacen mas simple contactame y si quieres lo hablamos

n-560x95.png

Admin ,owner,scripter(learning) and create skins in:

n-560x95.png

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...