--Set Skin
local inValidSkins = {[94] = true} -- replace teamName with the team you want
addEvent("AdminPanel.setSkin", true)
function setSkin(plr, getText)
if plr and isElement(plr) then
if getText then
local skin = getElementModel(getText)
if not skin then
skin = getText
end
if inValidSkins[skin] then -- you can use getElementModel or simply replace it with getText
outputChatBox("#00FF00Este team es solo para #FF0000[ADM]#00FF00 o#FF0000 [LIDER]", client, r, g, b, true)
return
end
setElementModel(plr, skin)
outputChatBox("#FF0000" ..getPlayerName(client).."#00FF00 Ha combiar su skin a #0B00FF("..skin..") ", plr, 0, 255, 0, true)
outputChatBox("#00FF00Combiar #FF0000"..getPlayerName(plr).."#00FF00 skin a #0B00FF("..skin..") ", client, 0, 255, 0, true)
end
end
end
addEventHandler("AdminPanel.setSkin", root, setSkin)