Sniper Killer[Admin] : hi
sniper Killer : hi
i want to change this :
Quote
to just Sniper Killer[Admin] : hi
sniper Killer : hi
sniper Killer : hi
Sniper Killer [admin]: hi
admin={xxx} addhook("say","adms") function adms(id,message) for _,usgn in ipairs(admin) do if player(id,"usgn")==usgn then msg("©255255255 "..player(id,"name").." [Admin]: "..message) return 1 end end end
---------------------------- ----- Say Script for ------- ----- Sniper Killer ------- ---- by Salad Fingers ------ ---------------------------- -- Date: 15:00 2014.02.10. ---------------------------- admins = {6943} -- Put admins's usgn here! cRED = "©255000000" function table.contains(table, element) for key, value in pairs(table) do if value == element then return true end end end addhook("say","admin_say") function admin_say(id, message) if table.contains(admins,player(id,"usgn")) then msg(""..cRED.." "..player(id,"name").." [Admin]: "..message) return 1 end end
"------------------------------ ---- Edited Say Script ------- ------		for		 --------- ----- Sniper Killer --------- ---- by Salad Fingers -------- ------------------------------ -- Date: 13:40 2014.02.11. -- ------------------------------ admins = {} -- Put admins's usgn here! moderators = {} -- Put moderators's usgn here! members = {6943} -- Put members's usgn here! cRED = "©255000000" cGREEN = "©000255000" cWHITE = "©255255255" function table.contains(table, element) for key, value in pairs(table) do if value == element then return true end end end addhook("say","tag") function tag(id, message) if table.contains(admins,player(id,"usgn")) then msg(""..cRED.." "..player(id,"name").." [Admin]: "..message) return 1 elseif table.contains(moderators,player(id,"usgn")) then msg(""..cGREEN.." "..player(id,"name").." [Moderator]: "..message) return 1 elseif table.contains(members,player(id,"usgn")) then msg(""..cWHITE.." "..player(id,"name").." [Member]: "..message) return 1 end end"