Liberty Unleashed

Scripting => Script Help => Topic started by: Beary on December 07, 2014, 03:14:04 am

Title: Help me!
Post by: Beary on December 07, 2014, 03:14:04 am
Everybody is good, I joined bindKey on my server, but it suggests that this is wrong, how can I do? Or you can give me an example.


function onScriptLoad()
{
     BindKey( 'H', BINDTYPE_DOWN, "HalloThere", 123 );
     
     return 1;
}
 
function HalloThere( somenumber )
{
     Message( "Hallo there! " + somenumber );
}
Title: Re: Help me!
Post by: [RU]Kewun on December 22, 2014, 08:12:28 pm
Did you create an .nut and put the script in it
and added a line in the script.xml
and set to client="0" ? if you did that change that 0 to 1

EDIT: I tested and it works  :-\
Title: Re: SmallRhino
Post by: Beary on December 22, 2014, 10:15:07 pm
 :)