Tete omar Posted May 19, 2012 Share Posted May 19, 2012 Hey i want create a blacklist for the server but my script doesn't work function blacklist(thePlayer, command) local blacklist = outputChatBox(thePlayer) if (outputChatBox ) then outputChatBox("ignore this i 'll put the names later", thePlayer,255,255,255,true) addCommandHandler("blacklist", blacklist, thePlayer) end end) i tried but i fail. Link to comment
TAPL Posted May 19, 2012 Share Posted May 19, 2012 what is this? it's just mess code. Link to comment
Tete omar Posted May 19, 2012 Author Share Posted May 19, 2012 what is this?it's just mess code. It's blacklist .. simple when you type in chat or f8 / blacklist then show the people names in blacklist ... Link to comment
TAPL Posted May 19, 2012 Share Posted May 19, 2012 It's blacklist .. simple when you type in chat or f8 / blacklist then show the people names in blacklist ... blacklist and people names? hahaha funny You just put a mess code that make no sense and totally wrong. Link to comment
Tete omar Posted May 19, 2012 Author Share Posted May 19, 2012 It's blacklist .. simple when you type in chat or f8 / blacklist then show the people names in blacklist ... blacklist and people names? hahaha funny You just put a mess code that make no sense and totally wrong. Ok nvm Link to comment
X-SHADOW Posted May 19, 2012 Share Posted May 19, 2012 BlackList need Php and lot of work Link to comment
CapY Posted May 19, 2012 Share Posted May 19, 2012 (edited) BlackList need Php and lot of work Haha. The only thing that it needs is an XML file or a database to store the blacklisted users, but the OP could start with account data. function blacklist( ) for i, v in ipairs ( getElementsByType ( "player" ) ) do if getAccountData ( getPlayerAccount ( v ), "blacklisted" ) == true then outputChatBox( "Blacklisted users:" .. getPlayerName ( v ), getRootElement ( ),255,255,255 ) else outputChatBox ( "There is no blacklisted users", source, 255,255,255 ) end end end addCommandHandler( "blacklist", getRootElement ( ), blacklist ) So, your command handler was inside the function and you had one more ' ) ' Edited May 19, 2012 by Guest Link to comment
Tete omar Posted May 19, 2012 Author Share Posted May 19, 2012 BlackList need Php and lot of work Haha. The only thing that it needs is an XML file or a database to store the blacklisted users. Can you post ur code here ? Link to comment
CapY Posted May 19, 2012 Share Posted May 19, 2012 Try that one above, haven't tested it. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now