Jump to content

Help in sampl Script :(


^Dev-PoinT^

Recommended Posts

Hi all Look To This i have bind the key no outputChatBox and no errors in debugscript /3

function fanFunction() 
  bindKey (source,"-","down", 
    function(player) 
    outputChatBox (getPlayerName (source) .. "#FFFF00 Need Help Please!",getRootElement(),255,255,0,true) 
    end 
  ) 
end 
addEventHandler ("onPlayerLogin",getRootElement(),fanFunction) 

:roll:

Link to comment
function fanFunction() 
  bindKey (source,"-","down", 
    function(player) 
    outputChatBox (getPlayerName (player) .. "#FFFF00 Need Help Please!",getRootElement(),255,255,0,true) 
    end 
  ) 
end 
addEventHandler ("onPlayerLogin",getRootElement(),fanFunction) 

Link to comment

i make This it say server:2 bad argument bindkey ?

function fanFunction() 
    bindKey (player,"-","down", 
    function(player) 
    outputChatBox (getPlayerName (player) .. "#FFFF00Need Help Please!",getRootElement(),255,255,0,true) 
    end 
  ) 
end 
addEventHandler ( "onResourceStart", getRootElement(), fanFunction ) 

Link to comment
function fanFunction() 
for index, player in pairs(getElementsByType("player")) do 
    bindKey (player,"-","down", 
    function(player) 
    outputChatBox (getPlayerName (player) .. "#FFFF00Need Help Please!",getRootElement(),255,255,0,true) 
    end 
  ) 
    end 
end 
addEventHandler ( "onResourceStart", getRootElement(), fanFunction ) 

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