Please Help Me! I need to install a Script! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Please Help Me! I need to install a Script! (
/showthread.php?tid=442866)
Please Help Me! I need to install a Script! -
JonathanLeblanc - 09.06.2013
Could i have a Step-By-Step tut on how to install a script to a server? ill be soo Greatfull! Thanks!
Re: Please Help Me! I need to install a Script! -
Sascha - 09.06.2013
if gamemode:
get the .amx of the gamemode and save it in your "gamemodes" folder in your server's folder...
If you only have a .pwn file of the gamemode, then open it with pawn and compile it (f5) to get the .amx.... the .amx is now saved in the same folder as the .pwn, so get sure that it is the "gamemodes" folder...
then open your server.cfg and add the name of the gamemode file in the "gamemode" list
So like: "gamemode0 YourNameHere" --> YourNameHere must be replaced with the name of your gamemode file, but without the .amx... So if it's called GM.amx, then just enter GM.
Now save the server.cfg
Open the sa-mp.exe and there you go...
If it is a filterscript:
Save the .amx file of the script in the "filterscripts" folder in your server's folder... If you just have the .pwn, then do the same as for the gamemode (open it with pawn and compile it - F5 -).
Now there are two ways:
If you want it to load automatically everytime you start the server then open your server.cfg and add it to the "filterscripts" line...
like: "filterscripts MyFilterScript" --> MyFilterScript should again be replaced with the name of your script without the .amx ending.
Save the server.cfg and open your sa-mp.exe...
If you want to load it while the server is running then login into RCON and use the command "/rcon loadfs filterscriptname" (filterscriptname should be the name of your scriptfile without the .amx) or in the console "loadfs filterscriptname". Again, the .amx file of the script needs to be in the "filterscripts" folder.