Raised This Month: $32 Target: $400
 8% 

Weapons War v7.5 (26 Weapons)


Post New Thread Reply   
 
Thread Tools Display Modes
Shockyboy
Senior Member
Join Date: Apr 2014
Location: Earth
Old 01-30-2016 , 06:14   Re: Weapons War v7.2 (26 Weapons)
Reply With Quote #231

Quote:
Originally Posted by zmd94 View Post
Sorry, what is "DM"?
no its a awp server
__________________


[ LEARNING SCRIPTING ]
[ ||||||||||||] [ 30% ]
Shockyboy is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 01-31-2016 , 05:57   Re: Weapons War v7.2 (26 Weapons)
Reply With Quote #232

Please show how you configure the cvars:
PHP Code:
    g_iAllowWarStart register_cvar("ww_allow_war_start""1"// Allow admin to start custom war round
    
g_sAdminFlag register_cvar("ww_admin_flag""j"// Configure access flag to open war menu and start vote command. ;)
    
g_iAllowWarVote register_cvar("ww_allow_war_vote""1"// Allow admin to start custom war vote
    
g_iAutoWarVote register_cvar("ww_auto_vote""0"// Allow auto war vote
    
g_iAutoWarStart register_cvar("ww_auto_war""0"// Allow auto war start
    /////////////////////////////////////////////////////////////////////////////
    // If both auto-vote and auto-war features are enabled, please read below: //
    // 1. Auto-vote delay value must be a reference value for auto-vote delay. //
    // 2. Both auto-vote and auto-war delay value must in odd number.          //
    // 3. As example, if auto-vote delay is 3, so auto-war delay must 5.       //
    /////////////////////////////////////////////////////////////////////////////
    
g_iVoteDelay register_cvar("ww_vote_delay""3"// Amount of round delay for auto war vote
    
g_iWarDelay register_cvar("ww_war_delay""5"// Amount of round delay for auto war start
    
g_iAllowConsecutive register_cvar("ww_allow_consecutive""1"// Allow consecutive war
    
g_iConWarAmount register_cvar("ww_con_war_amount""5"// Amount of consecutive war round
    
g_iWeaponDrop register_cvar("ww_weapon_drop""1"// 0; Prevent players to drop any weapons || 1; Allow players to drop current war weapon
    
g_iBullet register_cvar("ww_allow_bullet""0"// Allow player to have unlimited bullet
    
g_iShowHud register_cvar("ww_show_war_hud""1"// Show current war round. ;)
    
g_iXPosition register_cvar("ww_hud_X_position""0.75"// X Position ( --- )
    
g_iYPosition register_cvar("ww_hud_Y_position""0.20"// Y Position ( ||| )
    
g_iHudColors register_cvar("ww_hud_colors""0 255 0"// Hud colors 
    
g_iVotingTime register_cvar("ww_vote_time""30"// Time for vote
    
g_iPointLeader register_cvar("ww_point_leader""1"// Enable showing point leader
    
g_iPointBonus register_cvar("ww_leader_bonus""1"// Enable point leader bonus
    
g_iBonusAmount register_cvar("ww_bonus_amount""100"// Amount of money given
    
g_iAutoRespawn register_cvar("ww_allow_respawn""1"// Allow auto respawn during war round
    
g_iStripWeapon register_cvar("ww_strip_weapon""0"// Strip player weapon during war at the end of round 
    
g_iNoShield  register_cvar("ww_no_shield""1"// Prevent player from getting shield on floor
    
g_iKillerView register_cvar("ww_allow_killer_view""1"// Allow players see themselves dying from killer's view
    
g_iBlockChangeViewTime register_cvar("ww_buttons_delay""2.0"// Delay before which player won't be able to switch spec view/target with mouse buttons
    
g_iSpecMode register_cvar("ww_spec_mode""0"// 0; First person view || 1; Third person view
    
g_iKillerViewFade register_cvar("ww_fade_color""030000000180"// Color and alpha of fade effect. RRR is red, GGG is green, BBB is blue and AAA is alpha
    
g_iMuteNade register_cvar("ww_mute_nade""3"// 0; Nothing is blocked || 1; Radio is blocked ||  2; Message is blocked ||  3; Radio and message is blocked 
zmd94 is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 01-31-2016 , 15:35   Re: Weapons War v7.2 (26 Weapons)
Reply With Quote #233

So the results from the 'amxx cvars' command should be used, but just from the 'cs_war.amxx' plugin? Example for all plugins:

amxx cvars
Code:
Registered cvars:
       name                     value                    plugin
 [  1] cm_connect_sound         buttons/bell1.wav        GHW_connect.amx
 [  2] cm_disconnect_sound      fvox/blip.wav            GHW_connect.amx
 [  3] amx_mode                 1                        admin.amxx
 [  4] amx_password_field       _pw                      admin.amxx
 [  5] amx_default_access       z                        admin.amxx
 [  6] amx_vote_ratio           0.02                     admin.amxx
 [  7] amx_vote_time            20                       admin.amxx
 [  8] amx_vote_answers         1                        admin.amxx
 [  9] amx_vote_delay           10                       admin.amxx
 [ 10] amx_last_voting          0                        admin.amxx
 [ 11] amx_show_activity        2                        admin.amxx
 [ 12] amx_votekick_ratio       0.40                     admin.amxx
 [ 13] amx_voteban_ratio        0.40                     admin.amxx
 [ 14] amx_votemap_ratio        0.40                     admin.amxx
 [ 15] amx_sql_host             127.0.0.1                admin.amxx
 [ 16] amx_sql_user             root                     admin.amxx
 [ 17] amx_sql_pass                                      admin.amxx
 [ 18] amx_sql_db               amx                      admin.amxx
 [ 19] amx_sql_type             mysql                    admin.amxx
 [ 20] amx_reservation          0                        adminslots.amxx
 [ 21] amx_hideslots            0                        adminslots.amxx
 [ 22] amx_language             en                       multilingual.am
 [ 23] amx_client_languages     1                        multilingual.am
 [ 24] CRXAdminChat             1.2                      adminchat.amxx
 [ 25] crxchat_anonymous        0                        adminchat.amxx
 [ 26] amx_flood_time           0.75                     antiflood.amxx
 [ 27] amx_time_voice           1                        timeleft.amxx
 [ 28] amx_timeleft             44:05                    timeleft.amxx
 [ 29] amx_restrweapons         00000000000000000000000  restmenu.amxx
 [ 30] amx_restrequipammo       000000000                restmenu.amxx
 [ 31] amx_statsx_duration      12.0                     statsx.amxx
 [ 32] amx_statsx_freeze        6.0                      statsx.amxx
 [ 33] dragon_ball_z_mod        1.5                      new.amxx
 [ 34] dbz_energy_for_second    30                       new.amxx
 [ 35] dbz_energy_need          250                      new.amxx
 [ 36] dbz_blast_decals_enable  1                        new.amxx
 [ 37] dbz_start_life_on_spawn  2000                     new.amxx
 [ 38] dbz_powerup_effect_enab  1                        new.amxx
 [ 39] dbz_bot_power_maxtime    20.0                     new.amxx
 [ 40] dbz_bot_power_mintime    5.0                      new.amxx
 [ 41] dbz_goku_damage_ki_blas  50                       new.amxx
 [ 42] dbz_goku_damage_kameham  150                      new.amxx
 [ 43] dbz_goku_damage_dragon_  300                      new.amxx
 [ 44] dbz_goku_damage_10x_kam  500                      new.amxx
 [ 45] dbz_goku_damage_spirit_  700                      new.amxx
 [ 46] dbz_goku_radius_ki_blas  100                      new.amxx
 [ 47] dbz_goku_radius_kameham  300                      new.amxx
 [ 48] dbz_goku_radius_dragon_  700                      new.amxx
 [ 49] dbz_goku_radius_10x_kam  1000                     new.amxx
 [ 50] dbz_goku_radius_spirit_  1500                     new.amxx
 [ 51] dbz_goku_vegeta_damage_  50                       new.amxx
 [ 52] dbz_goku_vegeta_damage_  150                      new.amxx
 [ 53] dbz_goku_vegeta_damage_  300                      new.amxx
 [ 54] dbz_goku_vegeta_damage_  500                      new.amxx
 [ 55] dbz_goku_vegeta_radius_  100                      new.amxx
 [ 56] dbz_goku_vegeta_radius_  300                      new.amxx
 [ 57] dbz_goku_vegeta_radius_  700                      new.amxx
 [ 58] dbz_goku_vegeta_radius_  1000                     new.amxx
 [ 59] dbz_gohan_damage_ki_bla  50                       new.amxx
 [ 60] dbz_gohan_damage_masenk  150                      new.amxx
 [ 61] dbz_gohan_damage_kameha  300                      new.amxx
 [ 62] dbz_gohan_radius_ki_bla  100                      new.amxx
 [ 63] dbz_gohan_radius_masenk  200                      new.amxx
 [ 64] dbz_gohan_radius_kameha  500                      new.amxx
 [ 65] dbz_krilin_damage_ki_bl  50                       new.amxx
 [ 66] dbz_krilin_damage_kameh  150                      new.amxx
 [ 67] dbz_krilin_damage_destr  300                      new.amxx
 [ 68] dbz_krilin_radius_ki_bl  100                      new.amxx
 [ 69] dbz_krilin_radius_kameh  200                      new.amxx
 [ 70] dbz_krilin_radius_destr  500                      new.amxx
 [ 71] dbz_picolo_damage_ki_bl  50                       new.amxx
 [ 72] dbz_picolo_damage_masen  150                      new.amxx
 [ 73] dbz_picolo_damage_speci  300                      new.amxx
 [ 74] dbz_picolo_radius_ki_bl  100                      new.amxx
 [ 75] dbz_picolo_radius_masen  200                      new.amxx
 [ 76] dbz_picolo_radius_speci  500                      new.amxx
 [ 77] dbz_goku_frieza_damage_  50                       new.amxx
 [ 78] dbz_goku_frieza_damage_  150                      new.amxx
 [ 79] dbz_goku_frieza_damage_  300                      new.amxx
 [ 80] dbz_goku_frieza_damage_  500                      new.amxx
 [ 81] dbz_goku_frieza_radius_  100                      new.amxx
 [ 82] dbz_goku_frieza_radius_  300                      new.amxx
 [ 83] dbz_goku_frieza_radius_  700                      new.amxx
 [ 84] dbz_goku_frieza_radius_  1000                     new.amxx
 [ 85] dbz_goku_broly_damage_g  50                       new.amxx
 [ 86] dbz_goku_broly_damage_f  150                      new.amxx
 [ 87] dbz_goku_broly_damage_b  300                      new.amxx
 [ 88] dbz_goku_broly_damage_d  500                      new.amxx
 [ 89] dbz_goku_broly_radius_k  100                      new.amxx
 [ 90] dbz_goku_broly_radius_f  300                      new.amxx
 [ 91] dbz_goku_broly_radius_b  700                      new.amxx
 [ 92] dbz_goku_broly_radius_d  1000                     new.amxx
 [ 93] dbz_goku_superbuu_damag  50                       new.amxx
 [ 94] dbz_goku_superbuu_damag  150                      new.amxx
 [ 95] dbz_goku_superbuu_damag  300                      new.amxx
 [ 96] dbz_goku_superbuu_damag  500                      new.amxx
 [ 97] dbz_goku_superbuu_radiu  100                      new.amxx
 [ 98] dbz_goku_superbuu_radiu  300                      new.amxx
 [ 99] dbz_goku_superbuu_radiu  700                      new.amxx
 [100] dbz_goku_superbuu_radiu  1000                     new.amxx
 [101] dbz_cell_damage_ki_blas  50                       new.amxx
 [102] dbz_cell_damage_death_b  150                      new.amxx
 [103] dbz_cell_damage_kameham  300                      new.amxx
 [104] dbz_cell_radius_ki_blas  100                      new.amxx
 [105] dbz_cell_radius_death_b  200                      new.amxx
 [106] dbz_cell_radius_kameham  500                      new.amxx
 [107] dbz_omega_sheron_damage  50                       new.amxx
 [108] dbz_omega_sheron_damage  150                      new.amxx
 [109] dbz_omega_sheron_damage  700                      new.amxx
 [110] dbz_omega_sheron_radius  100                      new.amxx
 [111] dbz_omega_sheron_radius  200                      new.amxx
 [112] dbz_omega_sheron_radius  1000                     new.amxx
 [113] MultiModManager          1.1-rc1                  multimod_manage
 [114] amx_mintime              10                       multimod_manage
 [115] amx_multimod_voteallowe  1                        multimod_manage
 [116] amx_multimod_endmapvote  0                        multimod_manage
 [117] MultiModServer           1.0-alpha1.4             addons_zz_info.
 [118] amx_allow_zz_info        1                        addons_zz_info.
 [119] amx_tracers              1                        advanced_tracer
 [120] amx_tracers_ln           30                       advanced_tracer
 [121] aimbot_detection         1.4beta2                 aimbotdetect_14
 [122] ad_enabled               1                        aimbotdetect_14
 [123] ad_autowatch             1                        aimbotdetect_14
 [124] ad_verbosemode           1                        aimbotdetect_14
 [125] ad_detectmethod          1                        aimbotdetect_14
 [126] ad_detectsneeded         1                        aimbotdetect_14
 [127] ad_aimattempts           3                        aimbotdetect_14
 [128] ad_punishment            0                        aimbotdetect_14
 [129] ad_botcolor              1 1 1                    aimbotdetect_14
 [130] ad_bantime               0                        aimbotdetect_14
 [131] ad_aw_admin              0                        aimbotdetect_14
 [132] ad_custommod             0                        aimbotdetect_14
 [133] ad_checkinterval         180.0                    aimbotdetect_14
 [134] ad_awr_roundkills        0.33                     aimbotdetect_14
 [135] ad_awr_killdeath         2.0                      aimbotdetect_14
 [136] ad_awr_hitsshots         0.3                      aimbotdetect_14
 [137] ad_awr_hskill            0.5                      aimbotdetect_14
 [138] ad_awr_headbody          0.33                     aimbotdetect_14
 [139] ad_awr_chestbody         0.6                      aimbotdetect_14
 [140] ad_awp_killdeath         1                        aimbotdetect_14
 [141] ad_awp_hitsshots         1                        aimbotdetect_14
 [142] ad_awp_hskill            1                        aimbotdetect_14
 [143] ad_awp_headbody          1                        aimbotdetect_14
 [144] ad_awp_chestbody         1                        aimbotdetect_14
 [145] ad_awp_rpointsneeded     3                        aimbotdetect_14
 [146] ad_aw_maxautowatches     2                        aimbotdetect_14
 [147] ad_aw_pointsneeded       3                        aimbotdetect_14
 [148] ad_aimnumneeded          2                        aimbotdetect_14
 [149] ad_botstaytime           1.5                      aimbotdetect_14
 [150] ad_forceshoot            1                        aimbotdetect_14
 [151] ad_hp_head               4                        aimbotdetect_14
 [152] ad_hp_midbody            2                        aimbotdetect_14
 [153] ad_hp_legs               1                        aimbotdetect_14
 [154] ad_hp_hitsneeded         4                        aimbotdetect_14
 [155] autorr_version           1.6                      autorr.amxx
 [156] autorr_enable            1                        autorr.amxx
 [157] autorr_round             0                        autorr.amxx
 [158] autorr_time              0                        autorr.amxx
 [159] autorr_timewaitround     1                        autorr.amxx
 [160] autorr_lo3               0                        autorr.amxx
 [161] autorr_lo3cfgfile        0                        autorr.amxx
 [162] autorr_saylastround      1                        autorr.amxx
 [163] autorr_hudmessage        0                        autorr.amxx
 [164] autorr_autoswitchall     1                        autorr.amxx
 [165] autorr_switchallkill     0                        autorr.amxx
 [166] autorr_specnchoose       0                        autorr.amxx
 [167] c4 timer                 1.1                      c4timer_rnd.amx
 [168] amx_showc4timer          3                        c4timer_rnd.amx
 [169] amx_showc4flash          1                        c4timer_rnd.amx
 [170] amx_showc4sprite         1                        c4timer_rnd.amx
 [171] amx_showc4msg            1                        c4timer_rnd.amx
 [172] c4_sprite_timer          1                        c4timer_spr.amx
 [173] c4_sprite_scale          1                        c4timer_spr.amx
 [174] ww_allow_war_start       1                        cs_war.amxx
 [175] ww_admin_flag            j                        cs_war.amxx
 [176] ww_allow_war_vote        1                        cs_war.amxx
 [177] ww_auto_vote             0                        cs_war.amxx
 [178] ww_auto_war              0                        cs_war.amxx
 [179] ww_vote_delay            3                        cs_war.amxx
 [180] ww_war_delay             5                        cs_war.amxx
 [181] ww_allow_consecutive     1                        cs_war.amxx
 [182] ww_con_war_amount        5                        cs_war.amxx
 [183] ww_weapon_drop           1                        cs_war.amxx
 [184] ww_allow_bullet          0                        cs_war.amxx
 [185] ww_show_war_hud          1                        cs_war.amxx
 [186] ww_hud_X_position        0.75                     cs_war.amxx
 [187] ww_hud_Y_position        0.20                     cs_war.amxx
 [188] ww_hud_colors            0 255 0                  cs_war.amxx
 [189] ww_vote_time             30                       cs_war.amxx
 [190] ww_point_leader          1                        cs_war.amxx
 [191] ww_leader_bonus          1                        cs_war.amxx
 [192] ww_bonus_amount          100                      cs_war.amxx
 [193] ww_allow_respawn         1                        cs_war.amxx
 [194] ww_strip_weapon          0                        cs_war.amxx
 [195] ww_no_shield             1                        cs_war.amxx
 [196] ww_allow_killer_view     1                        cs_war.amxx
 [197] ww_buttons_delay         2.0                      cs_war.amxx
 [198] ww_spec_mode             0                        cs_war.amxx
 [199] ww_fade_color            030000000180             cs_war.amxx
 [200] ww_mute_nade             3                        cs_war.amxx
 [201] cl_logmode               1                        chat_logger.amx
 [202] gal_version              1.2-rc1.1                galileo.amxx
 [203] gal_server_starting      0                        galileo.amxx
 [204] amx_extendmap_max        90                       galileo.amxx
 [205] amx_extendmap_step       15                       galileo.amxx
 [206] amx_extendmap_step_roun  30                       galileo.amxx
 [207] amx_extendmap_allow_sta  1                        galileo.amxx
 [208] amx_extendmap_allow_ord  1                        galileo.amxx
 [209] amx_extendmap_allow_sta  0                        galileo.amxx
 [210] gal_nextmap_change       1                        galileo.amxx
 [211] gal_vote_show_counter    1                        galileo.amxx
 [212] gal_vote_show_none       1                        galileo.amxx
 [213] gal_vote_show_none_type  0                        galileo.amxx
 [214] gal_colored_chat_enable  1                        galileo.amxx
 [215] gal_in_empty_cycle       0                        galileo.amxx
 [216] gal_unnominate_disconne  0                        galileo.amxx
 [217] gal_endonround           2                        galileo.amxx
 [218] gal_endonround_msg       1                        galileo.amxx
 [219] gal_endonround_players   1                        galileo.amxx
 [220] gal_vote_weight          1                        galileo.amxx
 [221] gal_vote_weightflags     y                        galileo.amxx
 [222] gal_cmd_votemap          1                        galileo.amxx
 [223] gal_cmd_listmaps         1                        galileo.amxx
 [224] gal_listmaps_paginate    20                       galileo.amxx
 [225] gal_banrecent            3                        galileo.amxx
 [226] gal_banrecentstyle       3                        galileo.amxx
 [227] gal_endofmapvote         1                        galileo.amxx
 [228] gal_emptyserver_wait     0                        galileo.amxx
 [229] gal_emptyserver_mapfile  addons/amxmodx/configs/  galileo.amxx
 [230] gal_srv_start            0                        galileo.amxx
 [231] gal_rtv_commands         7                        galileo.amxx
 [232] gal_rtv_wait             10                       galileo.amxx
 [233] gal_rtv_ratio            0.60                     galileo.amxx
 [234] gal_rtv_reminder         2                        galileo.amxx
 [235] gal_nom_playerallowance  2                        galileo.amxx
 [236] gal_nom_mapfile          *                        galileo.amxx
 [237] gal_nom_prefixes         1                        galileo.amxx
 [238] gal_nom_qtyused          0                        galileo.amxx
 [239] gal_vote_duration        30                       galileo.amxx
 [240] gal_vote_expirationcoun  1                        galileo.amxx
 [241] gal_endonround_countdow  1                        galileo.amxx
 [242] gal_vote_mapchoices      5                        galileo.amxx
 [243] gal_vote_announcechoice  1                        galileo.amxx
 [244] gal_vote_showstatus      3                        galileo.amxx
 [245] gal_vote_showstatustype  2                        galileo.amxx
 [246] gal_vote_uniqueprefixes  0                        galileo.amxx
 [247] gal_runoff_enabled       1                        galileo.amxx
 [248] gal_runoff_duration      20                       galileo.amxx
 [249] gal_sounds_mute          0                        galileo.amxx
 [250] gal_vote_mapfile         *                        galileo.amxx
 [251] amx_nextmap              de_dust2002              galileo.amxx
 [252] fireworks_enable         1                        fireworks.amxx
 [253] fireworks_flare_count    30                       fireworks.amxx
 [254] fireworks_maxcount       4                        fireworks.amxx
 [255] fireworks_amaxcount      16                       fireworks.amxx
 [256] fireworks_colortype      0                        fireworks.amxx
 [257] fireworks_multiplier     2                        fireworks.amxx
 [258] fireworks_xvelocity      100                      fireworks.amxx
 [259] fireworks_yvelocity      100                      fireworks.amxx
 [260] fireworks                tsx                      fireworks.amxx
 [261] amx_gold_damage          5                        GoldenWeapons.a
 [262] cm_flags                 31                       GHW_connect.amx
 [263] cm_connect_string        [AMXX] %name  ( %steami  GHW_connect.amx
 [264] cm_disconnect_string     [AMXX] %name  ( %steami  GHW_connect.amx
 [265] sv_grentrail             3                        grentrail.amxx
 [266] kv_buttonsdelay          2                        killer_view.amx
 [267] kv_3rdview               0                        killer_view.amx
 [268] kv_fade                  000000000000             killer_view.amx
 [269] lastmanbets_overridemen  1                        lastmanbets.amx
 [270] lastmanbets_defaultbet   1000                     lastmanbets.amx
 [271] lastmanbets_bettime      20                       lastmanbets.amx
 [272] amx_maxjumps             5                        multijump.amxx
 [273] amx_mjadminonly          0                        multijump.amxx
 [274] amx_painshockfree        1                        pain_shock_free
 [275] resetscore_max           1000                     resetscore.amxx
 [276] resetscore_interval      1                        resetscore.amxx
 [277] resetscore_money         -2                       resetscore.amxx
 [278] amx_hsreward             1                        rewards.amxx
 [279]                          1                        rewards.amxx
 [280] scu_max_money            2147483583               scu_unlimited_m
 [281] forcerules               0                        server_rules.am
 [282] Silly C4                 1.2                      sillyc4.amxx
 [283] amx_sc_rannumber         1                        sillyc4.amxx
 [284] amx_sc_removeres         1                        sillyc4.amxx
 [285] amx_sc_wallplant         1                        sillyc4.amxx
 [286] SpecList                 1.2a                     speclist.amxx
 [287] amx_speclist             1                        speclist.amxx
 [288] amx_speclist_immunity    1                        speclist.amxx
 [289] amx_voteban_lasttime     0                        voteban1_2.amxx
 [290] amxx_voteban_delaytime   240                      voteban1_2.amxx
 [291] amxx_voteban_ratio       0.40                     voteban1_2.amxx
 [292] amxx_voteban_minvoters   0.0                      voteban1_2.amxx
 [293] amxx_voteban_bf_ratio    0.20                     voteban1_2.amxx
 [294] amxx_voteban_bantime     5                        voteban1_2.amxx
 [295] amxx_voteban_disable     0                        voteban1_2.amxx
 [296] amxx_voteban_type        1                        voteban1_2.amxx
 [297] amx_super_menu           0.8.1                    amx_super_menu.
 [298] supermenu_func           0                        amx_super_menu.
 [299] amx_super                4.1.1 Nospeed            amx_super.amxx
 [300] amx_revivemsg            1                        amx_super.amxx
 [301] amx_deadchat             0                        amx_super.amxx
 [302] bullet_damage            1                        amx_super.amxx
 [303] amx_loadsong             1                        amx_super.amxx
 [304] amx_soundfix             1                        amx_super.amxx
 [305] amx_soundfix_pallow      1                        amx_super.amxx
 [306] amx_flashsound           1                        amx_super.amxx
 [307] afk_bombtransfer_fm_Dis  7                        amx_super.amxx
 [308] afk_bombtransfer_time    15                       amx_super.amxx
 [309] allow_catchfire          1                        amx_super.amxx
 [310] amx_marqplayeramount     40                       amx_super.amxx
 [311] amx_marqvertlocation     2                        amx_super.amxx
 [312] amx_marqfulltime         600.0                    amx_super.amxx
 [313] amx_marqtimebetween      6.0                      amx_super.amxx
 [314] stats_marquee            1                        amx_super.amxx
 [315] sv_sp                    1                        amx_super.amxx
 [316] sv_sptime                3                        amx_super.amxx
 [317] sv_spmessage             1                        amx_super.amxx
 [318] sv_spshellthick          25                       amx_super.amxx
 [319] sv_spglow                1                        amx_super.amxx
 [320] amx_adminlisten          1                        amx_super.amxx
 [321] amx_leavemessage_enable  1                        amx_super.amxx
 [322] amx_enter_message        %name% has joined!\nCur  amx_super.amxx
 [323] amx_leave_message        %name% has left!         amx_super.amxx
 [324] amx_join_leave           1                        amx_super.amxx
 [325] amx_autobantimed         1                        amx_super.amxx
 [326] amx_autobanall           1                        amx_super.amxx
 [327] amx_ba_follow_immunity   1                        amx_super.amxx
 [328] amx_admin_check          1                        amx_super.amxx
 [329] amx_immune_access        a                        amx_super.amxx
 [330] amx_immune_time          5                        amx_super.amxx
 [331] amx_max_afktime          300                      amx_super.amxx
 [332] amx_afkcheck_allow       0                        amx_super.amxx
 [333] allow_public_spec        1                        amx_super.amxx
 [334] listen_immune_access     d                        amx_super.amxx
 [335] round_terminator_versio  1.0.1                    round_terminato
 [336] ut_killstreak_advanced   3                        adv_killstreak.
 [337] ut_killstreak_hs         1                        adv_killstreak.
 [338] ut_killstreak_knife      1                        adv_killstreak.
 [339] ut_firstblood            0                        adv_killstreak.
 [340] ut_nade_events           1                        adv_killstreak.
 [341] ut_suicide_events        0                        adv_killstreak.
 [342] ut_doublekill_events     1                        adv_killstreak.
 [343] ut_roundcout_sounds      1                        adv_killstreak.
343 cvars
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 01-31-2016 at 15:38. Reason: spelling fix
addons_zz is offline
Dr Zayd
Senior Member
Join Date: Jun 2014
Location: forums.alliedmods.net
Old 02-01-2016 , 14:13   Re: Weapons War v7.2 (26 Weapons)
Reply With Quote #234

i think tha you're a ZP scripter X) , nice plugin will try it
__________________
Invisible System | 100%
ـــــــــــــــــــــــــــــ
Anti setinfo check | Ez Plugin and lite
ـــــــــــــــــــــــــــــ
[ZP] Free VIP Menu | Free VIP menu | ZP-Mod |
Dr Zayd is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 02-03-2016 , 17:50   Re: Weapons War v7.2 (26 Weapons)
Reply With Quote #235

The problem maybe with the configured cvars as I can't produce the same probem.
zmd94 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-20-2016 , 07:21   Re: Weapons War v7.2 (26 Weapons)
Reply With Quote #236

Totally forgot about this one:

1.In plugin_init: you are looping two times WeaponsData items. Do only one loop please.
2.In cs_war_new_round use arrayset() native instead of looping for resetting arrays.
3.You should avoid to duplicate code. For example in cs_war_round_start. g_iWarCountdown = 0 should be under the if else group.
4.Why do you keep registering the ham forwards multiple times instead of doing it only one time? I did not really check that part of the code, but if you need it disabled at some point you have DisableHamForward and EnableHamForward natives. Anyway, the ideea is to register them only one time.
PHP Code:
for(new isizeof(WeaponsData); i++)
            {
                
RegisterHam(Ham_CS_Item_CanDropWeaponsData[i][WeaponID], "cs_war_CanDrop")
            }
            
            new const 
WeaponCannotDrop[][] = {"weapon_knife""weapon_hegrenade"}
            for(new 
isizeof(WeaponCannotDrop); i++)
            {
                
RegisterHam(Ham_CS_Item_CanDropWeaponCannotDrop[i], "cs_war_CannotDrop")
            } 
That is pretty strange. You firstly register Ham_CS_Item_CanDrop for all weapons, then you register again for he and knife. What you should do is register only one time, then in the callback check for item type(cs_get_weapon_id(iEnt)). If it is knife or he do nothing, else alter the return value to 1.
Or better, check directly when registering and skip knife and he.
5.In FindLeader there is an issue. If there are more players with a score bigger than g_iCurrentTP player your hud message will be send two times. You should show the hud after the loop, depending on what you found.
Let's say current leader has 5 points. And there are 2 players with 7 and 6 points. You have to check who from the two players has a bigger score. You code currently return only the last one, even if he has few points(so 6 but it should get the one with 7).
6.Not every functions needs to be public. Put public for stuffs that may be called from outside of plugin, like menu handler, task, forward etc. Your TopPlayerp function should be private. Also new szName[33] is wrong. Max is 32.
7.In RestoreDrop make sure the user is still connected.
8.Don't get cvar values inside a loop, cache them before.
9.If you put a string multiple times compiler will make a new entry for it every time. Consider saving them in a const. But you already have weapon_hegrenade and weapon_knife in the const, so use it.
10.In StartWar doing RegisterHam(Ham_CS_Item_CanDrop, g_sWeaponID, "cs_war_CanDrop") is useless since you already register all possible weapons one step above.
11.What's the purpose of the code from cs_war_WeaponBox?
12.In print_colored use charsmax().

I fastly checked this time, so I may not get everything you wanted to do. Your code is a bit confusing.
Feel free to ask anything and sorry if something is messy.
__________________
HamletEagle is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 06-20-2016 , 13:48   Re: Weapons War v7.2 (26 Weapons)
Reply With Quote #237

Nevermind, HamletEagle.
Quote:
5.In FindLeader there is an issue. If there are more players with a score bigger than g_iCurrentTP player your hud message will be send two times. You should show the hud after the loop, depending on what you found.
Let's say current leader has 5 points. And there are 2 players with 7 and 6 points. You have to check who from the two players has a bigger score. You code currently return only the last one, even if he has few points(so 6 but it should get the one with 7).
So, I change the code into below. Is it correct?
Code:
public FindLeader()
{
    new iPlayers[32], iPlayerCount, iPlayerID
    new iHighestKillPlayer
    
    get_players(iPlayers, iPlayerCount, "c")
    for(new i = 0 ; i < iPlayerCount; i++)
    {
        iPlayerID = iPlayers[i]
        if(g_iKills[iPlayerID] > g_iKills[g_iCurrentTP])
        {
            iHighestKillPlayer = iPlayerID
            
            set_hudmessage(random_num(10,255), random(256), random(256), -1.0, 0.20, 0, 3.0, 6.0, 0.0, 0.0, -1)
            show_hudmessage(0, "^n%L", LANG_PLAYER, "CSWAR_NEW_LEADER")
        }
        else
        {
            iHighestKillPlayer = g_iCurrentTP
            
            set_hudmessage(random_num(10,255), random(256), random(256), -1.0, 0.20, 0, 3.0, 6.0, 0.0, 0.0, -1)
            show_hudmessage(0, "^n%L", LANG_PLAYER, "CSWAR_SAME_LEADER")
        }
    }
    
    if(iHighestKillPlayer)
    {
        TopPlayer(iHighestKillPlayer)
    }
}
-->
Code:
public FindLeader()
{
    new iPlayers[32], iPlayerCount, iPlayerID
    new iHighestKillPlayer
    
    // Same hud configuration
    set_hudmessage(random_num(10,255), random(256), random(256), -1.0, 0.20, 0, 3.0, 6.0, 0.0, 0.0, -1)
    
    get_players(iPlayers, iPlayerCount, "c")
    for(new i = 0 ; i < iPlayerCount; i++)
    {
        iPlayerID = iPlayers[i]
        if(g_iKills[iPlayerID] > g_iKills[g_iCurrentTP])
        {
            iHighestKillPlayer = iPlayerID
            show_hudmessage(0, "^n%L", LANG_PLAYER, "CSWAR_NEW_LEADER")
        }
        else
        {
            iHighestKillPlayer = g_iCurrentTP
            show_hudmessage(0, "^n%L", LANG_PLAYER, "CSWAR_SAME_LEADER")
        }
        
        // If there is player have more point than new top leader
        if(g_iKills[iPlayerID] > g_iKills[iHighestKillPlayer])
        {
            iHighestKillPlayer = iPlayerID
        }
    }
    
    if(iHighestKillPlayer)
    {
        TopPlayer(iHighestKillPlayer)
    }
}
For problem 4, 7, 9, 10 and 11 are solved. I just removed all the codes related to them as they no longer needed and caused "FATAL ERROR (Shutting Down): ED_Alloc: no free edicts". LOL.

Now, I'm using different method to block weapon from being dropped.

Last edited by zmd94; 06-20-2016 at 13:52.
zmd94 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 06-21-2016 , 03:55   Re: Weapons War v7.2 (26 Weapons)
Reply With Quote #238

Weapons War v7.3
(26 Weapons)

Status:
UP-TO-DATE (21/6/2016)

Quote:
v7.3
- [FIXED] Remove unnecessary codes related to Ham_CS_Item_CanDrop as they no longer needed and caused "FATAL ERROR (Shutting Down): ED_Alloc: no free edicts".
- [ADDED] Using different method to block weapon from being dropped.
- [FIXED] Using arrayset() native instead of looping for resetting arrays.
- [FIXED] Looping two times WeaponsData items in public plugin_init() section.
- [FIXED] Find leader code.
- [FIXED] Wrong szName variable size.
- [ADDED] Danish and Urdu translation.

Last edited by zmd94; 06-21-2016 at 03:57.
zmd94 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-25-2016 , 06:06   Re: Weapons War v7.3 (26 Weapons)
Reply With Quote #239

PHP Code:
// Players Offsets
#define XO_PLAYER 5 
Is never used and your comment is wrong. It is just the difference from windows to linux, not an offset. linux = windows offset + 5 for players.

Quote:
6.Not every functions needs to be public. Put public for stuffs that may be called from outside of plugin, like menu handler, task, forward etc. Your TopPlayerp function should be private.
You still have public for functions you create inside of plugin, like AutoWar, AutoVote etc. I usually tell you something only for a function and you have to apply it everywhere, if it's the case.

Quote:
9.If you put a string multiple times compiler will make a new entry for it every time. Consider saving them in a const. But you already have weapon_hegrenade and weapon_knife in the const, so use it.
For example, in cs_war_round_end you still write directly "weapon_knife" even if you defined it before.

PHP Code:
iPlayerID iPlayers[i]
        if(
g_iKills[iPlayerID] > g_iKills[g_iCurrentTP])
        {
            
iHighestKillPlayer iPlayerID
            show_hudmessage
(0"^n%L"LANG_PLAYER"CSWAR_NEW_LEADER")
        }
        else
        {
            
iHighestKillPlayer g_iCurrentTP
            show_hudmessage
(0"^n%L"LANG_PLAYER"CSWAR_SAME_LEADER")
        }
        
        
// If there is player have more point than new top leader
        
if(g_iKills[iPlayerID] > g_iKills[iHighestKillPlayer])
        {
            
iHighestKillPlayer iPlayerID
        

Show the hud message after the for-loop. As you do it now, you will print multiple hud messages. You could do something like this:
PHP Code:
    new iHighestKillPlayer 0
    
for(new iPlayerCounti++)
    {
        
iPlayerID iPlayers[i]
        
        if(
iPlayerID == g_iCurrentTP)
        {
            continue
        }
        
        if(
g_iKills[iPlayerID] > g_iKills[iHighestKillPlayer])
        {
            
iHighestKillPlayer iPlayerID
        
}
    }
    
    if(
g_iKills[iHighestKillPlayer] > g_iKills[g_iCurrentTP])
    {
        
show_hudmessage(0"^n%L"LANG_PLAYER"CSWAR_NEW_LEADER")
    }
    else 
    {
        
show_hudmessage(0"^n%L"LANG_PLAYER"CSWAR_SAME_LEADER")
    } 
Basically you get the max kills by checking all players except the current leader and then you compare the max with what the leader has.

In TopPlayer don't get cvar value multiple time, cache it(get_pcvar_num(g_iBonusAmount))
__________________

Last edited by HamletEagle; 06-25-2016 at 06:06.
HamletEagle is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 06-25-2016 , 19:31   Re: Weapons War v7.4 (26 Weapons)
Reply With Quote #240

Weapons War v7.4
(26 Weapons)

Status:
UP-TO-DATE (26/6/2016)

Quote:
(26/6/2016)
v7.4
- [FIXED] Remove unnecessary codes.
- [FIXED] Naming function correctly.
- [FIXED] Using provided global const.
- [FIXED] Code to find leader.
- [FIXED] Cache cvar outside loop.
- [FIXED] Using provided global Weapon ID and Weapon Index in cs_strip_weapon function.
zmd94 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode