Jump to content

Help :$


Assassin-NL

Recommended Posts

Posted

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:

Come To Our Side, We Have Cookies!

Posted

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:

Come To Our Side, We Have Cookies!

Posted

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)!

Posted

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)!

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