Captain Cody Posted December 2, 2015 Posted December 2, 2015 Is it server sided for one, and for two is the playerInfos = {} at the top of the script
Overkillz Posted December 3, 2015 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 ...
Best-Killer Posted December 3, 2015 Author 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
Best-Killer Posted December 3, 2015 Author Posted December 3, 2015 It is a script server side. I know man -.-
Best-Killer Posted December 3, 2015 Author 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
t3wz Posted December 3, 2015 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 )
Best-Killer Posted December 3, 2015 Author 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
t3wz Posted December 3, 2015 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 );
Best-Killer Posted December 3, 2015 Author 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
Captain Cody Posted December 3, 2015 Posted December 3, 2015 You're doing something wrong, script I put should work 100%
killeryoyo Posted December 3, 2015 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.
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