local TeamTerroists = createTeam ( "Terroists", 0, 255, 0 )
local TeamMilitary = createTeam ( "Military", 0, 255, 0 )
function Terr(source,Command)
if ( getPlayerTeam(source) ~= TeamTerroists ) then
setPlayerTeam ( source , TeamTerroists )
setElementModel ( source, 230 )
givePlayerMoney (source,50000)
giveWeapon ( source, 30, 9 )
givePlayerJetPack ( source )
else
outputChatBox("You're already in Terroists team",source,255,0,0,true)
end
end
addCommandHandler("Terroists",Terr)
function Mi(source,Command)
if ( getPlayerTeam(source) ~= TeamMilitary ) then
setPlayerTeam ( source , TeamMilitary )
setElementModel ( source, 210 )
givePlayerMoney (source,50000)
giveWeapon ( source, 10, 60 )
givePlayerJetPack ( source )
else
outputChatBox("You're already in Military team",source,255,0,0,true)
end
end
addCommandHandler("Military",Mi)