شباب ابي انا اعدل على هاد الكود
Change = false
addCommandHandler("changeTeame", function(plr)
if getElementData(plr, "s") == false then
setElementData(plr, "ChangeTeam", true)
OutPut("The team will change after you die", plr, 255, 0, 255)
setTimer(cancleTeam, 1700, 1, plr)
setElementData(plr, "s", true)
else
OutPut("Change the team has been canceled", plr, 255, 255, 0)
setElementData(plr, "ChangeTeam", false)
setElementData(plr, "s", false)
end
Change = not Change
end
)
function cancleTeam(plr)
if Change == false then
return false
end
OutPut("To cancel the change team press again", plr, 255, 255, 0)