Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Created by νєтι¢υѕ. This script is an open source to anyone.
- // Basically you don't want random people on your server to restart or have access to activating the restart script. So i created a custom array, with a addAction function in their to make sure certain people can access the button.
- //To start create a file called. "fn_actionarray.sqf" then paste this code in that file:
- if ((getPlayerUID player) in ['1234567890']) then {
- player addAction ["<t color='#FF0000'>Restart Server</t>", "restart\fn_restart.sqf", [], 0, false, true, ""];
- } else {
- hintSilent parseText format ["You cannot restart the server!"];
- };
- //As you can see you can add you player UID into part where it says "['1234567890']", after that you have to go access your "init.sqf" file and add this simple execute line into it:
- execVM "fn_actionarray.sqf";
- //After all that, it should be functioning properly. Any problems contact me on the following teamspeak : ts3.districtliferpg.co.uk
- //Hope you guys enjoy the script.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement