Intrebare accese/flag-uri [Rezolvat]

Discutii legate de instalarea, configurarea si modificarea unui server de Counter-Strike.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Locked
wizzkidon
Membru, skill 0
Membru, skill 0
Posts: 81
Joined: 20 Jun 2013, 09:00
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 1 time
Been thanked: 1 time
Contact:

09 Jan 2017, 22:41

Salut. Am o întrebare legată de flaguri/accese. Cum pot vedea fiecare flag (litera) ce acces are? Stiu ca din cmdacces, etc, dar nu m-a lamurit, tocmai de asta am apelat la voi. Spre exemplu, am instalat un plugin amx_gag (chiar de aici de pe forum) si nu stiu pe ce litera este. As vrea sa ma lamuriti in privinta asta, si la restul literelor. Bineinteles ca voi mai baga diverse comenzi, doar ca vreau sa stiu cum pot vedea pe ce litera este comanda respectiva. Nu stiu daca m-am facut inteles, sunt nou in tot ce tine de scripting. Chiar am nevoie de raspunsuri cat mai explicite.
Multumesc frumos!
Last edited by CIUBO. /snowyworld/ on 11 Jan 2017, 20:10, edited 1 time in total.
Reason: Marcat ca rezolvat & inchis.
RoyalServer
StrikersRomania
Membru, skill 0
Membru, skill 0
Posts: 33
Joined: 06 Jan 2017, 23:14
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

09 Jan 2017, 23:03

Code: Select all

; Access flags:
; a - immunity (can't be kicked/banned/slayed/slapped and affected by other commmands)
; b - reservation (can join on reserved slots)
; c - amx_kick command
; d - amx_ban and amx_unban commands (permanent and temporary bans)
; e - amx_slay and amx_slap commands
; f - amx_map command
; g - amx_cvar command (not all cvars will be available)
; h - amx_cfg command
; i - amx_chat and other chat commands
; j - amx_vote and other vote commands
; k - access to sv_password cvar (by amx_cvar command)
; l - access to amx_rcon command and rcon_password cvar (by amx_cvar command)
; m - custom level A (for additional plugins)
; n - custom level B
; o - custom level C
; p - custom level D
; q - custom level E
; r - custom level F
; s - custom level G
; t - custom level H
; u - menu access
; v - amx_ban and amx_unban commands (temporary bans only, about amx_unban, only self performed ban during map gonna be allowed)
; z - user (no admin)
Pentru pluginuri te uiti in sursa ca sa vezi sau sa schimbi accesul respectiv.
wizzkidon
Membru, skill 0
Membru, skill 0
Posts: 81
Joined: 20 Jun 2013, 09:00
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 1 time
Been thanked: 1 time
Contact:

09 Jan 2017, 23:31

StrikersRomania wrote:Pentru pluginuri te uiti in sursa ca sa vezi sau sa schimbi accesul respectiv.
În sursă adică în sma? Dacă da, unde mai exact? M-am uitat şi nu arată nicăieri. Spre exemplu, amx_ss:

Code: Select all

// Written by Evgeny Popovich, 17/01/2002
// This plugin adds new command "admin_ss <user>", and makes snapshot on the user's computer.

#include <core>
#include <console>
#include <string>
#include <admin>
#include <adminlib>

#define ACCESS_SS 8192

new STRING_VERSION[MAX_DATA_LENGTH] = "2.50.0";

// Command itself
public admin_ss(HLCommand,HLData,HLUserName,UserIndex) {
        new Command[MAX_COMMAND_LENGTH];
        new Data[MAX_DATA_LENGTH];
        new TargetName[MAX_NAME_LENGTH];
        new Text[MAX_TEXT_LENGTH];
        new User[MAX_NAME_LENGTH];

        convert_string(HLCommand,Command,MAX_COMMAND_LENGTH);
        convert_string(HLData,Data,MAX_DATA_LENGTH);
        convert_string(HLUserName,User,MAX_NAME_LENGTH);

	// Check user exists
        if (check_user(Data) == 1) {
                get_username(Data,TargetName,MAX_NAME_LENGTH);
		// Check Immunity
                if(check_immunity(TargetName)!=0) {
                        snprintf(Text, MAX_TEXT_LENGTH, "Laf. You can't ss %s, you silly bear.", TargetName);
                        say(Text);
                }
                else {
			// Take SS, so that the message will be seen in the snapshot
                        snprintf(Text, MAX_TEXT_LENGTH, "[ADMIN] SS was taken from %s.",TargetName);
                        say(Text);
                        execclient(TargetName, "snapshot");
                        selfmessage("SS Succeeded for player: ");
                        selfmessage(TargetName);
                }
        }
        else {
                selfmessage("Unrecognized player: ");
                selfmessage(Data);
        }
        return PLUGIN_HANDLED;
}


// Plugin Initialization
public plugin_init() {
        plugin_registerinfo("Takes SS from target","Just for fun.",STRING_VERSION);
        plugin_registercmd("admin_ss","admin_ss",ACCESS_SS,"admin_ss <target>: Takes SS from target.");
        return PLUGIN_CONTINUE;
}
Fă-mă să înţeleg, te rog.
wizzkidon
Membru, skill 0
Membru, skill 0
Posts: 81
Joined: 20 Jun 2013, 09:00
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 1 time
Been thanked: 1 time
Contact:

11 Jan 2017, 16:38

Am rezolvat.
Locked

Return to “Probleme la servere dedicate de Counter-Strike”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 63 guests