Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Time Per Round
#1
Arkadaşlar Benim sorunum time per round mp_roundtime kodu var onu istemiyorum Time per round ney bilmiyenler için ss koyuyorum VE TAMAMEN KALKICAK BU SÜRE

[Image: cx73h.jpg]
Reply
#2
No Objectives v0.3 (+no roundtime)
PHP Code:
/* AMX Mod X
*   No Objectives
*
* (c) Copyright 2007 by VEN
*
* This file is provided as is (no warranties)
*
*    DESCRIPTION
*        Plugin allow to remove all map objectives or objectives of certain type.
*        Round timer will be disbled for maps that doesn't contain any objectives.
*
*    CVARS
*        no_objectives (flags: acde, default: acde, "": disable the plugin)
*            a - remove "as" (vip assasination) objectives
*            c - remove "cs" (hostage rescue) objectives
*            d - remove "de" (bomb defuse) objectives
*            e - remove "es" (T escape) objectives
*        Note: map change on CVar change required.
*
*    VERSIONS
*        0.3
*            - added support for all objective entities
*            - fixed: timer wasn't shown on multi objective maps if objectives wasn't completely removed
*            - improvements in objective modes routine
*        0.2
*            - disabled round timer
*            - added no_objectives CVar
*        0.1
*            - initial version
*/

// plugin's main information
#define PLUGIN_NAME "No Objectives"
#define PLUGIN_VERSION "0.3"
#define PLUGIN_AUTHOR "VEN"

#include <amxmodx>
#include <fakemeta>

new const g_objective_ents[][] = {
    
"func_bomb_target",
    
"info_bomb_target",
    
"hostage_entity",
    
"monster_scientist",
    
"func_hostage_rescue",
    
"info_hostage_rescue",
    
"info_vip_start",
    
"func_vip_safetyzone",
    
"func_escapezone"
}

#define OBJTYPE_AS (1<<0)
#define OBJTYPE_CS (1<<2)
#define OBJTYPE_DE (1<<3)
#define OBJTYPE_ES (1<<4)
#define OBJTYPE_ALL (OBJTYPE_AS | OBJTYPE_CS | OBJTYPE_DE | OBJTYPE_ES)

#define CVAR_NAME "no_objectives"
#define CVAR_DEFAULT OBJTYPE_ALL

new const g_objective_type[] = {
    
OBJTYPE_DE,
    
OBJTYPE_DE,
    
OBJTYPE_CS,
    
OBJTYPE_CS,
    
OBJTYPE_CS,
    
OBJTYPE_CS,
    
OBJTYPE_AS,
    
OBJTYPE_AS,
    
OBJTYPE_ES
}

new const 
bool:g_objective_prim[] = {
    
true,
    
true,
    
true,
    
false,
    
false,
    
false,
    
false,
    
true,
    
true
}

#define HIDE_ROUND_TIMER (1<<4)

new g_msgid_hideweapon

new g_pcvar_no_objectives

new g_no_objectives CVAR_DEFAULT OBJTYPE_ALL

public plugin_precache() {
    if ((
g_pcvar_no_objectives get_cvar_pointer(CVAR_NAME))) {
        new 
cvar_val[8]
        
get_pcvar_string(g_pcvar_no_objectivescvar_valsizeof cvar_val 1)
        
g_no_objectives read_flags(cvar_val) & OBJTYPE_ALL
    
}

    if (
g_no_objectives)
        
register_forward(FM_Spawn"forward_spawn")
}

public 
plugin_init() {
    
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR)

    if (!
g_pcvar_no_objectives) {
        new 
cvar_defval[8]
        
get_flags(CVAR_DEFAULTcvar_defvalsizeof cvar_defval 1)
        
register_cvar(CVAR_NAMEcvar_defval)
    }

    if (
is_objective_map())
        return

    
g_msgid_hideweapon get_user_msgid("HideWeapon")
    
register_message(g_msgid_hideweapon"message_hide_weapon")
    
register_event("ResetHUD""event_hud_reset""b")
    
set_msg_block(get_user_msgid("RoundTime"), BLOCK_SET)
}

public 
forward_spawn(ent) {
    if (!
pev_valid(ent))
        return 
FMRES_IGNORED

    
static classname[32], i
    pev
(entpev_classnameclassnamesizeof classname 1)
    for (
0sizeof g_objective_ents; ++i) {
        if (
equal(classnameg_objective_ents[i])) {
            if (!(
g_no_objectives g_objective_type))
                return 
FMRES_IGNORED

            engfunc
(EngFunc_RemoveEntityent)
            return 
FMRES_SUPERCEDE
        
}
    }

    return 
FMRES_IGNORED
}

public 
message_hide_weapon() {
    
set_msg_arg_int(1ARG_BYTEget_msg_arg_int(1) | HIDE_ROUND_TIMER)
}

public 
event_hud_reset(id) {
    
message_begin(MSG_ONEg_msgid_hideweapon_id)
    
write_byte(HIDE_ROUND_TIMER)
    
message_end()
}

bool:is_objective_map() {
    new const 
classname[] = "classname"
    
for (new 0sizeof g_objective_ents; ++i) {
        if (
g_objective_prim && engfunc(EngFunc_FindEntityByStringFM_NULLENTclassnameg_objective_ents))
            return 
true
    
}

    return 
false


İstediğin süreyi kaldırıp sınırsız round ise bu plugin zaten var.[/i][/i][/i][/i]


CS:GO ve CS 1.6 için ücretli eklenti yapılır.
Plugin yazmak isteyenlere yardımcı olabilirim.
Skype adresimden ulaşabilirsiniz:
destek_596
Steam: http://steamcommunity.com/id/ca-nemesis/

Reply
#3
akcaliberkk dateline='' Wrote: No Objectives v0.3 (+no roundtime)
PHP Code:
/* AMX Mod X
*   No Objectives
*
* (c) Copyright 2007 by VEN
*
* This file is provided as is (no warranties)
*
*    DESCRIPTION
*        Plugin allow to remove all map objectives or objectives of certain type.
*        Round timer will be disbled for maps that doesn't contain any objectives.
*
*    CVARS
*        no_objectives (flags: acde, default: acde, "": disable the plugin)
*            a - remove "as" (vip assasination) objectives
*            c - remove "cs" (hostage rescue) objectives
*            d - remove "de" (bomb defuse) objectives
*            e - remove "es" (T escape) objectives
*        Note: map change on CVar change required.
*
*    VERSIONS
*        0.3
*            - added support for all objective entities
*            - fixed: timer wasn't shown on multi objective maps if objectives wasn't completely removed
*            - improvements in objective modes routine
*        0.2
*            - disabled round timer
*            - added no_objectives CVar
*        0.1
*            - initial version
*/

// plugin's main information
#define PLUGIN_NAME "No Objectives"
#define PLUGIN_VERSION "0.3"
#define PLUGIN_AUTHOR "VEN"

#include <amxmodx>
#include <fakemeta>

new const g_objective_ents[][] = {
    
"func_bomb_target",
    
"info_bomb_target",
    
"hostage_entity",
    
"monster_scientist",
    
"func_hostage_rescue",
    
"info_hostage_rescue",
    
"info_vip_start",
    
"func_vip_safetyzone",
    
"func_escapezone"
}

#define OBJTYPE_AS (1<<0)
#define OBJTYPE_CS (1<<2)
#define OBJTYPE_DE (1<<3)
#define OBJTYPE_ES (1<<4)
#define OBJTYPE_ALL (OBJTYPE_AS | OBJTYPE_CS | OBJTYPE_DE | OBJTYPE_ES)

#define CVAR_NAME "no_objectives"
#define CVAR_DEFAULT OBJTYPE_ALL

new const g_objective_type[] = {
    
OBJTYPE_DE,
    
OBJTYPE_DE,
    
OBJTYPE_CS,
    
OBJTYPE_CS,
    
OBJTYPE_CS,
    
OBJTYPE_CS,
    
OBJTYPE_AS,
    
OBJTYPE_AS,
    
OBJTYPE_ES
}

new const 
bool:g_objective_prim[] = {
    
true,
    
true,
    
true,
    
false,
    
false,
    
false,
    
false,
    
true,
    
true
}

#define HIDE_ROUND_TIMER (1<<4)

new g_msgid_hideweapon

new g_pcvar_no_objectives

new g_no_objectives CVAR_DEFAULT OBJTYPE_ALL

public plugin_precache() {
    if ((
g_pcvar_no_objectives get_cvar_pointer(CVAR_NAME))) {
        new 
cvar_val[8]
        
get_pcvar_string(g_pcvar_no_objectivescvar_valsizeof cvar_val 1)
        
g_no_objectives read_flags(cvar_val) & OBJTYPE_ALL
    
}

    if (
g_no_objectives)
        
register_forward(FM_Spawn"forward_spawn")
}

public 
plugin_init() {
    
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR)

    if (!
g_pcvar_no_objectives) {
        new 
cvar_defval[8]
        
get_flags(CVAR_DEFAULTcvar_defvalsizeof cvar_defval 1)
        
register_cvar(CVAR_NAMEcvar_defval)
    }

    if (
is_objective_map())
        return

    
g_msgid_hideweapon get_user_msgid("HideWeapon")
    
register_message(g_msgid_hideweapon"message_hide_weapon")
    
register_event("ResetHUD""event_hud_reset""b")
    
set_msg_block(get_user_msgid("RoundTime"), BLOCK_SET)
}

public 
forward_spawn(ent) {
    if (!
pev_valid(ent))
        return 
FMRES_IGNORED

    
static classname[32], i
    pev
(entpev_classnameclassnamesizeof classname 1)
    for (
0sizeof g_objective_ents; ++i) {
        if (
equal(classnameg_objective_ents[i])) {
            if (!(
g_no_objectives g_objective_type))
                return 
FMRES_IGNORED

            engfunc
(EngFunc_RemoveEntityent)
            return 
FMRES_SUPERCEDE
        
}
    }

    return 
FMRES_IGNORED
}

public 
message_hide_weapon() {
    
set_msg_arg_int(1ARG_BYTEget_msg_arg_int(1) | HIDE_ROUND_TIMER)
}

public 
event_hud_reset(id) {
    
message_begin(MSG_ONEg_msgid_hideweapon_id)
    
write_byte(HIDE_ROUND_TIMER)
    
message_end()
}

bool:is_objective_map() {
    new const 
classname[] = "classname"
    
for (new 0sizeof g_objective_ents; ++i) {
        if (
g_objective_prim && engfunc(EngFunc_FindEntityByStringFM_NULLENTclassnameg_objective_ents))
            return 
true
    
}

    return 
false

İstediğin süreyi kaldırıp sınırsız round ise bu plugin zaten var.

bu kodları nasıl yapicam
BİRDE DEDİCATED SERVER[/i][/i][/i][/i]
Reply
#4
AMX Mod X - Half-Life Scripting for Pros!
adresine girip, boş alana bu kodları yapıştır. Compile butonuna bas. Vereceği linkten plugini indir. Kur


CS:GO ve CS 1.6 için ücretli eklenti yapılır.
Plugin yazmak isteyenlere yardımcı olabilirim.
Skype adresimden ulaşabilirsiniz:
destek_596
Steam: http://steamcommunity.com/id/ca-nemesis/

Reply
#5
akcaliberkk dateline='' Wrote: AMX Mod X - Half-Life Scripting for Pros!
adresine girip, boş alana bu kodları yapıştır. Compile butonuna bas. Vereceği linkten plugini indir. Kur

Dediklerını aynen yaptım oraya yapıstırdım ındırdım servera plugıne ekledım plugin.ini ekledım ve süre aynen devam ediyor kalkmadı Sad
Reply
#6
Bir Yanlışlık Yapmıssındır Serverda Denedim Sorunsuz Kaldırıyor Birde Studioda Çevrilmişini Dene Dön bana sonra




Attached Files
.amxx   RoundTime.amxx (Size: 3.82 KB / Downloads: 79)
Reply
#7
Bir Yanlışlık Yapmıssındır Serverda Denedim Sorunsuz Kaldırıyor Birde Studioda Çevrilmişini Dene Dön bana sonra

Alla allaaa :/ Plugin atıyorum Plugin.ini en alt satırınada yazıyorum servera gırıyorum aynı :/ saymaya devam ediyorr
Reply
#8
map değiştirdin mi? Değiştirdiğin halde olmadıysa plugins.ini nin en üstüne yazmayı dene.Yine olmazsa amx_plugins yazıp pluginde running mi yazıyor bad load mı yazıyor kontrol et. Eğer bad load ise log dosyasını kontrol et hatayı paylaş. Her şeyi denediğin halde çalışmıyorsa sorun senden kaynaklı. Bu plugin onaylıdır.


CS:GO ve CS 1.6 için ücretli eklenti yapılır.
Plugin yazmak isteyenlere yardımcı olabilirim.
Skype adresimden ulaşabilirsiniz:
destek_596
Steam: http://steamcommunity.com/id/ca-nemesis/

Reply
#9
akcaliberkk dateline='' Wrote: map değiştirdin mi?

Map değiştrim olmadı birde restart attım gene olmadı serveri kapatip actım gene olmadı Sad
Reply
#10
Sadece map değiştir dedim diğerleri gereksizdi.

Ayrıca sonradan yazıyı düzenledim ekledıklerımı uygula.

Quote:map değiştirdin mi? Değiştirdiğin halde olmadıysa plugins.ini nin en üstüne yazmayı dene.Yine olmazsa amx_plugins yazıp pluginde running mi yazıyor bad load mı yazıyor kontrol et. Eğer bad load ise log dosyasını kontrol et hatayı paylaş. Her şeyi denediğin halde çalışmıyorsa sorun senden kaynaklı. Bu plugin onaylıdır.

Her yaptığın değişiklikte map değişmen şart !


CS:GO ve CS 1.6 için ücretli eklenti yapılır.
Plugin yazmak isteyenlere yardımcı olabilirim.
Skype adresimden ulaşabilirsiniz:
destek_596
Steam: http://steamcommunity.com/id/ca-nemesis/

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Time 15 Plugini fenerbahce07 24 12,162 23-09-18, 03:19
Last Post: qalatas06
  Round Içi Muzik Çalma ContineZz 3 3,604 04-06-14, 16:00
Last Post: ContineZz
  Round bitimi müzik çalma LoudLy 2 2,424 16-08-13, 01:34
Last Post: LoudLy
  KF round plugin ışınlanma sorunu fantastiko54 14 5,527 29-01-13, 18:47
Last Post: akcaliberkk
  knife round ışınlama yerleri shakespeare 24 7,780 01-11-12, 02:16
Last Post: DeaTReX
  Her round Basladinda Bir Muzik Calma Plugins İstek freezmen 6 3,841 18-09-12, 23:06
Last Post: к4dανяα
  Knife round antidote 3 3,027 31-03-12, 00:04
Last Post: excellenT
  Knife Round Plugini antidote 8 3,095 30-01-12, 19:25
Last Post: antidote
  Round Start Plugini qRowLinq_CyBeR 3 2,705 14-01-12, 23:33
Last Post: NiCoMeDiA
  Round Başı oto Restart Plugini eklermisiniz sirketclan 5 5,804 13-01-12, 21:28
Last Post: NiCoMeDiA

Foruma Atla:


Users browsing this thread: 1 Guest(s)