Nu merge refill_ammo CSDM + plugin OnlyAWP [rezolvat]

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

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
StefaN@CS
Membru, skill +1
Membru, skill +1
Posts: 282
Joined: 15 Nov 2014, 19:15
Detinator Steam: Da
CS Status: RESPAWN.INDUNGI.RO
Detinator server CS: Da
SteamID: baulesscs161
Fond eXtream: 0

11 Dec 2014, 22:32

Salut am si eu o problema la server cand cineva impusca nu ii incarca arma automat fara sa o incarce el . Mai pe scurt nu merge refill ammo .
Precizez ca am activat si urmatoarele pluginuri : csdm_equip si itemmode si nimic
Uitati
csdm.cfg | Afiseaza codul
;CSDM Configuration File
; Default settings by BAILOPAN

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the Main plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[settings]

;Sets whether CSDM is enabled or not.
enabled = 1

;Sets whether or not players should be stripped of weapons on round start
; (excludes knife)
strip_weapons = 0

;Sets how long weapons should stay on the ground for after being dropped
;in seconds.  note that enabling this can create lots of lag for clients 
; AND server.  0 is immediate, -1 is infinite.
weapons_stay = 0

;Sets the spawn mode.
; "none" - users spawn at normal map spawn points
; "preset" - csdm_spawn_preset.amxx required, uses predefined spawns in config files
; -- others may be supplied by 3rd party plugins
spawnmode = preset

;Sets whether the bomb is removed
remove_bomb = 1

;Sets the spawn waiting time
spawn_wait_time = 0.75

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the FFA plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[ffa]
;Set whether free for all mode is enabled by default
enabled = 0

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the Misc plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[misc]
;Map objectives are removed by their flags.
; a - as_ maps
; b - buyzones are removed
; c - cs_ maps
; d - de_ maps
remove_objectives = abcd

;Blocks people from using all buy commands
block_buy = 1

;Auto-refills ammo when it gets depleted
ammo_refill = 1

;Says a radio command to a player when they respawn
spawn_radio_msg = 0


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the ticketing plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[ticketing]

;Is round ticketing enabled?
enabled = 0

;Number of times a team can have players respawn before they stop
; being able to respawn
tickets = 150


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the protection plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[protection]

;Is spawn protection enabled?
enabled = 1

;Colors of glow shell, leave this in quotes
;The digits are R, G, B, A where A is the alpha transparency
; (as A gets higher, the glow shell is thicker)
colors = "0 255 0 200"

;Number of seconds someone is respawned for.
time = 2


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the equip plugin for these sections
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[equip]

;Equip Menu flags: 
; p - primary
; s - secondary
; a - armor
; g - grenade
; b - buy
menus = ag

;Autoitem flags:
; a - armor
; h - helmet
; g - grenades
; d - defusekit (CTs only!)
; n - nightvision
autoitems = ahg

;Grenade flags:
; f - flashbang
; h - he grenade
; s - smoke grenade
grenades = h

;Sets number of flashbangs given if
; grenades are enabled
fnadesnum = 2


;;;;;;;;;;;;;;;;
;;WEAPON MENUS;;
;;;;;;;;;;;;;;;;

;Format for weapon menus is:
;shortname "Display Name" menupage
;Change the '1' to a '0' to block the weapon
;Removing or moving things 
;  from the list will change the order of the menus!

[secondary]
usp USP 0
glock18 Glock 0
deagle Deagle 0
p228 P228 0
elite Elite 0
fiveseven "Five Seven" 0

[primary]
m4a1 M4A1 0
ak47 AK47 0
aug AUG 0
sg552 SG552 0
galil Galil 0
famas Famas 0
scout Scout 0
awp AWP 1
sg550 SG550 0
m249 M249 0
g3sg1 G3SG1 0
ump45 "UMP 45" 0
mp5navy "MP5 Navy" 0
m3 M3 0
xm1014 XM1014 0
tmp TMP 0
mac10 "Mac 10" 0
p90 P90 0

;List weapons here the bots can randomly have
;The short name must match one in the list above
[botsecondary]
deagle
usp

[botprimary]
ak47
m4a1
awp
galil
aug

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the item mode plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[items]

;Is item mode enabled?
enabled = 0

;If set to 1, players will drop a pack of goodies when they die.
drop_packs = 1

;Sets the number of armor given by a battery. Default is 15.
battery = 15

;Sets the number of health given by a medkit. Default is 15.
medkit = 15

;Sets the time to wait for an item to reappear on its place. Default is 20 (0 = permanent)
item_time = 20

;Sets how long packs stay on the ground. (Max is 30 seconds)
drop_time = 2

;Remove semicolons to restrict any of the following items
; or add the short weapon names of the weapons you want to restrict (m4a1, ak47, awp ...)
[item_restrictions]
;longjump
;medkit
;battery
;pistolammo
;rifleammo
;shotammo
;smgammo
;awpammo
;paraammo
;fullammo
;armor
plugins.ini | Afiseaza codul
;PROTECTIE
rom_protect.amxx debug

; AMX Mod X plugins
advanced_bans.amxx
Amx_WHO.amxx
; Admin Base - Always one has to be activated
admin.amxx		; admin base (required for any admin-related)
;admin_sql.amxx		; admin base - SQL version (comment admin.amxx)

; Basic
admincmd.amxx		; basic admin console commands
adminhelp.amxx		; help command for admin console commands
adminslots.amxx		; slot reservation
multilingual.amxx	; Multi-Lingual management

; Menus
menufront.amxx		; front-end for admin menus
cmdmenu.amxx		; command menu (speech, settings)
plmenu_ab_base.amxx
;plmenu.amxx		; players menu (kick, ban, client cmds.)
;telemenu.amxx		; teleport menu (Fun Module required!)
mapsmenu.amxx		; maps menu (vote, changelevel)
pluginmenu.amxx		; Menus for commands/cvars organized by plugin

; Chat / Messages
adminchat.amxx		; console chat commands
antiflood.amxx		; prevent clients from chat-flooding the server
scrollmsg.amxx		; displays a scrolling message
imessage.amxx		; displays information messages
adminvote.amxx		; vote commands

; Map related
nextmap.amxx		; displays next map in mapcycle
mapchooser.amxx		; allows to vote for next map
timeleft.amxx		; displays time left on map

; Configuration
pausecfg.amxx		; allows to pause and unpause some plugins
statscfg.amxx		; allows to manage stats plugins via menu and commands

; Counter-Strike
restmenu.amxx		; restrict weapons menu
statsx.amxx		; stats on death or round end (CSX Module required!)
;miscstats.amxx		; bunch of events announcement for Counter-Strike
;stats_logging.amxx	; weapons stats logging (CSX Module required!)

; Enable to use AMX Mod plugins
;amxmod_compat.amxx	; AMX Mod backwards compatibility layer

file_watcher.amxx
dp_test.amxx

;CSDM
;csdm_main.amxx
;csdm_equip.amxx
csdm_spawn_preset.amxx
;spawn_editor.amxx
;csdm_misc.amxx
csdm_protection.amxx
csdm_ffa.amxx
;csdm_tickets.amxx
;csdm_itemmode.amxx


;Plugin de baza.
OnlyAWP.amxx

;Pluginuri adaugate.
xredirect.amxx
;gloves.amxx
A_C_COLORS.amxx
RS.amxx
GAG.amxx
T_NM_F.amxx
SHOWIP.amxx
SS.amxx
NFD.amxx
ABD.amxx
SEMICLIP.amxx
grenade_trail.amxx
EXT.amxx
NTF.amxx
ad_manager.amxx
AMX_LAST.amxx
FITH_REMOVER.amxx
A_S_ESP.amxx
multijump.amxx
bonus_first_kill.amxx
bad_camper.amxx
HPShop.amxx
invisible_spectator.amxx
amx_destroy.amxx
Loading_Song.amxx
team_join.amxx
LoadingMenu.amxx
pingfaker2.amxx debug
bunnyhop.amxx
Si mai am o problema pluginul OnlyAWP am inteles ca scoate toate armele de pe mapa si da awp , dar mie imi da awp numai pe mapele care primesc automat awp gen india , circular .. pe bycastor/garden/zigzag unde iei awp de jos nu ii da awp automat deoarece au disparut si awp-urile de pe jos.
OnlyAWP.sma | Afiseaza codul
#include <amxmodx>
#include <fun>
#include <cstrike>
#include <hamsandwich>
#include <fakemeta>

#define PLUGIN "Only Awp / Knife"
#define VERSION "1.0"
#define AUTHOR "Ex3cuTioN"

new g_FwdKeyValue;


public plugin_init() 
{
register_plugin(PLUGIN, VERSION, AUTHOR);

new map[32]; get_mapname(map,31);
if(equali(map, "awp_", 3))
{
RegisterHam ( Ham_Spawn, "player", "ham_player_spawn", 1 );
unregister_forward( FM_KeyValue, g_FwdKeyValue );
}
}


public plugin_precache() 
{
new map[32]; get_mapname(map,31);
if(equali(map, "awp_", 3))
{
g_FwdKeyValue = register_forward( FM_KeyValue, "Forward_KeyValue" );
}
}

public Forward_KeyValue( const EntIndex, const KvdHandle ) 
{
if ( pev_valid( EntIndex ) ) 
{ 
new szClassName[ 16 ];
get_kvd( KvdHandle, KV_ClassName, szClassName, charsmax( szClassName ) );

if( equal( szClassName, "armoury_entity" ) )
{ 
engfunc( EngFunc_RemoveEntity, EntIndex );
return FMRES_SUPERCEDE;
}
}

return FMRES_IGNORED;
}

public ham_player_spawn ( const id,ent )
{
strip_user_weapons(id);
set_task(0.5,"cmd_awp",id);

return PLUGIN_CONTINUE;
}

public cmd_awp(id)
{
if(is_user_alive(id) )
{
give_item(id,"weapon_awp")
cs_set_user_bpammo(id,CSW_AWP,30)
give_item(id,"weapon_knife")
}
return PLUGIN_HANDLED;
}
Last edited by StefaN@CS on 12 Dec 2014, 15:41, edited 1 time in total.
RoyalServer 2
User avatar
VegaS
Fost moderator
Fost moderator
Posts: 5963
Joined: 28 Sep 2014, 16:12
Detinator Steam: Da
Reputatie: Fost eXtream Mod
Fost intermediar
Fost membru Club eXtreamCS
Fond eXtream: 0
Location: Zalău, Sălaj

11 Dec 2014, 23:24

la restricționarea armelor se folosește extraconfig
Deschizi un notepad gen:

Code: Select all

[equip]

;Equip Menu flags: 
; p - primary
; s - secondary
; a - armor
; g - grenade
; b - buy
menus = p

;Autoitem flags:
; a - armor
; h - helmet
; g - grenades
; d - defusekit (CTs only!)
; n - nightvision
autoitems = ah

;Grenade flags:
; f - flashbang
; h - he grenade
; s - smoke grenade
grenades =

;Sets number of flashbangs given if
; grenades are enabled
fnadesnum = 0

;;;;;;;;;;;;;;;;
;;WEAPON MENUS;;
;;;;;;;;;;;;;;;;

;Format for weapon menus is:
;shortname "Display Name" menupage
;Change the '1' to a '0' to block the weapon
;Removing or moving things 
; from the list will change the order of the menus!

[secondary]


[primary]
awp AWP 1


;List weapons here the bots can randomly have
;The short name must match one in the list above
[botsecondary]

[botprimary]
awp
Îl salvezi awp_garden.cfg - și-l pui în csdm/extraconfigs

Apoi un alt notepad cu:

Code: Select all

csdm_reload "csdm\extraconfigs\awp_garden.cfg"
Îl salvezi awp_garden.cfg și-l pui în configs/maps

p.s: nu merge pe toate mapele
Ia-ți mape de pe 17buddies gen
awp_garden
awp_zigzag
awp_metro
awp_tower
Astea toate merg în extraconfigs.
La alte mape gen awp_bycastor32, awp_winter_india, awp_dunhill, awp_pantero4ka, se face la fel, în csdm, doar că în items, nu extraconfigs, iar al 2-lea notepad tre' modificat și ăla. E puțin mai complicat și-ți trebuie un al doilea sv, altfel garantat îți pică sv-ul din cauza mapei. Dacă folosești cele enumerate mai sus, exact cum am spus, nu va cădea. Mie mi-a luat o lună să învăț ce și cum. Tu ai învățat în 2 minute. :P
Sau faci seara dacă e gol.
awp_bycastor32

Code: Select all

[equip]

;Equip Menu flags: 
; p - primary
; s - secondary
; a - armor
; g - grenade
; b - buy
menus = pa

;Autoitem flags:
; a - armor
; h - helmet
; g - grenades
; d - defusekit (CTs only!)
; n - nightvision
autoitems = ah

;Grenade flags:
; f - flashbang
; h - he grenade
; s - smoke grenade
grenades = 

;Sets number of flashbangs given if
; grenades are enabled
fnadesnum = 0


;;;;;;;;;;;;;;;;
;;WEAPON MENUS;;
;;;;;;;;;;;;;;;;

;Format for weapon menus is:
;shortname "Display Name" menupage
;Change the '1' to a '0' to block the weapon
;Removing or moving things 
;  from the list will change the order of the menus!

[secondary]


[primary]
awp AWP 1


;List weapons here the bots can randomly have
;The short name must match one in the list above
[botsecondary]


[botprimary]
awp

Code: Select all

csdm_reload "csdm\items\awp_bycastor32.cfg"
De prima problemă n-am mai auzit...
Salut!

(trage din ftp 2 cfg-uri pe desktop, înlocuiești la fiecare conținutul, redenumești și le urci la loc. treaba asta trebuie făcută la fiecare mapă de awp în parte. 2 fișiere pentru fiecare)
Pozitia mea preferata este CEO.
StefaN@CS
Membru, skill +1
Membru, skill +1
Posts: 282
Joined: 15 Nov 2014, 19:15
Detinator Steam: Da
CS Status: RESPAWN.INDUNGI.RO
Detinator server CS: Da
SteamID: baulesscs161
Fond eXtream: 0

12 Dec 2014, 15:42

Multumesc acum imi da AWP si la prima problema am renuntat la refill
User avatar
VegaS
Fost moderator
Fost moderator
Posts: 5963
Joined: 28 Sep 2014, 16:12
Detinator Steam: Da
Reputatie: Fost eXtream Mod
Fost intermediar
Fost membru Club eXtreamCS
Fond eXtream: 0
Location: Zalău, Sălaj

12 Dec 2014, 19:59

Cu plăcere!
(vezi că pe unele mape o să ai ceva arme pe jos... când moare cel care le are ai scăpat, rămâne doar awp)
Salut!
Pozitia mea preferata este CEO.
Post Reply

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

  • Information
  • Who is online

    Users browsing this forum: No registered users and 135 guests