Jump to content

مساعده في تاج الادمن


Recommended Posts

السلام عليكم شباب

طبعاً انا واجهتني مشكله في تاج الادمن والمشكله هي

اني ابغى اسم الاعب في التاج يكون على حسب اللون حق النكه حقه الاساسي

يعني التاج يكون بلون والنك حق الاعب يكون بنفس اللون حق نكه اتمنى تكونون فهمتم علي طبعاً الكود تحت

function chatbox(text, command) 
local ncolor = getPlayerNametagColor(source) 
local name = getPlayerName(source) 
local accountname = getAccountName (getPlayerAccount(source)) 
if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then 
cancelEvent() 
outputChatBox("#cc0000[HeadAdmin] "..name..": "..text, getRootElement(),0,0,0,true) 
outputServerLog( "CHAT: [HeadAdmin] " .. getPlayerName ( source ).. ": " .. text) 
elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "SuperModerator" ) ) then 
cancelEvent() 
outputChatBox("#ffcc00[superModerator] "..name..": "..text) 
outputServerLog( "CHAT: [superModerator] " .. getPlayerName ( source ).. ": " .. text ) 
elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Moderator" ) ) then 
cancelEvent() 
outputChatBox("#00ff00[Moderator] "..name..": "..text) 
outputServerLog( "CHAT: [Moderator] " .. getPlayerName ( source ).. ": " .. text ) 
end 
end 
addEventHandler("onPlayerChat", getRootElement(), chatbox) 

في انتظار الردود ان شاء الله :roll:

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...