Author Topic: Anyone has whitelist script  (Read 1425 times)

0 Members and 1 Guest are viewing this topic.

ItsAlex

  • Guest
Anyone has whitelist script
« on: March 12, 2017, 12:20:57 am »
Anyone has whitelist script pls help me i need it for my server . thank you

Add me on steam [Nr5] Vixtro

Offline Siwi

  • Donator
  • *
  • Posts: 2055
  • Where is BCoF
    • View Profile
  • Nick: -|- Where is BCoF -|-
  • Side: Confederacy
Re: Anyone has whitelist script
« Reply #1 on: March 12, 2017, 12:35:02 am »
Quote from: George W. Bush on 9/11
Battle Cry of Freedom was an inside job
NW Leaderboards
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
NA_Groupfighting
 
Check out the site
 
_________________

Offline Thunderstormer

  • FSE Developer
  • ****
  • Posts: 6309
  • Worse than Hotler
    • View Profile
  • Side: Neutral
Re: Anyone has whitelist script
« Reply #2 on: March 12, 2017, 12:40:11 pm »
well if you have python, you can quickly make a whitelist.  you dont need to be a professional coder.   it is pretty self explanatory.


as you can see, there is a line that says remove this line.  you can delete it, or just stick a # in front of the (eq,1,0), that activates the script.
then you just put in the admins id in to the list, put their name after(behind the #) so you know who it is.
and that is it.

compile then put it on your server

the 22222222222 are just a # i made up for an id, one that someone will never have.(well very very unlikely as the keys are only in the millions.  1.5-1.7 mil i think). and they would still need the admin pw)

you could just modify the text file after you enable the script later on, replacing the 22222222222 with a real id.(just make sure you do it right, and make sure you save the a copy of the file before you make the change, in case you mess up.)  i prefer just doing it in python and compiling rather than going through the text file. 

Spoiler
("multiplayer_server_protect_admin_password",
   [
     (store_script_param, ":player_no", 1),
     
     (try_begin),
       (multiplayer_is_dedicated_server),
       
       (player_is_active, ":player_no"),
       (neq,":player_no",0), # not the server host.
       
       # is admin
       (player_is_admin, ":player_no"),
       
       (player_get_unique_id, ":player_key", ":player_no"),
       
       
       # Remove this line to enable the script, Don't forget to add the ID's of your admins! Or they will be auto banned... :P
       #(eq,1,0),
       # Remove this line to enable the script, Don't forget to add the ID's of your admins! Or they will be auto banned... :P
       
       
       # Player list start
       
       (neq, ":player_key", 22222222222), # admin1
       (neq, ":player_key", 22222222222), # Admin2
       (neq, ":player_key", 22222222222), # Admin3
       (neq, ":player_key", 22222222222), # Admin2
       (neq, ":player_key", 22222222222), # Admin3
       (neq, ":player_key", 22222222222), # Admin2
       (neq, ":player_key", 22222222222), # Admin3
       (neq, ":player_key", 22222222222), # Admin2
       (neq, ":player_key", 22222222222), # Admin3
       (neq, ":player_key", 22222222222), # Admin2
       (neq, ":player_key", 22222222222), # Admin3
       (neq, ":player_key", 22222222222), # Admin2
       (neq, ":player_key", 22222222222), # Admin3
       (neq, ":player_key", 22222222222), # Admin2
       (neq, ":player_key", 22222222222), # Admin3
       (neq, ":player_key", 22222222222), # Admin2
       (neq, ":player_key", 22222222222), # Admin3
       (neq, ":player_key", 22222222222), # Admin2
       (neq, ":player_key", 22222222222), # Admin3
       (neq, ":player_key", 22222222222), # Admin2
       (neq, ":player_key", 22222222222), # Admin3
       (neq, ":player_key", 22222222222), # Admin2
       (neq, ":player_key", 22222222222), # Admin3
       (neq, ":player_key", 22222222222), # Admin2
       (neq, ":player_key", 22222222222), # Admin3
             (neq, ":player_key", 22222222222), # Admin2
       (neq, ":player_key", 22222222222), # Admin3
             (neq, ":player_key", 22222222222), # Admin2
       (neq, ":player_key", 22222222222), # Admin3
             (neq, ":player_key", 22222222222), # Admin2
       (neq, ":player_key", 22222222222), # Admin3
             (neq, ":player_key", 22222222222), # Admin2
       (neq, ":player_key", 22222222222), # Admin3
             (neq, ":player_key", 22222222222), # Admin2
       (neq, ":player_key", 22222222222), # Admin3
             (neq, ":player_key", 22222222222), # Admin2
       (neq, ":player_key", 22222222222), # Admin3
             (neq, ":player_key", 22222222222), # Admin2
       (neq, ":player_key", 22222222222), # Admin3
      
       # End of player list
       
       
       
       # Not a valid admin!
       # Purge them! kill the unpure!
       (player_set_is_admin, ":player_no", 0), #value is 0 or 1
       
       
       (str_store_player_username, s2, ":player_no"),
       (str_store_string, s4, "str_player_kicked_cheating_s2"),
     
       (call_script, "script_multiplayer_broadcast_message"), # Broadcast Banned message
       
       (ban_player, ":player_no", 0, 0), # first 0 == perm and second 0 == SERVER
     (try_end),
    ]),
[close]

i believe this is the one i made for NA cav GF. 
Spoiler
script_271 -1
 52 23 2 1224979098644774912 1 4 0 418 0 401 1 1224979098644774912 2147483679 2 1224979098644774912 0 430 1 1224979098644774912 441 2 1224979098644774913 1224979098644774912 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 2147483679 2 1224979098644774913 22222222222 429 2 1224979098644774912 0 2350 2 2 1224979098644774912 2320 2 4 216172782113784513 1 1 160 466 3 1224979098644774912 0 0 3 0
[close]
Should you need to talk to me regarding NA1 or or something regarding admining or the admins, PM me here on the forums and not on steam.  *

*This does not include Official Server Admins.

ItsAlex

  • Guest
Re: Anyone has whitelist script
« Reply #3 on: March 12, 2017, 04:17:52 pm »
confused sorry :(

Offline Thunderstormer

  • FSE Developer
  • ****
  • Posts: 6309
  • Worse than Hotler
    • View Profile
  • Side: Neutral
Re: Anyone has whitelist script
« Reply #4 on: March 12, 2017, 07:55:29 pm »
Should you need to talk to me regarding NA1 or or something regarding admining or the admins, PM me here on the forums and not on steam.  *

*This does not include Official Server Admins.

Offline Blaze

  • Donator
  • *
  • Posts: 1815
    • View Profile
  • Nick: Blaze
  • Side: Confederacy
Re: Anyone has whitelist script
« Reply #5 on: March 13, 2017, 09:30:42 pm »
confused sorry :(
Okay, so here are the only things I can think about you being confused about.
A) What is Python? Well, Python is a programming language that is quite basic depending on what you wish to accomplish as Thunder provided for you, some scripts that he made that you could copy & paste.
B) You don't know how scripts work / How to install them.
[5th] alax has changed their name to I give up fuck this.
Blaze has a small peepee, but atleast he doesn't ban me like a manchild