^Dev-PoinT^ Posted October 24, 2011 Share Posted October 24, 2011 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) Link to comment
Castillo Posted October 24, 2011 Share Posted October 24, 2011 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
^Dev-PoinT^ Posted October 24, 2011 Author Share Posted October 24, 2011 i alredy try from source to Player Not work to Link to comment
Castillo Posted October 24, 2011 Share Posted October 24, 2011 The script works perfectly. Remember that this script binds the key AFTER the player logs in. Link to comment
^Dev-PoinT^ Posted October 24, 2011 Author Share Posted October 24, 2011 oh i forget to see the event you are Right SoldSnake i well Put it onPlayerJoin Link to comment
^Dev-PoinT^ Posted October 24, 2011 Author Share Posted October 24, 2011 but how to Make it on Arabic + English Like Select System 1- Arabic 2- english can i have help on That Link to comment
Orange Posted October 24, 2011 Share Posted October 24, 2011 Topic 36666, fail You'd need a kind of xml settings file which has the last lang inside. Then, make a command which will work as a switch. Link to comment
^Dev-PoinT^ Posted October 24, 2011 Author Share Posted October 24, 2011 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
Castillo Posted October 24, 2011 Share Posted October 24, 2011 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
^Dev-PoinT^ Posted October 24, 2011 Author Share Posted October 24, 2011 Thx SoldSnake14 Work Fine Link to comment
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