Aller au contenu
News ticker
  • Bienvenue sur le nouveau forum VeryGames
  • Welcome to the new VeryGames forum
  • VeryNews

    SAP - Source Admin Plugin - CS:Source


    Ultiny

    Messages recommandés

    Setup Guide

     

    This plugin will only work on the stand-alone dedicated servers (Linux and Windows), it will not work on the Windows dedicated server launched from the Steam Client application. I can not make that clear enough, if your launching a server from the Steam menu then you might have well give up now.

     

    The plugin is NOT designed for a LAN game, if you use it in one you might end up with all your players getting level 3 admin. This is because players don't have Steam IDs in a LAN game and therefore the plugin assumes they are the server console.

     

    Down to business

     

    Browse to your <Root> Server folder, that which contains your moods e.g. C:\HLS Server. You should see something like the following:

     

    bin [dir]

    cstrike [dir]

    hl2 [dir]

    platform [dir]

    hlds_steamgames.vdf

    InstallRecord.blob

    srcds.exe

     

    Enter the \Bin directory and place SAP.dll (or .so on Linux) in there.

     

    Now go back to the <Root> directory and find the mod your using (Strike for counter-strike source for example). Go in there, and make a new folder/directory called "addons" (lower-case). You should now be in your mod folder with a new folder called addons Get the file called plugin.vdf and place that in addons.

     

    Admin Setup Guide

     

    -- Level 0 (Normal Player, Non-Admin)

    admin_help

    admin_who

    -- Level 1

    admin_kick

    admin_map

    admin_slay

    admin_status

    admin_restrict

    admin_unrestrict

    admin_stuff

     

    -- Level 2

    admin_ban

    admin_clexec

     

    -- Level 3 (Includes Server console)

    admin_user

    admin_svexec

     

    Each level gets all the commands from the lower ones (level 2 includes all level 1 commands and level 0s).

     

    To setup an admin you need one piece of information, their Steam ID or IP, this can be found using the 'admin_status' command when they are in-game. This Plugin does not support password or name/clan-tag login (yet?).

     

    admin_user "<Steam ID/IP>" <Level>

     

    admin_user*Space*"SteamID/IP"*Space*<Level>

     

    That is the command you have to execute in order to make an admin. You can do so from a .cg file like server.cfg when your server loads up. It is very important that you know, the Steam ID/IP must be enclosed in " " quote marks. If you do not do this then it will simply not work.

     

    Examples:

     

    admin_user "STEAM_0:1:32420" 1

    admin_user "STEAM_0:0:12003" 3

     

    Comments MUST go on a separate line, or place a ; after the command.

     

    You can automate this by creating a new text file called 'server.cfg' and placing it in your <MOD>/CFG folder. (e.g. C:\HLS Server\strike\.cg\server.cfg). You can make this using notepad, just when you save, click 'Text File .TXT' and change it to 'ALL Files' and then add '.CFG' to the file name.

     

    Note that people with Level 3 access can add more level 3 admin.

     

    Usage Guide

     

    If you see a word enclosed in < > it means that is required after the command, for example - admin_ff <On|1|Off|0> - This means the command 'admin_ff' requires whatever is inside the < > after it. In this case it is '1' or '0' or 'off' or 'on'. The | means "or" so 1|0 means one OR zero. You might also see a command enclosed in [< >] - This means it is optional. For example - admin_gravity [<Name>] <Gravity> - which means 'name' is optional but gravity isn't. Each of the optional or required fields has a space in between it, the same as true with a field and the command. I have marked the spaces with a % in this - admin_gravity%[<name>]%<gravity> - There is one space in between admin_gravity and optional name, and another between optional name and required field gravity.

     

    If a field needs to have a space in it then place " " around that field. For example when entering the name 'Very Long Name', you would place " " around it - "very long name".

     

    admin_help -

    Usage: admin_help

    Function: Displays a list of the commands you can use and a short description of what they do.

    Example: admin_help

     

    admin_who

    Usage: admin_who

    Function: Displays admins currently playing on the server.

    Example: admin_who

     

    status

    Usage: status

    Function: Lists player information.

    Example: status

     

    admin_psay

    Usage: admin_psay <Name|IP|ID|SteamID> <Message>

    Function: Sends a private message to the person described in the name/id/ip/steamid field.

    Example: admin_psay "Manip" "Hey Manip!"

     

    admin_ff

    Usage: admin_ff [<1|0|on|off>]

    Function: View the current status of friendly-fire. Or if a valid value is supplied set friendly fire. (1 or 'on' turns friendly fire on)

    Example: admin_ff 1

     

    admin_kick

    Usage: admin_kick <Name|ID|IP|SteamID>

    Function: Kicks a player from the server (disconnects them, they leave the game).

    Example: admin_kick Manip

     

    admin_map

    Usage: admin_map <Map Name>

    Function: Changes map to the map listed in 'Map Name'.

    Example: admin_map de_dust

     

    admin_slay

    Usage: admin_slay <Name|ID|IP|SteamID>

    Function: Kills a player.

    Example: admin_slay Manip

     

    admin_status

    Usage: admin_status

    Function: Lists player information including IP and SteamID.

    Example: admin_status

     

    admin_restrict

    Usage: admin_restrict <Item Name> [<OverRide>]

    Function: Stops people buying items. The over-ride turns off the check which checks if it has been purchased yet on the server.

    Example: admin_restrict ak47

     

    admin_unrestrict

    Usage: admin_unrestrict <Item Name|All>

    Function: Allows people to buy the item again. Or if 'all' is supplied it removed all restricted items.

    Example: admin_unrestrict ak47

     

    admin_stuff

    Usage: admin_stuff

    Function: Lists items that can be restricted.

    Example: admin_stuff

     

    admin_slap

    Usage: admin_slap <Name|ID|IP|SteamID> <Damage>

    Function: Slaps a player for the given amount of damage (causes damage to the player and moves them).

    Example: admin_slap Manip 10

     

    admin_gravity

    Usage: admin_gravity [<Name|SteamID|ID|IP>] <Gravity>

    Function: If a player is supplied it sets gravity on that player, if not it sets it to the entire server. 800 gravity is 'normal'.

    Example: admin_gravity Manip 100

    Example #2: admin_gravity 100

     

    admin_chat

    Usage: admin_chat <Message>

    Function: Privately chat with other admins (normal players can't read the text).

    Example: admin_chat Hey other admins!

     

    admin_say

    Usage: admin_say <Message>

    Function: Sends a console message to all players.

    Example: admin_say Hey Players!

     

    admin_tsay

    Usage: admin_tsay <Message>

    Function: Displays a larger message in the centre of the screen.

    Example: admin_tsay Woohoo I got admin!!!!

     

    admin_votemap

    Usage: admin_votemap <Map Name>

    Function: Starts a vote for the given map name, the map changes if more vote for is greater than against the change.

    Example: admin_Votemap de_dust

     

    admin_votekick

    Usage: admin_votekick <Name|ID|SteamID|IP>

    Function: Kicks a player if more vote for the kick than do against.

    Example: admin_votekick Manip

     

    admin_team

    Usage: admin_team <Name|ID|SteamID|IP>

    Function: Forfully changes a player's team.

    Example: admin_team Manip

     

    admin_clexec

    Usage: admin_clexec <Name|ID|SteamID|IP> <Command>

    Function: Executes a command on the player.

    Example: admin_clexec Manip "say Hello"

     

    admin_ban

    Usage: admin_ban <Name|ID|SteamID|IP> <Time>

    Function: Bans a player from the server for the given amount of time. If time is 0 then it is forever.

    Example: admin_ban Manip 0

     

    admin_noclip

    Usage: admin_noclip <Name|ID|SteamID|IP>

    Function: Allows a player to pass though walls.

    Example: admin_noclip Manip

     

    admin_cvar

    Usage: admin_cvar <CVar Name> [<New Value>]

    Function: Shows a server cvar's current value or if a value is supplied it changes the value. A server CVAR is an mp_ or cl_ or sv_ constants.

    Example: admin_cvar mp_friendlyfire 1

    Example #2: admin_cvar sv_alltalk

     

    admin_user

    Usage: admin_user <SteamID|IP> <Level>

    Function: Adds an admin to the server at the given level, level 0 is a normal player.

    Example: admin_user "STEAM_0:1:12345" 3

     

    admin_svexec

    Usage: admin_svexec <Command>

    Function: Executes a command on the server console.

    Example: admin_svexec restart

     

    admin_slots

    Usage: admin_slots <Number of slots>

    Function: Sets total number of usable slots on the server.

    Example: admin_slots 30

     

    admin_slotmode

    Usage: admin_Slotmode <0|1>

    Function: Sets the slot mode. 0 is blocking slots (normal players can't play in that slot) or 1 for 'Smart Mode' (One slot is open it kicks people to free up more when an admin connects).

    Example: admin_slotmode 1

     

    admin_slotadd

    Usage: admin_slotadd <IP|SteamID>

    Function: Adds a slot user (a player who can connect into a slot).

    Example: admin_slotadd "STEAM_0:1:1022"

    Lien vers le commentaire
    Partager sur d’autres sites

    • 10 months later...

    Rejoindre la conversation

    Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.

    Invité
    Répondre à ce sujet…

    ×   Collé en tant que texte enrichi.   Coller en tant que texte brut à la place

      Seulement 75 émoticônes maximum sont autorisées.

    ×   Votre lien a été automatiquement intégré.   Afficher plutôt comme un lien

    ×   Votre contenu précédent a été rétabli.   Vider l’éditeur

    ×   Vous ne pouvez pas directement coller des images. Envoyez-les depuis votre ordinateur ou insérez-les depuis une URL.

    ×
    ×
    • Créer...