Captain Cody Posted December 2, 2015 Share Posted December 2, 2015 Is it server sided for one, and for two is the playerInfos = {} at the top of the script Link to comment
Overkillz Posted December 3, 2015 Share Posted December 3, 2015 function infoHelp() setElementData(source,"allow",true) outputchatbox("/spam /insult /caps ..") end addCommandHandler("infohelp", infoHelp) function Caps() if getElementData(source,"allow") then outputchatbox("Info: Please turn off your caps") else outputchatbox("You are not allowed to use this | Type /infohelp") end end addCommandHandler("caps", Caps) function Spam() if getElementData(source,"allow") then outputchatbox("Info: Please stop spamming chat") else outputchatbox("You are not allowed to use this | Type /infohelp") end end addCommandHandler("spam", Spam) function Insult() if getElementData(source,"allow") then outputchatbox("Info: Please don't insult BITCH !") else outputchatbox("You are not allowed to use this | Type /infohelp") end end addCommandHandler("insult", Insult) Fixed it should works ... Link to comment
Best-Killer Posted December 3, 2015 Author Share Posted December 3, 2015 function infoHelp() setElementData(source,"allow",true) outputchatbox("/spam /insult /caps ..") end addCommandHandler("infohelp", infoHelp) function Caps() if getElementData(source,"allow") then outputchatbox("Info: Please turn off your caps") else outputchatbox("You are not allowed to use this | Type /infohelp") end end addCommandHandler("caps", Caps) function Spam() if getElementData(source,"allow") then outputchatbox("Info: Please stop spamming chat") else outputchatbox("You are not allowed to use this | Type /infohelp") end end addCommandHandler("spam", Spam) function Insult() if getElementData(source,"allow") then outputchatbox("Info: Please don't insult BITCH !") else outputchatbox("You are not allowed to use this | Type /infohelp") end end addCommandHandler("insult", Insult) Fixed it should works ... Same Problem pls try to fix it pls getelmentdate expected element at argument 1 got nill Link to comment
Overkillz Posted December 3, 2015 Share Posted December 3, 2015 It is a script server side. Link to comment
Best-Killer Posted December 3, 2015 Author Share Posted December 3, 2015 It is a script server side. I know man -.- Link to comment
Rockyz Posted December 3, 2015 Share Posted December 3, 2015 idont understand what are you trying to do ? Link to comment
Best-Killer Posted December 3, 2015 Author Share Posted December 3, 2015 idont understand what are you trying to do ? trying to make infohelp (when player player spam in chat or insutl i can use /infohelp then /spam (spam showing in chatbox Stop Spamming .... ect ) also i can't use /spam without using infohelp first Link to comment
t3wz Posted December 3, 2015 Share Posted December 3, 2015 infohelpToggled = {} addCommandHandler ( "infohelp", function ( player ) infohelpToggled[player] = not infohelpToggled[player]; outputChatBox ( "infohelp turned " .. ( infohelpToggled[player] and "on" or "off" ), player ); end ) addCommandHandler ( "spam", function ( player ) if ( infohelpToggled[player] ) then outputChatBox ( "/spam message", root ); else outputChatBox ( "use /infohelp first", player ); end end ) Link to comment
Best-Killer Posted December 3, 2015 Author Share Posted December 3, 2015 infohelpToggled = {} addCommandHandler ( "infohelp", function ( player ) infohelpToggled[player] = not infohelpToggled[player]; outputChatBox ( "infohelp turned " .. ( infohelpToggled[player] and "on" or "off" ), player ); end ) addCommandHandler ( "spam", function ( player ) if ( infohelpToggled[player] ) then outputChatBox ( "/spam message", root ); else outputChatBox ( "use /infohelp first", player ); end end ) That Worked fine but i want it like that outputChatBox ( "/Spam /Caps ...Etc.. <--- Input chat message you want", source ) in infohelp 1 Link to comment
t3wz Posted December 3, 2015 Share Posted December 3, 2015 That Worked fine but i want it like that outputChatBox ( "/Spam /Caps ...Etc.. <--- Input chat message you want", source ) in infohelp Just change the outputChatBox ... is it that hard? outputChatBox ( "/spam /caps ...", player ); Link to comment
Best-Killer Posted December 3, 2015 Author Share Posted December 3, 2015 That Worked fine but i want it like that outputChatBox ( "/Spam /Caps ...Etc.. <--- Input chat message you want", source ) in infohelp Just change the outputChatBox ... is it that hard? outputChatBox ( "/spam /caps ...", player ); and on / off i won't it player can use infohelp 564654time and it's still On i want it Link to comment
Captain Cody Posted December 3, 2015 Share Posted December 3, 2015 You're doing something wrong, script I put should work 100% Link to comment
killeryoyo Posted December 3, 2015 Share Posted December 3, 2015 it works man i tried it, maybe you can't put it right or you change something or you dont copy full code. 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