Jump to content

Chat


Ninja

Recommended Posts

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.

Link to comment
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 
) 
  

Link to comment
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 
) 
  

Link to comment

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

Link to comment

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.

Link to comment

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 

Link to comment

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

Link to comment
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?

Link to comment
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 

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