Team1 = createTeam("Ballas", 155, 0, 155)
Team2 = createTeam("Grove", 0, 155, 0)
addCommandHandler('join',
function(player)
setElementData(resourceRoot,"any",math.random(0,1))
local Data = getElementData(resourceRoot,"any")
if (Data == 1) then
setPlayerTeam(player,Team1)
outputChatBox('Ballas Team',player,255,0,0,true)
elseif (Data == 0) then
setPlayerTeam(player,Team2)
outputChatBox('Grove Team',player,0,255,0,true)
end
end
)
دي طريقة مش مجربها لاني علي جوال