Page 1 of 1

CERERE PLUGIN

Posted: 24 Mar 2020, 13:40
by george.braga
Plugin Cerut: amx who pentru server respawn
Descriere (adica ce face el mai exact): sa apara frumos la rand toate gradele din user ini. si sus sa fie asa pe mijloc:
LISTA ADMINI - RESPAWN.WESTCS.RO
Serverul impune conditii strict HLDS/REHLDS?: nu
Ai cautat pluginul?(daca da, precizeaza cum): da, efectiv peste tot-internet-la voi - la altii , nimic nu imi merge pe server pentru ca nu reusesc sa sincronizez user.ini cu sma. Am gasit unu bun aici la voi pe site , l am instalat toate bune frumoase dar cand am bagat sa am admin da eroare. Asa ca va rog frumos din suflet va las user ini meu original in care merge si adminul pus si creati-mi voi va rog frumos un sma dupa user.ini meu care sa mearga. multumesc mult.
Necesita mod special?:nu

USER.INI :

"Geo" "albnegru123" "abcdefghijklmnopqrstu" "a"

; Users configuration file
; File location: $moddir/addons/amxmodx/configs/users.ini

; Line starting with ; is a comment

; Access flags:
; a - immunity (can't be kicked/baned/slayed/slaped and affected by other commmands)
; b - reservation (can join on reserved slots)
; c - amx_kick command
; d - amx_ban and amx_unban commands
; 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
; z - user (no admin)

; Account flags:
; a - disconnect player on invalid password
; b - clan tag
; c - this is steamid/wonid
; d - this is ip
; e - password is not checked (only name/ip/steamid needed)
; k - name or tag is case sensitive. eg: if you set it so the name "Ham"
; is protected and case sensitive (flags "k" only), then anybody
; can use the names "haM", "HAM", "ham", etc, but not "Ham"

; Password:
; Add to your autoexec.cfg: setinfo _pw "<password>"
; Change _pw to the value of amx_password_field

; Format of admin account:
; <name|ip|steamid> <password> <access flags> <account flags>

; Examples of admin accounts:
; "STEAM_0:0:123456" "" "abcdefghijklmnopqrstu" "ce"
; "123.45.67.89" "" "abcdefghijklmnopqrstu" "de"
; "My Name" "my_password" "abcdefghijklmnopqrstu" "a"

;============================================

; FOUNDER - "abcdefghijklmnopqrstu"


;============================================


============================================

; OWNER - "abcdefghijklmnopqrst"



;============================================

;============================================

; CO-OWNER - "bcdefghijklmnopqrst"

;============================================

;============================================

; MARESAL - "bcdefghijlmnopqrst"

;============================================


;============================================

; GENERAL - "befghijlmnopqrs"

;============================================


;============================================

; Sergent - "befgijlmnopqrs"

;============================================



;============================================


; MAIOR - "befgijmnoprs"

;============================================




;============================================

; Helper - "befgijmns"


;============================================


;============================================

; Slot - "bi"

;============================================

;===========================================e

;VIP - "abi"

'===========================================

;============================================

Re: CERERE PLUGIN

Posted: 24 Mar 2020, 14:25
by BiNECUVANTAT

Code: Select all

#include <amxmodx>
#include <amxmisc>
#define MAX_GROUPS 10
new g_groupNames[MAX_GROUPS][] = {
"Founder",
"Owner",
"Co-Owner",
"Maresal",
"General",
"Sergent",
"Maior",
"Helper",
"Slot",
"VIP"

}
new g_groupFlags[MAX_GROUPS][] = {
"abcdefghijklmnopqrstu",
"abcdefghijklmnopqrst",
"bcdefghijklmnopqrst",
"bcdefghijlmnopqrst",
"befghijlmnopqrs",
"befgijlmnopqrs",
"befgijmnoprs",
"befgijmns",
"bi",
"abi"

}
new g_groupFlagsValue[MAX_GROUPS]
public plugin_init() {
register_plugin("AMX WHO -by Assassination", "1.3", "by Assassination")
register_concmd("admin_who", "cmdWho", 0)
register_concmd("who", "cmdWho", 0)
for(new i = 0; i < MAX_GROUPS; i++) {
g_groupFlagsValue[i] = read_flags(g_groupFlags[i])
}
}
public cmdWho(id) {
new players[32], inum, player, name[32], i, a
get_players(players, inum)
console_print(id, "..::: Staff of server  :::..")
for(i = 0; i < MAX_GROUPS; i++) {
console_print(id, "%s", g_groupNames[i])
for(a = 0; a < inum; ++a) {
player = players[a]
get_user_name(player, name, 31)
if(get_user_flags(player) == g_groupFlagsValue[i]) {
console_print(id, "%s", name)
}
}
}
console_print(id, "....:::: Staff of server  ::::....")
return PLUGIN_HANDLED
}
Poftim. :)

Re: CERERE PLUGIN

Posted: 24 Mar 2020, 14:43
by george.braga
Merge cu admin who. merci frumos puteti da TC

Re: CERERE PLUGIN

Posted: 24 Mar 2020, 23:15
by BiNECUVANTAT
Cu placere.