It will work whats the problem but i said he can use getTeamFromName
to delte team copy my code and use it like this outside the code
eg :
deleteTeam('Police')
Its simple
function deleteTeam(teamName)
for i, team in ipairs(getElementsByType('team') do
if getTeamName(team) == teamName then destroyElement(team)
end
end
end
also you can use getTeamFromName(teamName)
In fact no it will learn you how ? If you need the hole script we will not do it for you so do it yourself or contact a paid scripter if you want ! We will give you functions only that you may use ! In this forum you post your codes and we help
addEventHandler('onClientPlayerWeaponFire', getLocalPlayer(),
function(id)
local x, y, z = getPedWeaponMuzzlePosition(source)
if id == 22 then
local sound = playSound3D('colt45', x, y, z)
setSoundMaxDistance(sound, 50)
end
end)
Cant i use phone ! Listen first take the first code that you give it to us second copy my code third past it after line 9 just before table.insert in you first code