Jump to content

Chat


Ninja

Recommended Posts

Posted

Can anyone edit this function that it works?? pls

bindKey("ctrl","down",

function(player)

say("#005a5aWho want to fuck me in the ass?", player,0,0,0,true)

end)

Would be very nice thx...

Posted

if i make outputchatbox then can just the person who pressed ctrl see it in the chat i want that he write it....

Posted
bindKey("ctrl","down", 
function(player) 
       outputChatBox("#005a5aWho want to  me in the ass?", player,0,0,0,true) 
end 
) 
  

Only the player which pressed "CTRL" will see it.

bindKey("ctrl","down", 
function() 
       outputChatBox("#005a5aWho want to  me in the ass?", root,0,0,0,true) 
end 
) 
  

Everyone will see it, make sure to put it server-side.

Posted
bindKey("ctrl","down", 
function(player) 
       outputChatBox("#005a5aWho want to  me in the ass?", player,0,0,0,true) 
end 
) 
  

Only the player which pressed "CTRL" will see it.

bindKey("ctrl","down", 
function() 
       outputChatBox("#005a5aWho want to  me in the ass?", root,0,0,0,true) 
end 
) 
  

Everyone will see it, make sure to put it server-side.

he means that i think

bindKey("ctrl","down", 
function() 
       outputChatBox( getPlayerName ( player) .. ": says who want to  me in the ass?", root,0,0,0,true) 
end 
) 
  

Posted
bindKey("ctrl","down", 
function(player) 
       outputChatBox("#005a5aWho want to  me in the ass?", player,0,0,0,true) 
end 
) 
  

Only the player which pressed "CTRL" will see it.

bindKey("ctrl","down", 
function() 
       outputChatBox("#005a5aWho want to  me in the ass?", root,0,0,0,true) 
end 
) 
  

Everyone will see it, make sure to put it server-side.

he means that i think

bindKey("ctrl","down", 
function() 
       outputChatBox( getPlayerName ( player) .. ": says who want to  me in the ass?", root,0,0,0,true) 
end 
) 
  

Your code won't work, "player" doesn't represents anything.

bindKey("ctrl","down", 
function(player) 
       outputChatBox( getPlayerName ( player) .. ": says who want to  me in the ass?", root,0,0,0) 
end 
) 
  

Posted

i want that it looks in the chat like" (player):Who wants to fuck me in..."

if i use that

bindKey("ctrl","down",

function()

outputChatBox("#005a5aWho want to :o me in the ass?",0,0,0,true)

end

)

.. in the chat stands just "Who wants to fuck me..." and with

bindKey("ctrl","down",

function(player)

outputChatBox( getPlayerName ( player) .. ": says who want to :o me in the ass?", root,0,0,0)

end

)

it doesn't work...

Posted

it doesnt work with getPlayerName because you're using clientside bindKey syntax in a clientside script.

and first argument of handler function is not an element there. read wiki.

anyway, this shit is retarded.

Posted
it doesnt work with getPlayerName because you're using clientside bindKey syntax in a clientside script.

and first argument of handler function is not an element there. read wiki.

anyway, this :~ is retarded.

anyway, this :~ is retarded.

:D i agree

Posted

Cannot argue with that.

Anyways:

function funcInput(player) 
outputChatBox ( getPlayerName ( player ) " imma faggot, who wants to fuck me in the ass?!", root, 0, 255,0 ) 
end 
  
function bindTheKeys ( player ) 
  bindKey ( player, "ctrl", "down", funcInput ) 
end 

Posted

Try this:

bindKey("lctrl","down",function(key,keystate) 
outputChatBox("#005a5aWho wants to  me in the ass?",0,0,0,true) 
end) 

ctrl isn't a real key, so it's either rctrl or lctrl

Posted

yeah and all that script doesn't work out of the one i told you earlier and that was without the name of the player so can anyone pls fix the script at the bottom with the player name who really know that it works pls?

bindKey("ctrl","down",

function()

outputChatBox("#005a5aWho want to :o me in the ass?",0,0,0,true)

end

)

And i think it isnt retarded its just a script for a fun map ...

Posted
yeah and all that script doesn't work out of the one i told you earlier and that was without the name of the player so can anyone pls fix the script at the bottom with the player name who really know that it works pls?
bindKey("ctrl","down",

function()

outputChatBox("#005a5aWho want to :o me in the ass?",0,0,0,true)

end

)

And i think it isnt retarded its just a script for a fun map ...

Ok, I'm confused, Who 's name do you want to inserted?

The player who did the command? or someone random?

Posted

try this:

keys = {"lctrl","rctrl"} 
bindKey(keys,"down",function() 
    outputChatBox(getPlayerName(localPlayer).."wants to know ' #005a5aWho wants to  me in the ass? '",0,0,0,true) 
end) 

Posted
addEventHandler ( "onPlayerJoin", root, 
    function ( ) 
        bindKey ( source, "lctrl", "down", outputMessage ) 
    end 
) 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for index, player in ipairs ( getElementsByType "player" ) do 
            bindKey ( player, "lctrl", "down", outputMessage ) 
        end 
    end 
) 
  
function outputMessage ( thePlayer ) 
    outputChatBox ( getPlayerName ( thePlayer ) .. "#005a5aWho want to  me in the ass?", root, 0, 0, 0, true ) 
end 

Posted

No, sorry, I only give it to my friends and people who want to buy scripts from me.

Please, stop doing off-topic, use PM to ask personal questions.

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