Jump to content

Help :$


Assassin-NL

Recommended Posts

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 :oops:

Link to comment

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 :oops:

Link to comment

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

Link to comment

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

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