Assassin-NL Posted January 20, 2010 Posted January 20, 2010 hi,, im trying to learn the scripting now for 3 days. but my english isnt that good so its hard to read the manual too,, so i want to ask one question here,, if you just want to make one simple command like /hi and then in the chat it sais : Assassin sais hi to everyone! , can somone copy that line? i really learn from that i will not just copy past it, all i want to is learning to be a good scripter i know most things like Lua, and that the command you have to paste into and addCommandHandler("myCommand", myFunction) but can someone just copy that ? i will learn very much off it, thanks Come To Our Side, We Have Cookies!
Assassin-NL Posted January 20, 2010 Author Posted January 20, 2010 hi,, im trying to learn the scripting now for 3 days. but my english isnt that good so its hard to read the manual too,, so i want to ask one question here,, if you just want to make one simple command like /hi and then in the chat it sais : Assassin sais hi to everyone! , can somone copy that line? i really learn from that i will not just copy past it, all i want to is learning to be a good scripter i know most things like Lua, and that the command you have to paste into and addCommandHandler("myCommand", myFunction) but can someone just copy that ? i will learn very much off it, thanks Come To Our Side, We Have Cookies!
dzek (varez) Posted January 21, 2010 Posted January 21, 2010 on wiki you can found "script" like that function say_hi (player ) -- The player who triggered the command local aName = getPlayerName(player) outputChatBox (aName.. " says hi to everyone",getRootElement(), 194, 103, 181) end addCommandHandler( "hi", say_hi ) not tested but shold work:P this is server side Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
dzek (varez) Posted January 21, 2010 Posted January 21, 2010 on wiki you can found "script" like that function say_hi (player ) -- The player who triggered the command local aName = getPlayerName(player) outputChatBox (aName.. " says hi to everyone",getRootElement(), 194, 103, 181) end addCommandHandler( "hi", say_hi ) not tested but shold work:P this is server side Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
Assassin-NL Posted January 21, 2010 Author Posted January 21, 2010 Thanks Come To Our Side, We Have Cookies!
Assassin-NL Posted January 21, 2010 Author Posted January 21, 2010 Thanks Come To Our Side, We Have Cookies!
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