Liberty Unleashed
Scripting => Script Help => Topic started by: shane_Iron on November 07, 2016, 03:47:14 pm
-
[EN/ES]GTM:clan-wars!
hi I need help i don't know that how to run ramp script in my server!
can anyone help me for this script if you help i will be very thankfull to you
regards,
Shane
-
What's the problem exactly? Explain more in detail
-
What's the problem exactly? Explain more in detail
i copy The Ramp script to Script>Ramps!
and i type this in content.xml <script folder="ramps" />
and now i don't know what i do now :(
!!!
Please help this!
-
can someone help me I can get the script in but I cant get it to run on my server someone please help.
*Huge Bump*
For all the ones who have problems with this script (and with every other old script that calls server functions from the client) remember that since 0.15 version for security reasons you must register server functions before calling them from client scripts, else they won't work.
More info here: [url]http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Scripts/RegisterRemoteFunc[/url] ([url]http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Scripts/RegisterRemoteFunc[/url])
To "fix" this script add the following in your server scripts:
RegisterRemoteFunc("SpawnRamp");
RegisterRemoteFunc("VehicleBoost");
-
Yeah when I returned to LU I had this issue.
http://forum.liberty-unleashed.co.uk/index.php/topic,2565.msg13769.html#msg13769 (http://forum.liberty-unleashed.co.uk/index.php/topic,2565.msg13769.html#msg13769)
RegisterRemoteFunc
Will be used on server event that are related on client bind key events
Hear is a better example for you than what someone provided in the wiki
/* Client script */
pPlayer <- FindLocalPlayer();
function onScriptLoad()
{
print("Bind key added 'i'")
BindKey( 'I', BINDTYPE_DOWN, "ClientFunction" );
}
function ClientFunction()
{
/* Lets make a call to our server function */
// located inside of our script folder
CallServerFunc( "Server/Server.nut", "ServerFunction", pPlayer );
}
/* Server script */
function onScriptLoad()
{
// Lets register our client function
RegisterRemoteFunc("ServerFunction");
}
function ServerFunction( player )
{
MessagePlayer("Thank you for registering me", player);
}
-
i am really so noob at scripting i am sorry but i didn't explain can anyone send the file that you maked like this in ramp script and send it to
my Email
[email protected]
Thanks in advance!
please send the modify ramps script !