Jump to content

Asking About Infos


Best-Killer

Recommended Posts

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
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
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
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

  • Like 1
Link to comment
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...