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
Scripts
Say commend
Say commend
1

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
Mora 's script works fine too, but i always script to somebody myself..
Marcell: mine script is not correct,but it fast,title is "Say commend",but i make "admin say"(we make)
Mora: the Script work fine and thx
Marcell: thx very much for help but can i add it in script and how to add it
Mora: ,@
Marcell:

Marcell: can you do the same script whit member and mods pls
Marcell: scripts?
Mora: sorry i'm using @
Marcell:
i will try yours now boba your too no work look
say at your whole scripts(with exception of HC Emoticon script, i said this because i see that you use it) "------------------------------
---- 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"
MikuAuahDark: how to fix say commend ??
Sniper Killer: What
MikuAuahDark meant is that using multiple scripts causes this problem, it should start working after you remove them all and start using just one.
Sniper Killer: try use mine or @
Marcell: script with out your scripts,only made by we,then tell what you see,if this works,then you use more than 1 "say" hook,because i see in your screen, ":)" and it display as smiley.
1
