User
Pass
2FA
 
 

TAG ADMIN

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message3276
kmking

[Mentally Stable]



Status: Offline
(since 08-02-2019 04:11)
Joined: 04 Nov 2018
Posts: 25, Topics: 9
Location: Germany

Reputation: 6.8

Post Posted: 20-11-2018, 02:11:19 | Translate post to: ... (Click for more languages)

Cum pot adauga la un plugin tagul de admin ?
Adica sa poata doar admini sa foloseasca acea comanda .... ?

0 0
  
Back to top
View user's profile Send private message
Andone*

[Owner -_- BB]



Status: Offline
(since 01-06-2019 19:03)
Joined: 15 Oct 2016
Posts: 1237, Topics: 30
Location: Acasa

Reputation: 468.6
Votes: 16

 
Post Posted: 20-11-2018, 03:00:21 | Translate post to: ... (Click for more languages)

cstrike/addons/amxmodx/configs si cauti cmdaccess.ini. La sfarsit adaugi si comanda pe care o doresti!

"amx_exemplu" "a" ; exempluplugin.amxx

(a) - In loc de a pui litera dorita de tine dupa cum iti stii tu accesele. Daca ai mai multe comenzi la acel plugin procedezi in acelasi mod.


"Cine nu respecta viata nu o merita" - Leonardo da Vinci

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
InLoveCs

[00 11 00]



Status: Offline
(since 24-12-2021 07:55)
Joined: 11 Jan 2011
Posts: 8224, Topics: 738
Location: zmx.freakz.ro

Reputation: 2926.8
Votes: 170

     
Post Posted: 20-11-2018, 09:42:49 | Translate post to: ... (Click for more languages)

Te orientezi cu astea.
Code:
; 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)

0 0
  
Back to top
View user's profile Send private message
kmking

[Mentally Stable]



Status: Offline
(since 08-02-2019 04:11)
Joined: 04 Nov 2018
Posts: 25, Topics: 9
Location: Germany

Reputation: 6.8

Post Posted: 20-11-2018, 10:14:49 | Translate post to: ... (Click for more languages)

Eu spun sa bag in plugin chestia asta .
Ca de exemplu am /shop si il pot deschide si plyeri si eu vreau doar adminii/vip sa deschida

0 0
  
Back to top
View user's profile Send private message
InLoveCs

[00 11 00]



Status: Offline
(since 24-12-2021 07:55)
Joined: 11 Jan 2011
Posts: 8224, Topics: 738
Location: zmx.freakz.ro

Reputation: 2926.8
Votes: 170

     
Post Posted: 20-11-2018, 10:48:36 | Translate post to: ... (Click for more languages)

Pai ai sursa de la plugin? Pune-o aici si modific eu sa o deschida doar adminii.
0 0
  
Back to top
View user's profile Send private message
kmking

[Mentally Stable]



Status: Offline
(since 08-02-2019 04:11)
Joined: 04 Nov 2018
Posts: 25, Topics: 9
Location: Germany

Reputation: 6.8

Post Posted: 20-11-2018, 10:52:17 | Translate post to: ... (Click for more languages)

Dar pe mine ma intereseaza ce faci ca sa poata lua doar adminii/vip ...
Ca am mai multe pluginuri care vreau sa le fac asa
Adica ce linii trebuie adaugate in plugin ...

Spoiler:

0 0
  
Back to top
View user's profile Send private message
InLoveCs

[00 11 00]



Status: Offline
(since 24-12-2021 07:55)
Joined: 11 Jan 2011
Posts: 8224, Topics: 738
Location: zmx.freakz.ro

Reputation: 2926.8
Votes: 170

     
Post Posted: 20-11-2018, 20:55:43 | Translate post to: ... (Click for more languages)

register_clcmd("say /buyswm4", "hook_clcmd_buyswm4", ADMIN_IMMUNITY)

II schimbi tu daca vrei si pt vip

0 0
  
Back to top
View user's profile Send private message
kmking

[Mentally Stable]



Status: Offline
(since 08-02-2019 04:11)
Joined: 04 Nov 2018
Posts: 25, Topics: 9
Location: Germany

Reputation: 6.8

Post Posted: 20-11-2018, 21:50:07 | Translate post to: ... (Click for more languages)

Si o pot pune oriunde in plugin ?
0 0
  
Back to top
View user's profile Send private message
InLoveCs

[00 11 00]



Status: Offline
(since 24-12-2021 07:55)
Joined: 11 Jan 2011
Posts: 8224, Topics: 738
Location: zmx.freakz.ro

Reputation: 2926.8
Votes: 170

     
Post Posted: 20-11-2018, 22:19:02 | Translate post to: ... (Click for more languages)

Nu,cauti linia register_clcmd("say /buyswm4", "hook_clcmd_buyswm4") si modifici cu ce ti-am zis e.u.
0 0
  
Back to top
View user's profile Send private message
kmking

[Mentally Stable]



Status: Offline
(since 08-02-2019 04:11)
Joined: 04 Nov 2018
Posts: 25, Topics: 9
Location: Germany

Reputation: 6.8

Post Posted: 21-11-2018, 01:41:45 | Translate post to: ... (Click for more languages)

Am facut exact ce mi-ai spus , am scris cu rosu , dar playeri pot cumpara arma ...
Spoiler:

0 0
  
Back to top
View user's profile Send private message
InLoveCs

[00 11 00]



Status: Offline
(since 24-12-2021 07:55)
Joined: 11 Jan 2011
Posts: 8224, Topics: 738
Location: zmx.freakz.ro

Reputation: 2926.8
Votes: 170

     
Post Posted: 22-11-2018, 20:18:11 | Translate post to: ... (Click for more languages)

Nu am timp zilele astea ca-s cu facultatea,rezolvam in weekend.
1 0
  
Back to top
View user's profile Send private message
kmking

[Mentally Stable]



Status: Offline
(since 08-02-2019 04:11)
Joined: 04 Nov 2018
Posts: 25, Topics: 9
Location: Germany

Reputation: 6.8

Post Posted: 25-11-2018, 15:41:44 | Translate post to: ... (Click for more languages)

up
0 0
  
Back to top
View user's profile Send private message
InLoveCs

[00 11 00]



Status: Offline
(since 24-12-2021 07:55)
Joined: 11 Jan 2011
Posts: 8224, Topics: 738
Location: zmx.freakz.ro

Reputation: 2926.8
Votes: 170

     
Post Posted: 30-11-2018, 12:51:12 | Translate post to: ... (Click for more languages)

Cauta #define
si pui :

Code:
#define FLAG_ACESS    ADMIN_RCON


Aici o sa pui tu alt acces .. ca o sa aiba doar ownerii momentan acc la ea.

Cauta public hook_clcmd_buyswm4(id)

Si inlocuieste tot ce e dedesubt pana se incheie } cu astA :

Code:
public hook_clcmd_buyswm4(id)
{   
if (get_user_flags(id) & FLAG_ACESS)
{
if ( iSwSpawnMode != 0 )
{
client_print(id, print_center, "Can not buy superweapon in this mode!")
return PLUGIN_HANDLED
}
if ( iUserHoldSwM4[id] > MAXPLAYERS || !is_user_alive(id) )
return PLUGIN_HANDLED
if ( !bInBuyTime )
{
color_saytext(sMsgNotInBuyTime, MSG_ONE, id, 4)
return PLUGIN_HANDLED
}
if ( !bInBuyzone[id] )
{
color_saytext(sMsgNotInBuyzone, MSG_ONE, id)
return PLUGIN_HANDLED
}
new iMoney = cs_get_user_money(id)
if ( iMoney < iSwM4Price )
{
new message[64]
format(message, 63, "^x04 You hasn't enough money,^x03 M4 with M203^x04 price is^x03 $%d", iSwM4Price)
color_saytext(message, MSG_ONE, id)
return PLUGIN_HANDLED
}
new iTeam = get_user_team(id)
if ( iSwM4CurTeamHolders[iTeam] >= iSwM4MaxTeamHolders[iTeam] )
{
color_saytext(sMsgCannotGetSw, MSG_ONE,id)
return PLUGIN_HANDLED
}
if ( give_superweapon(id, iTeam) > MAXPLAYERS )
cs_set_user_money(id, iMoney - iSwM4Price, 1)
return PLUGIN_HANDLED
}
else
{
client_print(id, print_chat, "Nu ai acces la aceasta comanda !!")
return PLUGIN_HANDLED;
}     
}

0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by InLoveCs, 28 December 2018 08:42



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  


The time now is 28-03-2024, 18:18:02
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x