ششوف ذي كودات ملف السيرفر
addCommandHandler("Tag",
function(player)
local account = getPlayerAccount(player)
if account and not isGuestAccount(account) then
if isObjectInACLGroup("user." .. getAccountName(account), aclGetGroup("Console")) then
triggerClientEvent(player, "openTagPanel", player)
end
end
end)
addEvent("onTagAction", true)
addEventHandler("onTagAction", root,
function(accountName, newValue)
local account = getAccount(accountName)
if account then
setAccountData(account, "TagData", newValue)
if newValue then
outputChatBox("# تـم تركيب التاج بنجاح", source, 0, 255, 0)
else
outputChatBox("# تـم حذف التاج بنجاح", source, 0, 255, 0)
end
else
outputChatBox("لآيوجد آسم آلحساب هذا لـ تركيب التاج له !", source, 255, 0, 0)
end
end)