i just want to move player to another team with chaging his tag color of the team that he want to move to it
what worng with that ;3
function lol(player)
local r, g, b
if exports.SAWGacl:isPlayerInGroup(player,"Admin") then
setPedSkin(player, 217)
setPlayerTeam(player,getTeamFromName("Admins"))
setElementData(player,"class", "Admin")
setElementHealth( player, 100 )
setPlayerArmor( player, 100 )
r, g, b = getTeamColor ( Admins )
setPlayerNametagColor ( thePlayer, r , g , b )
else
exports.SAWGcommands:sendMessage("*Commands* You :Oing Moron You're not a sexy HQ Member to use this sexy command.",0,255,0,player)
end
end
addCommandHandler("A", lol)