Reklam gösterimini engelleyici yazılım kullandığınızı görüyoruz.
Sitemizin ayakta kalıp sizlere hizmet edebilmek için en büyük gelir kaynağı sayfamızda gösterilen reklamlardır.
Reklam gösterimde bizim sayfamıza ayrıcalık tanıyarak ayakta kalmamıza destek olmak ister misiniz ?

Silinmiş Konu   | Menü

Konu

#21
@Aconyonn Yapıcağını söyledin ve adam bekliyor.
El atar mısın ?



#22
Okullar açıldı beklemeniz normal ve şu kısımı " o eşyayı seçince o eşya olacak " daha anlaşılır yazabilir misin ?


Boş ol , boş ol , boş ol.
#24
Neye göre düzenliyeceğim anlamadım , o atılan smada sadece modellerin yüklenmesi yapılmış.


Boş ol , boş ol , boş ol.
#25
@"Felekten BIR TK" Ben sadece modelleri aktif etmek istiyorum yani menü olucak esya menu onun içinde attığım eşyalar olucak ve o modellerden bitanesini seçince mesela dolap dolabı seçince karekteri dolab olucak kompile.


[Resim: https://i.hizliresim.com/00Wy09.jpg]
#26
Eşya saklambacı için bir mod buldum. Eklentide "models/props/" kısımlarını aratıp model değiştirmeyi deneyin. Fakat desteklemeyen modelleri eklerseniz eklenti modeli seçerken sorun yaşayacaktır. Dikkat edin!
PHP Kod:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <cstrike>
#include <hamsandwich>
//#include <dhudmessage>
#include <fun>

new const VERSION[] = "1.5";


new const 
g_CountdownSound[][] =
{
    
"fvox/time_is_now.wav",
    
"fvox/one.wav",
    
"fvox/two.wav",
    
"fvox/three.wav",
    
"fvox/four.wav",
    
"fvox/five.wav"
};
new 
bool:saklanan[33]

#define is_player_alive(%1) (1 <= %1 <= gMaxPlayers && g_bIsAlive[%1])
#define is_player_connected(%1) (1 <= %1 <= gMaxPlayers && g_bIsConnected[%1])
#define remove_prop(%1) (engfunc(EngFunc_RemoveEntity, g_iProp[%1]), g_iProp[%1]=0)

#define VectorAdd(%1,%2,%3) (%3[0] = %1[0] + %2[0], %3[1] = %1[1] + %2[1], %3[2] = %1[2] + %2[2])
#define VectorScale(%1,%2,%3) (%3[0] = %2 * %1[0], %3[1] = %2 * %1[1], %3[2] = %2 * %1[2])

new const g_sB[] = "b";
new const 
g_sA[] = "a";
new const 
g_sBE[] = "be";
new const 
g_sPlayer[] = "player";
new const 
g_sInfoTarget[] = "info_target";
//new const g_sClassName[] = "classname"
new const g_sBlank[] = "";
new const 
g_sCommandNotAvailable[] = "Command_Not_Available";
new const 
g_sMsgWins[][] =
{
    
"Terrorists_Win",
    
"Hostages_Not_Rescued",
    
"CTs_Win"
};

const 
OFFSET_PAINSHOCK 108


const HIDE_HUD = ( << );
//const HIDE_NONE = ( 1 << 7 );

enum (+= 200) { TASK_HIDETIME 9999TASK_HEALTASK_ZOOMTASK_BURNTASK_SCLIP };


new const 
g_szSeekerWpns[][] = 
{
    
"",
    
"weapon_m249",
    
"weapon_xm1014",
    
"weapon_scout",
    
"weapon_knife"
};

enum HUD_BOARDHUD_ZOOMHUD_CROSSHAIRHUD_OBJ };
enum ICON_SPEEDBOOSTICON_BUYZONE };

new const 
g_iClassHealth[] = { -1200170150 };

new const 
g_szPlayerCamera[] = "Player_camera";
new const 
g_szHiderProp[] = "Hider_Prop";
new const 
g_bar[][] = { "|||||""_____" };
new const 
g_teamnum[][] = { "0""1""2""3" };
new const 
g_classnum[][] = { "1""2""3""4" };

enum TEAM_T 1TEAM_CT };

new const 
g_cTeamChars[] = { 'U''T''C''S' };
new const 
g_cmdTeam[][] = { "jointeam""chooseteam""joinclass" };

new const 
g_weapon_entity[][] =
{
    
"weaponbox",
    
"armoury_entity",
    
"weapon_shield"
};

new const 
g_sBuyCommands[][] =  

    
"buy""buyequip""usp""glock""deagle""p228""elites""fn57""m3""xm1014""mp5""tmp""p90""mac10""ump45""ak47",  
    
"galil""famas""sg552""m4a1""aug""scout""awp""g3sg1""sg550""m249""vest""vesthelm""flash""hegren"
    
"sgren""defuser""nvgs""shield""primammo""secammo""km45""9x19mm""nighthawk""228compact""12gauge"
    
"autoshotgun""smg""mp""c90""cv47""defender""clarion""krieg552""bullpup""magnum""d3au1""krieg550"
    
"buyammo1""buyammo2""cl_autobuy""cl_rebuy""cl_setautobuy""cl_setrebuy"
};

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

new 
bool:g_bGameOn truebool:g_bInHideTime;
new Array:
g_sPropsModel;
new 
g_iProp[33], g_iCamera[33], g_iHunterClass[33], bool:g_bCameraOn[33];
new 
bool:g_bIsHider[33], bool:g_bIsAlive[33], bool:g_bIsConnected[33];
new 
g_CvarBlockteamg_CvarHidetimeg_CvarHealtimeg_CvarHpLostAmt,
    
g_CvarHiderspeedg_CvarSpeedBoost
new gMaxPlayersgMsgStatusIcongMsgSayTextgMsgHideWeapon,
    
gMsgScreenFadegMsgCrossHairgMsgBarTimeg_hudmsg[4];
new 
g_iTeam[33], g_iPlayers[5];
new 
bool:g_bRoundEndg_iDoublejump[33], g_iCurWeapon[33]
new 
g_iCountdownTimeg_bHasSpeedBoost[33];
new 
g_iZoomPower[33], g_iSniperDmg[33];
new 
Float:g_fGameStartTimeFloat:g_fFrags[33];
new 
g_iHostageg_iHideTime

public plugin_init() 
{
    if(!
g_bGameOn)
        return;
        
    
register_dictionary("csprophunt.txt");
    
    
RegisterHam(Ham_Spawng_sPlayer"fw_spawn_player_post"1);
    
RegisterHam(Ham_TakeDamageg_sPlayer"fw_TakeDamage");
    
RegisterHam(Ham_TakeDamageg_sPlayer"fw_TakeDamage_post"1);
    
RegisterHam(Ham_Killed"player""fw_killed_player");
    
    new 
sEventTouchWpn[] = "event_touch_weapon";
    for(new 
i3i++)
        
RegisterHam(Ham_Touchg_weapon_entity[i], sEventTouchWpn);
    
    
RegisterHam(Ham_Thinkg_sInfoTarget"fw_ent_think");
    
RegisterHam(Ham_Weapon_PrimaryAttackg_szSeekerWpns[1], "fw_WeaponAttack");
    
RegisterHam(Ham_Weapon_PrimaryAttackg_szSeekerWpns[3], "fw_WeaponAttack");
    
RegisterHam(Ham_Weapon_SecondaryAttackg_szSeekerWpns[4], "fw_WeaponAttack");
    
    
register_event("TeamInfo""event_TeamInfo"g_sA);
    
register_event("CurWeapon""event_curweapon"g_sBE"1=1");
    
register_event("SetFOV""Event_SetFOV""be")
//    register_event("HLTV", "EventNewRound", g_sA, "1=0", "2=0" );
    
register_event("HLTV""EventNewRound""a""1=0""2=0")
    
register_logevent("EventRoundStart"2"1=Round_Start");
    
register_logevent("EventRoundEnd"2"1=Round_End" );
    
register_event("TextMsg""RestartRound"g_sA"2&#Game_C""2&#Game_w");
//    register_event("DeathMsg", "eventDeathMsg", g_sA, "2!0");
    
register_event("StatusIcon""Event_BuyZone"g_sB"2=buyzone");
    
//    register_message(get_user_msgid("StatusIcon"), "msgStatusIcon");
    
register_message(get_user_msgid("TextMsg"), "msg_textmsg");
    
register_message(get_user_msgid("WeapPickup"), "msg_weaponpickup");
    
register_message(get_user_msgid("AmmoPickup"), "msg_ammopickup");
    
    
register_forward(FM_GetGameDescription"fwd_GameDescription");
    
register_forward(FM_CmdStart"fwd_CmdStart");
    
register_forward(FM_UpdateClientData"fwd_UpdateClientData_Post"1);
    
register_forward(FM_PlayerPreThink"fwd_Player_PreThink");
    
register_forward(FM_PlayerPostThink"fwd_Player_PostThink");
    
register_forward(FM_ClientKill"fwd_ClientKill");
    
    new 
sBuyHandle[] = "cmd_buy";
    for(new 
0sizeof g_sBuyCommandsi++) 
        
register_clcmd(g_sBuyCommands[i], sBuyHandle);
    
    
register_clcmd("drop""cmd_drop");
    for(new 
i2i++)
        
register_clcmd(g_cmdTeam[i], "cmd_chooseteam", -1g_sBlank);
    
register_clcmd("say /esya","ayarlar")
    
    for(new 
04i++)
        
g_hudmsg[i] = CreateHudSyncObj();
    
    
set_task(2.0"show_hud"___g_sB);
    
    
set_cvar_num("mp_playerid"1); //hunter won't see hider'name when aiming
    
    
gMaxPlayers get_maxplayers();
    
gMsgStatusIcon get_user_msgid("StatusIcon");
    
gMsgSayText get_user_msgid("SayText");
    
gMsgHideWeapon get_user_msgid("HideWeapon");
    
gMsgScreenFade get_user_msgid("ScreenFade");
    
gMsgCrossHair get_user_msgid("Crosshair");
    
gMsgBarTime get_user_msgid("BarTime")
//    gMsgDeathmsg = get_user_msgid("DeathMsg");
}

public 
plugin_precache()
{
    
register_plugin("CS PropHunt"VERSION"Ryokin");
    
register_cvar("ph_version"VERSIONFCVAR_SPONLY|FCVAR_SERVER);
    
set_cvar_string("ph_version"VERSION);
    
    
g_CvarBlockteam register_cvar("ph_block_jointeam""1");
    
g_CvarHidetime register_cvar("ph_hide_time""20");
    
g_CvarHealtime register_cvar("ph_healing_time""30");
    
g_CvarHpLostAmt register_cvar("ph_wpnfire_hp_amount""5"); //hp losing when wpn fire
    
g_CvarHiderspeed register_cvar("ph_hider_speed""280.0");
    
g_CvarSpeedBoost register_cvar("ph_speed_boost""15.0");
    
    
g_sPropsModel ArrayCreate(321);
    
    static 
cfgdir[32], mapname[32], filepath[100];
    
get_configsdir(cfgdircharsmax(cfgdir));
    
get_mapname(mapnamecharsmax(mapname));
    
format(mapnamecharsmax(mapname), "[%s]"mapname);
    
formatex(filepathcharsmax(filepath), "%s/cs_prophunt.ini"cfgdir);
    
    if(!
file_exists(filepath))
    {
        
server_print("WARNING: Can't find file %s"filepath);
        
g_bGameOn false;
        return;
    }
    
    static 
linedata[1024], key[64], value[960], buffer[100], bool:catch_mapbool:bHadCatchedMap false;

    new 
file fopen(filepath"rt");
    
    while(
file && !feof(file))
    {
        
fgets(filelinedatacharsmax(linedata));
        
        
replace(linedatacharsmax(linedata), "^n""");
        
        if(!
linedata[0] || linedata[0] == ';'
            continue;
            
        if(
linedata[0] == '[')
        {
            
strtok(linedatakeycharsmax(key), valuecharsmax(value));
            
trim(key);
            
trim(value);
            
            if(
equal(keymapname))
            {
                if(!
bHadCatchedMap
                    
bHadCatchedMap true//found map's name
                
catch_map true;
            }
            else 
catch_map false;
            
            continue;
        }
            
        if(!
catch_map)
            continue;
            
        
strtok(linedatakeycharsmax(key), valuecharsmax(value), '=');
        
        
trim(key)
        
trim(value)
        
        if(
equal(key"HIDE TIME"))
        {
            
g_iHideTime str_to_num(value);
            continue
        }
            
        
formatex(valuecharsmax(value), "%s"linedata);
        
        while(
value[0] != && value[10] != '=' && strtok(valuekeycharsmax(key), valuecharsmax(value), ','))
        {
            
trim(key);
            
trim(value);
                        
            
ArrayPushString(g_sPropsModelkey);
        }
    }
    if(
filefclose(file);
    
    if(!
bHadCatchedMap//can't find map in ini file
    
{
        
server_print("WARNING: Can't find map's name %s in cs_prophunt.ini"mapname);
        
g_bGameOn false;
        return;
    }
    
    if(!
g_iHideTime)
        
g_iHideTime get_pcvar_num(g_CvarHidetime);
    
    for(new 
0ArraySize(g_sPropsModel); i++)
    {
        
ArrayGetString(g_sPropsModelibuffercharsmax(buffer));
        
format(buffercharsmax(buffer), "models/props/%s.mdl"buffer);
        
engfunc(EngFunc_PrecacheModelbuffer);
    }
    
    for(new 
06i++)
        
precache_sound(g_CountdownSound[i]);
        
    
register_forward(FM_Spawn"fwd_Spawn");
    
    new 
iHostage engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"hostage_entity"));
    
    if(
iHostage)
    {
        
engfunc(EngFunc_SetOriginiHostageFloat:{0.00.0, -55000.0});
        
engfunc(EngFunc_SetSizeiHostageFloat:{-1.0, -1.0, -1.0}, Float:{1.01.01.0});
        
dllfunc(DLLFunc_SpawniHostage);
        
g_iHostage iHostage
    
}
}

public 
client_putinserver(id)
{
    
g_bIsConnected[id] = true;
    
    
//create camera
    
new iEnt engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocStringg_sInfoTarget));      
    
set_pev(iEntpev_classnameg_szPlayerCamera);
    
engfunc(EngFunc_SetModeliEnt"models/w_usp.mdl");
    
set_pev(iEntpev_solidSOLID_TRIGGER);
    
set_pev(iEntpev_movetypeMOVETYPE_FLY);
    
set_pev(iEntpev_ownerid);
    
set_pev(iEntpev_rendermodekRenderTransTexture);
    
set_pev(iEntpev_renderamt0.0);
    
g_iCamera[id] = iEnt;
    
    
//create prop
    
new iProp engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocStringg_sInfoTarget));
    
set_pev(iProppev_classnameg_szHiderProp);
//    set_pev(iProp, pev_movetype, MOVETYPE_TOSS);
    
set_pev(iProppev_ownerid);
    
set_visible(iProp0);
    
g_iProp[id] = iProp;
}

public 
client_disconnected(id)
{
    
g_bIsAlive[id] = false;
    
g_bIsConnected[id] = false;
    
g_iHunterClass[id] = 0;
    
g_iCurWeapon[id] = 0;
    
    if(
g_iProp[id])
        
remove_prop(id);
        
    new 
iEnt g_iCamera[id];
    if(
iEntengfunc(EngFunc_RemoveEntityiEnt), g_iCamera[id] = 0;
        
    if(
task_exists(id+TASK_HEAL))
        
remove_task(id+TASK_HEAL);
        
    if(
task_exists(id+TASK_SCLIP))
        
remove_task(id+TASK_SCLIP);
        
    if(
task_exists(id+TASK_ZOOM))
        
remove_task(id+TASK_ZOOM);
}

public 
cmd_buy(id

    
client_print(idprint_center"%L"LANG_PLAYER"CANT_BUY_WPN");
    return 
PLUGIN_HANDLED;
}
    
public 
cmd_drop(id)
{
    
client_print(idprint_center"%L"LANG_PLAYER"CANT_DROP");
    return 
PLUGIN_HANDLED;
}
    
public 
cmd_chooseteam(id)
{
    if(!
get_pcvar_num(g_CvarBlockteam) || is_user_admin(id))
    {
        if(
g_iHunterClass[id])
            
g_iHunterClass[id] = 0;
            
        return 
PLUGIN_CONTINUE;
    }
        
    static 
CsTeams:team;
    
team cs_get_user_team(id);
    if(
team == CS_TEAM_SPECTATOR || team == CS_TEAM_UNASSIGNED)
    {
        new 
iteam get_new_team();
        
engclient_cmd(idg_cmdTeam[0], g_teamnum[iteam]);
        
engclient_cmd(idg_cmdTeam[2], g_classnum[random_num(0,3)]);
        if(
g_iHunterClass[id])
            
g_iHunterClass[id] = 0;
            
        return 
PLUGIN_HANDLED;
    }
    else
    {
        
client_print(idprint_center"%L"LANG_PLAYER"CHANGE_TEAM");
        return 
PLUGIN_HANDLED;
    }
}

public 
event_TeamInfo()
{
    if(!
get_pcvar_num(g_CvarBlockteam) || !g_bGameOn)
        return 
PLUGIN_CONTINUE;
        
    new 
id read_data(1);
    new 
sTeam[32], iTeam;
    
read_data(2sTeamsizeof(sTeam) - 1);
    for(new 
05i++)
    {
        if(
g_cTeamChars[i] == sTeam[0])
        {
            
iTeam i;
            break;
        }
    }
    
    if(
g_iTeam[id] != iTeam)
    {
        
g_iPlayers[g_iTeam[id]]--;
        
g_iTeam[id] = iTeam;
        
g_iPlayers[iTeam]++;
    }
    
    return 
PLUGIN_CONTINUE;
}

public 
camera_think(iEnt)
{
    new 
id pev(iEntpev_owner);
    
    if(!
g_bCameraOn[id])
        return;

    static 
Float:origin[3], Float:angle[3], Float:vBack[3], add_vec;
    
pev(idpev_originorigin);
    
pev(idpev_v_angleangle);

    
angle_vectorangleANGLEVECTOR_FORWARDvBack );

    
origin[2] += 20.0;
     
//    add_vec = 120.0;
    
add_vec get_add_vec(idoriginvBack);
        
    
origin[0] += (-vBack[0] * add_vec);
    
origin[1] += (-vBack[1] * add_vec);
    
origin[2] += (-vBack[2] * add_vec);

    
set_pev(iEntpev_originorigin);
    
set_pev(iEntpev_anglesangle);
        
    
set_pev(iEntpev_nextthinkget_gametime()+ 0.01);
}

get_add_vec(idFloat:origin[3], Float:back[3])
{
    static 
add_vecFloat:torigin[3], Float:flFraction;
    
add_vec 5;
    
    for(new 
200i--)
    {
        
torigin[0] = origin[0] + (-back[0] * add_vec *i);
        
torigin[1] = origin[1] + (-back[1] * add_vec *i);
        
torigin[2] = origin[2] + (-back[2] * add_vec *i);
        
engfunc(EngFunc_TraceLineorigintoriginIGNORE_MONSTERSid0);
        
get_tr2(0TR_flFractionflFraction);
        if(
flFraction == 1.0)
        {
            return (
add_vec*i);
        }
    }
    return 
0;
}

public 
fwd_GameDescription() 

    new 
szMsg[32];
    
formatex(szMsg31"Saklambac Mod");
    
forward_return(FMV_STRINGszMsg);
    return 
FMRES_SUPERCEDE;
}

public 
fwd_CmdStart(iduc_handleseed)
{
    if(!
g_bIsAlive[id] || !g_bGameOn)
        return 
FMRES_IGNORED;
    
    static 
buttonoldbutton;
    
button pev(idpev_button);
    
oldbutton pev(idpev_oldbuttons);
    
    if(
g_bIsHider[id])
    {
        
/*if(button & IN_ATTACK2)
        {
            set_pev(id, pev_maxspeed, 1.0);
        }
        else if(oldbutton & IN_ATTACK2)
        {
            set_pev(id, pev_maxspeed, get_pcvar_float(g_CvarHiderspeed));
        }*/
        
        
new onground pev(idpev_flags) & FL_ONGROUND;
        if(
button IN_JUMP && !(oldbutton IN_JUMP) && !onground && !g_iDoublejump[id])
        {
            
g_iDoublejump[id] = 1;
        }
        
        new 
iEnt g_iProp[id];
        if(!
iEnt)
            return 
FMRES_IGNORED;
            
        static 
Float:origin[3], Float:angle[3];
        
pev(idpev_originorigin);

        if(
pev(idpev_flags) & FL_DUCKING)
            
origin[2] -= 18.0;
        else 
origin[2] -= 36.0;
        
        
engfunc(EngFunc_SetOriginiEntorigin);
        
        if(!(
button IN_ATTACK2))
        {
            
pev(idpev_v_angleangle);
            
angle[0] = 0.0;
            
set_pev(iEntpev_anglesangle);
        }
    }
    else
    {
        static 
ubuttoniCurWpn;
        
ubutton get_uc(uc_handleUC_Buttons);
        
iCurWpn g_iCurWeapon[id];
        
        if(
ubutton IN_ATTACK && ((iCurWpn == CSW_KNIFE) || (iCurWpn == CSW_XM1014)))
        {
            
ubutton &= ~IN_ATTACK;
            
            
            
set_uc(uc_handleUC_Buttonsubutton);
                
            return 
FMRES_SUPERCEDE;
        }
    }
    
    return 
FMRES_IGNORED;
}

public 
fwd_UpdateClientData_Postidsendweaponscd_handle )
{
    if(!
g_bGameOn || !g_bIsAlive[id] || g_iCurWeapon[id] != CSW_XM1014)
        return 
FMRES_IGNORED;

    
set_cd(cd_handleCD_ID0);        
    
    return 
FMRES_HANDLED;
}

public 
fwd_Player_PreThink(id)
{
    if(!
g_bGameOn || !g_bIsAlive[id] || !g_bIsHider[id])
        return 
FMRES_IGNORED;
        
    
set_pev(idpev_flTimeStepSound999);
    if(
g_iDoublejump[id] == && pev(idpev_flags) & FL_ONGROUND)
        
g_iDoublejump[id] = 0;
        
    return 
FMRES_IGNORED;
}

public 
fwd_Player_PostThink(id)
{
    if(!
g_bGameOn || !g_bIsAlive[id] || !g_bIsHider[id])
        return 
FMRES_IGNORED;
        
    if(
g_iDoublejump[id] == 1)
    {
        new 
Float:velocity[3];
        
pev(idpev_velocityvelocity);
        
velocity[2] = 285.0;
        
set_pev(idpev_velocityvelocity);
        
g_iDoublejump[id] = 2;
    }    
        
    return 
FMRES_IGNORED;
}

public 
fwd_Spawn(ent)
{
    if(!
pev_valid(ent) || ent == g_iHostage)
    {
        return 
FMRES_IGNORED;
    }
    
    new 
szClass[32];
    
pev(entpev_classnameszClass31);
    
    for(new 
0sizeof g_sRemoveEntitiesi++)
    {
        if(
equal(szClassg_sRemoveEntities[i]))
        {
            
engfunc(EngFunc_RemoveEntityent);
            return 
FMRES_SUPERCEDE;
        }
    }
    
    return 
FMRES_IGNORED;
}

public 
fwd_ClientKill(id)
{
    if(!
g_bGameOn)
        return 
FMRES_IGNORED;
        
    
ph_print(id"You are not allowed to kill urself !");
    
    return 
FMRES_SUPERCEDE;
}

public 
show_hud(id,flag)
{
    if(!
g_bGameOn)
        return;
        
    static 
hider_counthunter_countcolor[3];
    
get_player_count(hider_counthunter_count);
    
    for(new 
0gMaxPlayersi++)
    {
        if(!
g_bIsAlive[i])
            continue;
            
        if(
g_bIsHider[i])
            
color = { 2502050 };
        else
        {
            
color = { 30100255 };
            
set_hudmessage02000, -1.0, -1.006.02.10.00.0, -);
            
ShowSyncHudMsgig_hudmsg[HUD_CROSSHAIR], "<+>" );
        }
            
        
set_hudmessage(255255255, -1.00.020_2.1__, -1);
        
ShowSyncHudMsg(ig_hudmsg[HUD_BOARD], "Saklananlar: %i^nArayanlar: %i"hider_counthunter_count);
    }
}

get_player_count(&hider_count, &hunter_count 0)
{
    static 
iHideriHunterid;
    
iHider iHunter 0;
    
    for(
id 1id <= gMaxPlayersid++)
    {
        if(!
g_bIsAlive[id])
            continue;
            
        if(
g_bIsHider[id]) iHider++;
        else 
iHunter++;
    }
    
    
hider_count iHiderhunter_count iHunter;
}

public 
task_show_clip(taskid)
{
    new 
id taskid TASK_SCLIP;
    
    if(
g_iCurWeapon[id] == CSW_KNIFE)
        return;
    
    
set_dhudmessage25025000.850.9606.00.20.00.0 );
}

public 
fw_ent_think(iEnt)
{
    if(!
pev_valid(iEnt))
        return;
        
    static 
szClassname[32];
    
pev(iEntpev_classnameszClassname31);
    if(
equal(szClassnameg_szPlayerCamera))
        
camera_think(iEnt);
}

public 
fw_spawn_player_post(id)
{
    if(!
g_bGameOn || !is_user_alive(id) || !cs_get_user_team(id))
        return;
        
    
g_bIsAlive[id] = true;
        
    
g_bIsHider[id] = cs_get_user_team(id) == CS_TEAM_T true false;
    
    
message_begin(MSG_ONEgMsgHideWeapon_id);
    
write_byte(HIDE_HUD);
    
message_end();
    
    if(
g_bIsHider[id])
    {
        
strip_user_weapons(id);
        
set_playerview(id);
        
set_pev(idpev_health125.0);
        
set_visible(id0);
        
        
//enable prop
        
static iPropszEntModel[64], rand_mdl;
        
iProp g_iProp[id]
        
set_visible(iProp);
        
rand_mdl random_num(0ArraySize(g_sPropsModel) - 1);
        
ArrayGetString(g_sPropsModelrand_mdlszEntModelcharsmax(szEntModel));
        
format(szEntModelcharsmax(szEntModel), "models/props/%s.mdl"szEntModel);
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_task(1.0,"ayarlar",id)
    }
}

public 
ayarlar(id)
{        
    if(!
g_bInHideTime)
    {
        
ph_print(id"^3 %L"LANG_PLAYER"C_CHOOSE_CLASS2");
        return 
PLUGIN_HANDLED;
    }
    else if(!
g_bIsHider[id])
    {
        
ph_print(id"^3 Sadece Saklananlar Esya Secebilir");
        return 
PLUGIN_HANDLED;
    }
    else
    {

        new 
menu menu_create("\yEsya Menusu^n\wMenuyu Acmak icin /esya Yazin","ayarlar2")
        
menu_additem(menu,"\wKoltuk \y| \r30 HP","1",0
        
menu_additem(menu,"\wSandalye \y| \r20 HP","2",0
        
menu_additem(menu,"\wBilgisayar \y| \r40 HP","3",0
        
menu_additem(menu,"\wVodka Sisesi \y| \r1 HP","4",0)
        
menu_additem(menu,"\wAgac \y| \r80 HP","5",0
        
menu_additem(menu,"\wPipetli Bardak \y| \r1 HP","6",0)
        
menu_additem(menu,"\wGardrop \y| \r100 HP","7",0)
        
menu_additem(menu,"\wTas \y| \r40 HP","8",0)
        
menu_additem(menu,"\wVaril \y| \r70 HP","9",0)
        
menu_additem(menu,"\wKlozet \y| \r50 HP","10",0)
        
menu_additem(menu,"\wBira Sisesi \y| \r1 HP","11",0)
        
menu_additem(menu,"\wBenzin Sisesi \y| \r10 HP","12",0)
        
menu_additem(menu,"\wSu Kovasi \y| \r10 HP","13",0)
        
menu_additem(menu,"\wTrafik Konisi \y| \r10 HP","14",0)
        
menu_additem(menu,"\wKabine \y| \r100 HP","15",0)
        
menu_additem(menu,"\wEl Arabasi \y| \r80 HP","16",0)
        
menu_additem(menu,"\wKarton Kutular \y| \r70 HP","17",0)
        
menu_additem(menu,"\wOfis Koltugu \y| \r40 HP","18",0)
        
menu_additem(menu,"\wTabure \y| \r30 HP","19",0)
        
menu_additem(menu,"\wKahve Makinesi \y| \r5 HP","20",0)
        
menu_additem(menu,"\wKoltuk 2 \y| \r30 HP","21",0)
        
menu_additem(menu,"\wInek \y| \r100 HP","22",0)
        
menu_additem(menu,"\wKutu \y| \r30 HP","23",0)
        
menu_additem(menu,"\wRadyo \y| \r20 HP","24",0)
        
menu_additem(menu,"\wTekerlek \y| \r30 HP","25",0)
        
menu_additem(menu,"\wOfis Masasi \y| \r50 HP","26",0)
        
menu_additem(menu,"\wLavabo \y| \r50 HP","27",0)
        
menu_additem(menu,"\wYangin Muslugu \y| \r30 HP","28",0)
        
menu_additem(menu,"\wYangin Sondurucu \y| \r30 HP","29",0)
        
menu_additem(menu,"\wPiyano \y| \r60 HP","30",0)

        
menu_setprop(menu,MPROP_BACKNAME,"Geri")
        
menu_setprop(menu,MPROP_NEXTNAME,"Ileri")
        
menu_setprop(menuMPROP_EXITNAME"Menuyu Kapat");
        
menu_display(idmenu0);
    }
    return 
PLUGIN_HANDLED

}
public 
ayarlar2(id,menu,item)
{
    if(!
g_bInHideTime)
    {
        
ph_print(id"^3 %L"LANG_PLAYER"C_CHOOSE_CLASS2");
        return 
PLUGIN_HANDLED;
    }
    else if(!
g_bIsHider[id])
    {
        
ph_print(id"^3 Sadece Saklananlar Esya Secebilir");
        return 
PLUGIN_HANDLED;
    }
    if(
item==MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    new 
data[6], iName[64]
    new 
accesscallback
    menu_item_getinfo
(menuitemaccessdata,5iName63callback);
    new 
key str_to_num(data)
    switch(
key)
    {
        case 
: {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/3dm_sofa.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id30)
        }
        case 
: {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/bchair01.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id20)
        }
        case 
: {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/3dm_pc3.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id40)
        }
        case 
: {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/absolut.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id1)
        }
        case 
: {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/ae_smallbush.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id80)
        }
        case 
: {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/bsoda.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id1)
        }
        case 
: {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/armoire.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id100)
        }
        case 
: {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/babrock.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id40)
        }
        case 
: {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/barrel_brown.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id70)
        }
        case 
10 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/toilet.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id50)
        }
        case 
11 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/beer_old_nazgul.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id1)
        }
        case 
12 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/benzinkanister.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id10)
        }
        case 
13 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/bucket.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id10)
        }
        case 
14 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/buzzer_pa_kolpak.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id10)
        }
        case 
15 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/cabinet.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id100)
        }
        case 
16 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/cart.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id80)
        }
        case 
17 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/cartons.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id70)
        }
        case 
18 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/chair_office-leather.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id40)
        }
        case 
19 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/chair_stool.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id30)
        }
        case 
20 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/coffee_maker.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id5)
        }
        case 
21 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/couch3.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id30)
        }
        case 
22 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/cow.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id100)
        }
        case 
23 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/cratedownc2.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id30)
        }
        case 
24 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/cvpt_radio.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id20)
        }
        case 
25 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/dead_tire.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id30)
        }
        case 
26 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/desk_office-small.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id50)
        }
        case 
27 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/dfountain.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id50)
        }
        case 
28 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/fire_hydrant.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id30)
        }
        case 
29 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/fireextinguisher.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id30)
        }
        case 
30 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/flo_piano.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id60)
        }
    }
    return 
PLUGIN_HANDLED
}
public 
fw_TakeDamage(victiminflictorattackerFloat:damagedamage_bits)
{    
    if(
victim == attacker || !is_player_connected(attacker))
        return 
HAM_IGNORED;
        
    if(
g_iCurWeapon[attacker] == CSW_SCOUT)
    {
        new 
mutil_dmg g_iSniperDmg[attacker];
        
        if(
mutil_dmg == 5)
            
ExecuteHamB(Ham_Killedvictimattacker0);
        else 
        {
            
damage mutil_dmg*20.0;
            
SetHamParamFloat(4damage);
        }
        
        
g_iSniperDmg[attacker] = 0;
    }

    return 
HAM_IGNORED;
}

public 
fw_TakeDamage_post(victim)
{
    if(!
g_bIsHider[victim])
        return;
        
    
set_pdata_float(victimOFFSET_PAINSHOCK1.05//zp code
}

public 
fw_killed_player(victimkillershouldgib)
{
    
g_bIsAlive[victim] = false;
    
    if(
g_bIsHider[victim])
    {
        
set_visible(g_iProp[victim], 0);
            
    
//    set_playerview(id, 0);
        
set_visible(victim);
        
        if(!
g_bInHideTime)
        {
            new 
Float:fTime get_gametime() - g_fGameStartTime;
            
set_pev(victimpev_fragspev(victimpev_frags)+fTime);
            
ph_print(victim"^1 Kazandin^3 %i^4 frag(s)^1 for surviving !"floatround(fTime));
            
g_fFrags[victim] = fTime;
        }
        
        if(
is_player_alive(killer) && !g_bIsHider[killer])
        {
            new 
Float:fCvarSpeedBoost get_pcvar_float(g_CvarSpeedBoost);
            if(
fCvarSpeedBoost && !g_bHasSpeedBoost[killer])
                
give_speedboost(killerfCvarSpeedBoost);
            
            
give_frags(killervictim);
        }

        
// Ölen Saklananları CT yapar
        
new players[32],inum;
        
get_players(playersinum,"e","TERRORIST")
        if(
inum != 1)
        {
        
cs_set_user_team(victim,CS_TEAM_CT)
        
set_task(1.0,"revle",victim)
        
saklanan[victim] = true
        
}


    }
    else
    {
        if(
task_exists(victim+TASK_HEAL))
            
remove_task(victim+TASK_HEAL);
            
        
remove_task(victim+TASK_SCLIP);
    }
}

public 
revle(id)
{
    
ExecuteHamB(Ham_CS_RoundRespawnid)
}


public 
fw_WeaponAttack(iWpn)
{
    if(!
g_bGameOn)
        return;
        
    static 
idhealth;
    
id get_pdata_cbase(iWpn414);
    
health get_user_health(id) - get_pcvar_num(g_CvarHpLostAmt);
    
    if(
health 0)
        
set_pev(idpev_healthfloat(health));
    else 
    {
        
user_kill(id);
        return;
    }
    
    if(!
g_bInHideTime && pev(idpev_button) & IN_JUMP)
    {
        new 
Float:velocity[3];
    
//    pev(id, pev_velocity, velocity);
        
velocity_by_aim(id50velocity)
        
velocity[2] += 450.0;
        
set_pev(idpev_velocityvelocity);
    }
    
    if(
g_iCurWeapon[id] == CSW_SCOUT && g_iZoomPower[id] != 0//for sniper
    
{
        
g_iSniperDmg[id] = g_iZoomPower[id];
        
        new 
mutil_dmg g_iSniperDmg[id];
        if(
mutil_dmg == 5)
            
client_print(idprint_center"Bir atis Bir Olum");
        else 
client_print(idprint_center"Zarar: %i"mutil_dmg*20);
        
        
g_iZoomPower[id] = 0;
    }
}
give_speedboost(idFloat:fSpeedAdd)
{
    
g_bHasSpeedBoost[id] = true;
    
manage_icon(idICON_SPEEDBOOST);
    
set_pev(idpev_maxspeedpev(idpev_maxspeed)+fSpeedAdd);
    
ph_print(id"^1 %L"LANG_PLAYER"C_GIVE_SPEEDBOOST");
}

give_frags(idvictim)
{
    new 
Float:fVicFrags g_fFrags[victim];
    if(
fVicFrags != 0.0)
        
set_pev(idpev_fragspev(idpev_frags)+fVicFrags);
}

public 
event_curweapon(id)
{
    if(!
g_bGameOn)
        return 
PLUGIN_CONTINUE;
        
    
message_begin(MSG_ONEgMsgHideWeapon_id);
    
write_byte(HIDE_HUD);
    
message_end();
        
    if(
g_bIsHider[id])
    {
        if(!
g_bRoundEnd)
        {
            
fm_strip_user_weapons(id);
            
set_pev(idpev_maxspeedget_pcvar_float(g_CvarHiderspeed));
        }
    }
    else
    {
        new 
Float:fCvarSpeedBoost get_pcvar_float(g_CvarSpeedBoost);
        
        if(
g_bInHideTime)
        
set_pev(idpev_maxspeed1.0);
        else if(
fCvarSpeedBoost && g_bHasSpeedBoost[id])
        
set_pev(idpev_maxspeedpev(idpev_maxspeed)+fCvarSpeedBoost);
    }
    
message_begin(MSG_ONEgMsgCrossHair, {0,0,0}, id);
    
write_byte(1);
    
message_end();
    return 
PLUGIN_CONTINUE;
}

public 
Event_SetFOV(id)
{
    if(
read_data(1) >= 90//zoom out
    
{
        if(
task_exists(id+TASK_ZOOM))
        {
            
g_iZoomPower[id] = 0;
            
remove_task(id+TASK_ZOOM);
        }
        
        return;
    }
        
    if(!
task_exists(id+TASK_ZOOM))
    {
        
task_zoom_power(id+TASK_ZOOM);
        
set_task(1.0"task_zoom_power"id+TASK_ZOOM__g_sB);
    }
}

public 
task_zoom_power(taskid)
{
    static 
idpowercolor
    
id taskid TASK_ZOOM;
    
power g_iZoomPower[id];
    
color 50 power 30;
    
    
set_hudmessage(colorcolor0, -1.00.75power == 0_1.1__, -1);
    
ShowSyncHudMsg(idg_hudmsg[HUD_ZOOM], "{%s%s}"g_bar[0][power], g_bar[1][power]);
    
    if(
power 5)
        
power++;
    
    
g_iZoomPower[id] = power;
}

public 
heal_hp(taskid)
{
    static 
id;
    
id taskid TASK_HEAL;
    
manage_icon(idICON_BUYZONE0);
    
set_pev(idpev_healthfloat(g_iClassHealth[g_iHunterClass[id]]))
    
ph_print(id"^1 %L"LANG_PLAYER"C_HEALED");
}

public 
EventNewRound()
{
    new 
players[32],inum;
    static 
Uid;
    
get_players(playersinum)
    for(new 
i;i<inum;i++) 
    {
        
Uid players[i]
        
saklanan[Uid] = false
    
}
}
public 
EventRoundStart()
{
    if(!
g_bGameOn)
        return;
        
    
g_bRoundEnd false;
    
    new 
time g_iHideTime;
    
    for(new 
0gMaxPlayersi++)
    {
        if(!
g_bIsConnected[i] || g_bIsHider[i])
            continue;
            
        if(
task_exists(i+TASK_HEAL))
            
remove_task(i+TASK_HEAL);
            
        if(
g_bCameraOn[i])
            
set_playerview(i0);
            
        
g_bHasSpeedBoost[i] = false;
        
saklanan[i] = false
            
    
/*    set_pev(i, pev_maxspeed, 1.0);
        
        message_begin(MSG_ONE, gMsgScreenFade, {0, 0, 0}, i);
        write_short(floatround(4096.0 * 1.5, floatround_round));
        write_short(floatround(4096.0 * 1.5, floatround_round));
        write_short(4096);
        write_byte(0);
        write_byte(0);
        write_byte(0);
        write_byte(200);
        message_end();*/
    
}
    
    
g_bInHideTime true
    
    g_iCountdownTime 
time+1;
//    set_task(time, "end_hide_time", TASK_HIDETIME);
    
count_down();
    
set_task(1.0"count_down"TASK_HIDETIME__g_sAg_iCountdownTime);
}

public 
count_down()
{
    
g_iCountdownTime--
    
    for(new 
0gMaxPlayersi++)
    {
        if(!
g_bIsAlive[i] || g_bIsHider[i])
            continue;
            
        
set_pev(ipev_maxspeed1.0);
        
        
message_begin(MSG_ONEgMsgScreenFade, {000}, i);
        
write_short(floatround(4096.0 1.5floatround_round));
        
write_short(floatround(4096.0 1.5floatround_round));
        
write_short(4096);
        
write_byte(0);
        
write_byte(0);
        
write_byte(0);
        
write_byte(150);
        
message_end();
    }
    
    if(
g_iCountdownTime <= 5)
    {
        
client_cmd(0"spk %s"g_CountdownSound[g_iCountdownTime]);
        
        if(!
g_iCountdownTime)
        {
            
end_hide_time();
            return;
        }
    }
        
    
set_dhudmessage02000, -1.00.7506.01.00.00.0 );
    
show_dhudmessage0"Saklanma Zamani: %i"g_iCountdownTime );
}

end_hide_time()
{
    for(new 
0gMaxPlayersi++)
    {
        if(!
g_bIsAlive[i] || g_bIsHider[i])
            continue;
            
        
set_pev(ipev_maxspeed250.0);
        
        
message_begin(MSG_ONEgMsgScreenFade, {000}, i);
        
write_short(0);
        
write_short(0);
        
write_short(4096);
        
write_byte(0);
        
write_byte(0);
        
write_byte(0);
        
write_byte(150);
        
message_end();
    }
    
    
g_fGameStartTime get_gametime();
    
client_cmd(0"spk %s"g_CountdownSound[0]);
    
    
set_dhudmessage02000, -1.00.7506.03.00.00.0 );
    
show_dhudmessage0"Sure Bitti!" );
    
    
g_bInHideTime false
}

public 
RestartRound()
{
    
EventRoundEnd();
}

public 
EventRoundEnd()
{
    
g_bRoundEnd true;
    if(
task_exists(TASK_HIDETIME))
        
remove_task(TASK_HIDETIME);
        
    static 
Float:fTimeiHiderCountwinmsg[32];
    
get_player_count(iHiderCount)
    
    if(
iHiderCount//hider win
    
{
        
formatex(winmsg31"%L"LANG_PLAYER"HIDER_WIN");
        
        for(new 
0gMaxPlayersi++)
        {
            if(!
g_bIsConnected[i])
                continue;
                
        
//    add_delay_switch_team(i);
            
tekrarla(i)
            
set_dhudmessage(2502050, -1.00.250_4.0);
            
show_dhudmessage(iwinmsg);
        }
    }
    else 
    {
        
formatex(winmsg31"%L"LANG_PLAYER"SEEKER_WIN_SWITCH");
        
        for(new 
0gMaxPlayersi++)
        {
            if(!
g_bIsConnected[i])
                continue;
                
            
g_iHunterClass[i] = 0;
            
add_delay_switch_team(i);
            
set_dhudmessage(20100250, -1.00.250_4.0);
            
show_dhudmessage(iwinmsg);
        }
    }
    
    for(new 
0gMaxPlayersi++)
    {
        if(!
g_bIsAlive[i])
            continue;
        
        if(
g_bIsHider[i])
        {
            
set_visible(g_iProp[i], 0);
            
set_visible(i);
            
            if(!
g_bInHideTime)
            {
                
fTime get_gametime() - g_fGameStartTime;
                
set_pev(ipev_fragspev(ipev_frags)+fTime);
                
ph_print(i"^1 Kazandin^3 %i^4 frag(s)^1 for surviving !"floatround(fTime));
            }
            
g_fFrags[i] = 0.0;
        }
        else 
        {
            
manage_icon(iICON_BUYZONE0);
            
manage_icon(iICON_SPEEDBOOST0);
        }
    }
}

public 
Event_BuyZone(id
{
/*    if(cs_get_user_team(id) == CS_TEAM_T)
    {
        if(buyzone)
        {
            const OFFSET_BUYZONE = 235 //268
            set_pdata_int(id, OFFSET_BUYZONE, get_pdata_int(id, OFFSET_BUYZONE) & ~(1<<0));
            return PLUGIN_HANDLED;
        }
    }*/
    
if(g_bIsAlive[id] && !g_bIsHider[id] && !g_bRoundEnd && !g_bInHideTime)
    {
        new 
hp get_user_health(id);
        
        if(!
read_data(1))
        {
            if(
task_exists(id+TASK_HEAL))
            {
                
client_print(idprint_center"%L"LANG_PLAYER"STOP_HEAL");
                
manage_icon(idICON_BUYZONE0);
                
remove_task(id+TASK_HEAL);
                
manage_bar(id0)
                
ClearSyncHud(idg_hudmsg[HUD_OBJ])
            }
        }
        else if(
hp g_iClassHealth[g_iHunterClass[id]] && !task_exists(id+TASK_HEAL))
        {
            
client_print(idprint_center"%L"LANG_PLAYER"HEALING");
            new 
time get_pcvar_num(g_CvarHealtime);
            
set_task(float(time), "heal_hp"id+TASK_HEAL);
            
manage_icon(idICON_BUYZONE);
            
manage_bar(idtime)
            
set_hudmessage(2002000, -1.0, -1.006.0float(time), 0.00.0, -1);
            
ShowSyncHudMsg(idg_hudmsg[HUD_OBJ], "CAN DOLUYOR >>");
        }
    }
    
    return 
PLUGIN_CONTINUE;
}

public 
msg_textmsg(msgiddestid)
{
    if(!
g_bGameOn || get_msg_arg_int(1) != 4)
        return 
PLUGIN_CONTINUE;
    
    static 
txtmsg[25];
    
get_msg_arg_string(2txtmsg24);
    
    if(
equal(txtmsg[1], g_sMsgWins[0]) || equal(txtmsg[1], g_sMsgWins[1]) || equal(txtmsg[1], g_sMsgWins[2]))
    {
        
set_msg_arg_string(2g_sBlank);
    }
    else if(
equal(txtmsg[1], g_sCommandNotAvailable))
        return 
PLUGIN_HANDLED;
        
    return 
PLUGIN_CONTINUE;
}


public 
tekrarla(id)
{
    if(
saklanan[id])
        
cs_set_user_team(id,CS_TEAM_T)
}

add_delay_switch_team(id)
{
    new const 
szTaskChangeTeam[32] = "change_team";
    switch(
id)
    {
        case 
1..7set_task0.1szTaskChangeTeamid );
        case 
8..15set_task0.5szTaskChangeTeamid );
        case 
16..23set_task1.0szTaskChangeTeamid );
        case 
24..32set_task1.5szTaskChangeTeamid );
    }
}

public 
change_team(id)
{
    if(!
is_user_bot(id))
    {
    
cs_set_user_team(idg_bIsHider[id] ? CS_TEAM_CT CS_TEAM_T);
    
g_bIsHider[id] = (g_bIsHider[id] ? false true);

    if(
saklanan[id])
        
cs_set_user_team(id,CS_TEAM_CT)
    }
}

public 
event_touch_weapon(iEntid)
    return 
HAM_SUPERCEDE;
    
public 
msg_weaponpickup(msgiddestid)
    return 
PLUGIN_HANDLED;

public 
msg_ammopickup(msgiddestid)
    return 
PLUGIN_HANDLED;
    
ph_print(const id, const message[], any:...) 
{
    new 
szMessage[192];
    
vformat(szMessage191message3);
    
    
replace_all(szMessage191"\g""^4"); // Green Color
    
replace_all(szMessage191"\y""^1"); // Default Color
    
replace_all(szMessage191"\t""^3"); // Team Color
   
    
message_begin(id MSG_ONE_UNRELIABLE MSG_BROADCASTgMsgSayText_id);
    
write_byte(id id 1);
    
write_string(szMessage);
    
message_end();
}

stock bacon_give_weapon(indexweapon[])
{
    if(!
equal(weapon"weapon_"7))
        return 
0;

    new 
iEnt engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocStringweapon));
    if(!
pev_valid(iEnt))
        return 
0;

    new 
Float:origin[3];
    
pev(indexpev_originorigin);
    
set_pev(iEntpev_originorigin);
    
set_pev(iEntpev_spawnflagspev(iEntpev_spawnflags) | SF_NORESPAWN);
    
dllfunc(DLLFunc_SpawniEnt);

    new 
save pev(iEntpev_solid);
    
dllfunc(DLLFunc_TouchiEntindex);
    if(
pev(iEntpev_solid) != save)
        return 
iEnt;

    
engfunc(EngFunc_RemoveEntityiEnt);

    return -
1;
}

stock fm_strip_user_weapons(index
{
    new 
iEnt engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"player_weaponstrip"));
    if (!
pev_valid(iEnt))
        return 
0;

    
dllfunc(DLLFunc_SpawniEnt);
    
dllfunc(DLLFunc_UseiEntindex);
    
engfunc(EngFunc_RemoveEntityiEnt);

    return 
1;
}

stock fm_find_ent_by_owner(index, const classname[], ownerjghgtype 0)
{
    new 
strtype[11] = "classname"iEnt index
    
switch (jghgtype
    {
        case 
1strtype "target"
        
case 2strtype "targetname"
    
}
    
    while ((
iEnt engfunc(EngFunc_FindEntityByStringiEntstrtypeclassname)) && pev(iEntpev_owner) != owner) {}
    
    return 
iEnt
}

get_new_team()
{
    new 
iTCount g_iPlayers[TEAM_T];
    new 
iCTCount g_iPlayers[TEAM_CT];
    if(
iTCount iCTCount)
        return 
TEAM_T;
    else if(
iTCount iCTCount)
        return 
TEAM_CT;
    else
        return 
random_num(TEAM_TTEAM_CT);
}

set_playerview(idmode 1)
{
    if(
mode)
    {
        new 
iEnt g_iCamera[id];
        
engfunc(EngFunc_SetViewidiEnt);
        
g_bCameraOn[id] = true;
    
//    set_pev(iEnt, pev_nextthink, get_gametime()); 
        
camera_think(iEnt);
    }
    else 
//disable camera
    
{
        
g_bCameraOn[id] = false;
        
engfunc(EngFunc_SetViewidid);
    }
}
/*
make_DeathMsg(killer, victim, headshot, const weapon[])
{
    message_begin(MSG_ALL, gMsgDeathmsg, {0,0,0}, 0);
    write_byte(killer);
    write_byte(victim);
    write_byte(headshot);
    write_string(weapon);
    message_end();

    return 1;
}

make_silentkill(id)
{
    static msgid, msgblock;
    msgid = gMsgDeathmsg;
    msgblock = get_msg_block(msgid);
    set_msg_block(msgid, BLOCK_ONCE);    
    user_kill(id, 1);
    set_msg_block(msgid, msgblock);

    return 1;
}*/

manage_icon(idicon_kindstatus 1)
{
    
message_begin(MSG_ONEgMsgStatusIcon_id);
    
write_byte(status); // status (0=hide, 1=show, 2=flash)
    
if(icon_kindwrite_string("plus"); // sprite name
    
else write_string("dmg_rad");
    
write_byte(0); // red
    
write_byte(200); // green
    
write_byte(0); // blue
    
message_end();
}

manage_bar(idtime)
{
    
message_begin(MSG_ONE_UNRELIABLEgMsgBarTime_id)
    
write_short(time)
    
message_end()
}

set_visible(iEntVISIBLE 1)
    
set_pev(iEntpev_effectsVISIBLE pev(iEntpev_effects) & ~EF_NODRAW pev(iEntpev_effects) | EF_NODRAW);

stock ColorChat(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
    
    
replace_all(msg190"!g""^x04"); // Green Color
    
replace_all(msg190"!n""^x01"); // Default Color
    
replace_all(msg190"!t""^x03"); // Team Color
    
    
client_print_color(ididmsg);




Pouex(Görkem Bacısısikişenoğlu)'in anasını götünden sikeyim.
Emirhan SkürtSkürt seninde ananı sikicem sıradasın.
Dediğim gibi ferudun ve berke lafım yok.
forum.csduragi.com
#28
@Aconyonn HATA!
Eklenti HataliGülmekten Ölüyorumerleme Hatasi! Sayfayi YENILE, Dosyayi TEKRAR YUKLE!
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2013 ITB CompuPhase, AMX Mod X Team

95.173.174.8/1568552080/1568552080_esyasaklambac.sma(397) : warning 209: function "cmd_chooseteam" should return a value
95.173.174.8/1568552080/1568552080_esyasaklambac.sma(670) : error 017: undefined symbol "set_dhudmessage"
95.173.174.8/1568552080/1568552080_esyasaklambac.sma(1341) : error 017: undefined symbol "set_dhudmessage"
95.173.174.8/1568552080/1568552080_esyasaklambac.sma(1342) : error 017: undefined symbol "show_dhudmessage"
95.173.174.8/1568552080/1568552080_esyasaklambac.sma(1368) : error 017: undefined symbol "set_dhudmessage"
95.173.174.8/1568552080/1568552080_esyasaklambac.sma(1369) : error 017: undefined symbol "show_dhudmessage"
95.173.174.8/1568552080/1568552080_esyasaklambac.sma(1399) : error 017: undefined symbol "set_dhudmessage"
95.173.174.8/1568552080/1568552080_esyasaklambac.sma(1400) : error 017: undefined symbol "show_dhudmessage"
95.173.174.8/1568552080/1568552080_esyasaklambac.sma(1414) : error 017: undefined symbol "set_dhudmessage"
95.173.174.8/1568552080/1568552080_esyasaklambac.sma(1415) : error 017: undefined symbol "show_dhudmessage"
95.173.174.8/1568552080/1568552080_esyasaklambac.sma(1621) : warning 209: function "get_new_team" should return a value

9 Errors.
Could not locate output file 95.173.174.8/1568552080/1568552080_esyasaklambac.amx (compile failed


[Resim: https://i.hizliresim.com/00Wy09.jpg]
#29
Şimdi yüklerken sorun çıkmayacaktır.
PHP Kod:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <cstrike>
#include <hamsandwich>
#if AMXX_VERSION_NUM < 183
#include <dhudmessage>
#endif
#if AMXX_VERSION_NUM > 183
#include <dhudmessage>
#endif
#include <fun>

new const VERSION[] = "1.5";


new const 
g_CountdownSound[][] =
{
    
"fvox/time_is_now.wav",
    
"fvox/one.wav",
    
"fvox/two.wav",
    
"fvox/three.wav",
    
"fvox/four.wav",
    
"fvox/five.wav"
};
new 
bool:saklanan[33]

#define is_player_alive(%1) (1 <= %1 <= gMaxPlayers && g_bIsAlive[%1])
#define is_player_connected(%1) (1 <= %1 <= gMaxPlayers && g_bIsConnected[%1])
#define remove_prop(%1) (engfunc(EngFunc_RemoveEntity, g_iProp[%1]), g_iProp[%1]=0)

#define VectorAdd(%1,%2,%3) (%3[0] = %1[0] + %2[0], %3[1] = %1[1] + %2[1], %3[2] = %1[2] + %2[2])
#define VectorScale(%1,%2,%3) (%3[0] = %2 * %1[0], %3[1] = %2 * %1[1], %3[2] = %2 * %1[2])

new const g_sB[] = "b";
new const 
g_sA[] = "a";
new const 
g_sBE[] = "be";
new const 
g_sPlayer[] = "player";
new const 
g_sInfoTarget[] = "info_target";
//new const g_sClassName[] = "classname"
new const g_sBlank[] = "";
new const 
g_sCommandNotAvailable[] = "Command_Not_Available";
new const 
g_sMsgWins[][] =
{
    
"Terrorists_Win",
    
"Hostages_Not_Rescued",
    
"CTs_Win"
};

const 
OFFSET_PAINSHOCK 108


const HIDE_HUD = ( << );
//const HIDE_NONE = ( 1 << 7 );

enum (+= 200) { TASK_HIDETIME 9999TASK_HEALTASK_ZOOMTASK_BURNTASK_SCLIP };


new const 
g_szSeekerWpns[][] = 
{
    
"",
    
"weapon_m249",
    
"weapon_xm1014",
    
"weapon_scout",
    
"weapon_knife"
};

enum HUD_BOARDHUD_ZOOMHUD_CROSSHAIRHUD_OBJ };
enum ICON_SPEEDBOOSTICON_BUYZONE };

new const 
g_iClassHealth[] = { -1200170150 };

new const 
g_szPlayerCamera[] = "Player_camera";
new const 
g_szHiderProp[] = "Hider_Prop";
new const 
g_bar[][] = { "|||||""_____" };
new const 
g_teamnum[][] = { "0""1""2""3" };
new const 
g_classnum[][] = { "1""2""3""4" };

enum TEAM_T 1TEAM_CT };

new const 
g_cTeamChars[] = { 'U''T''C''S' };
new const 
g_cmdTeam[][] = { "jointeam""chooseteam""joinclass" };

new const 
g_weapon_entity[][] =
{
    
"weaponbox",
    
"armoury_entity",
    
"weapon_shield"
};

new const 
g_sBuyCommands[][] =  

    
"buy""buyequip""usp""glock""deagle""p228""elites""fn57""m3""xm1014""mp5""tmp""p90""mac10""ump45""ak47",  
    
"galil""famas""sg552""m4a1""aug""scout""awp""g3sg1""sg550""m249""vest""vesthelm""flash""hegren"
    
"sgren""defuser""nvgs""shield""primammo""secammo""km45""9x19mm""nighthawk""228compact""12gauge"
    
"autoshotgun""smg""mp""c90""cv47""defender""clarion""krieg552""bullpup""magnum""d3au1""krieg550"
    
"buyammo1""buyammo2""cl_autobuy""cl_rebuy""cl_setautobuy""cl_setrebuy"
};

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

new 
bool:g_bGameOn truebool:g_bInHideTime;
new Array:
g_sPropsModel;
new 
g_iProp[33], g_iCamera[33], g_iHunterClass[33], bool:g_bCameraOn[33];
new 
bool:g_bIsHider[33], bool:g_bIsAlive[33], bool:g_bIsConnected[33];
new 
g_CvarBlockteamg_CvarHidetimeg_CvarHealtimeg_CvarHpLostAmt,
    
g_CvarHiderspeedg_CvarSpeedBoost
new gMaxPlayersgMsgStatusIcongMsgSayTextgMsgHideWeapon,
    
gMsgScreenFadegMsgCrossHairgMsgBarTimeg_hudmsg[4];
new 
g_iTeam[33], g_iPlayers[5];
new 
bool:g_bRoundEndg_iDoublejump[33], g_iCurWeapon[33]
new 
g_iCountdownTimeg_bHasSpeedBoost[33];
new 
g_iZoomPower[33], g_iSniperDmg[33];
new 
Float:g_fGameStartTimeFloat:g_fFrags[33];
new 
g_iHostageg_iHideTime

public plugin_init() 
{
    if(!
g_bGameOn)
        return;
        
    
register_dictionary("csprophunt.txt");
    
    
RegisterHam(Ham_Spawng_sPlayer"fw_spawn_player_post"1);
    
RegisterHam(Ham_TakeDamageg_sPlayer"fw_TakeDamage");
    
RegisterHam(Ham_TakeDamageg_sPlayer"fw_TakeDamage_post"1);
    
RegisterHam(Ham_Killed"player""fw_killed_player");
    
    new 
sEventTouchWpn[] = "event_touch_weapon";
    for(new 
i3i++)
        
RegisterHam(Ham_Touchg_weapon_entity[i], sEventTouchWpn);
    
    
RegisterHam(Ham_Thinkg_sInfoTarget"fw_ent_think");
    
RegisterHam(Ham_Weapon_PrimaryAttackg_szSeekerWpns[1], "fw_WeaponAttack");
    
RegisterHam(Ham_Weapon_PrimaryAttackg_szSeekerWpns[3], "fw_WeaponAttack");
    
RegisterHam(Ham_Weapon_SecondaryAttackg_szSeekerWpns[4], "fw_WeaponAttack");
    
    
register_event("TeamInfo""event_TeamInfo"g_sA);
    
register_event("CurWeapon""event_curweapon"g_sBE"1=1");
    
register_event("SetFOV""Event_SetFOV""be")
//    register_event("HLTV", "EventNewRound", g_sA, "1=0", "2=0" );
    
register_event("HLTV""EventNewRound""a""1=0""2=0")
    
register_logevent("EventRoundStart"2"1=Round_Start");
    
register_logevent("EventRoundEnd"2"1=Round_End" );
    
register_event("TextMsg""RestartRound"g_sA"2&#Game_C""2&#Game_w");
//    register_event("DeathMsg", "eventDeathMsg", g_sA, "2!0");
    
register_event("StatusIcon""Event_BuyZone"g_sB"2=buyzone");
    
//    register_message(get_user_msgid("StatusIcon"), "msgStatusIcon");
    
register_message(get_user_msgid("TextMsg"), "msg_textmsg");
    
register_message(get_user_msgid("WeapPickup"), "msg_weaponpickup");
    
register_message(get_user_msgid("AmmoPickup"), "msg_ammopickup");
    
    
register_forward(FM_GetGameDescription"fwd_GameDescription");
    
register_forward(FM_CmdStart"fwd_CmdStart");
    
register_forward(FM_UpdateClientData"fwd_UpdateClientData_Post"1);
    
register_forward(FM_PlayerPreThink"fwd_Player_PreThink");
    
register_forward(FM_PlayerPostThink"fwd_Player_PostThink");
    
register_forward(FM_ClientKill"fwd_ClientKill");
    
    new 
sBuyHandle[] = "cmd_buy";
    for(new 
0sizeof g_sBuyCommandsi++) 
        
register_clcmd(g_sBuyCommands[i], sBuyHandle);
    
    
register_clcmd("drop""cmd_drop");
    for(new 
i2i++)
        
register_clcmd(g_cmdTeam[i], "cmd_chooseteam", -1g_sBlank);
    
register_clcmd("say /esya","ayarlar")
    
    for(new 
04i++)
        
g_hudmsg[i] = CreateHudSyncObj();
    
    
set_task(2.0"show_hud"___g_sB);
    
    
set_cvar_num("mp_playerid"1); //hunter won't see hider'name when aiming
    
    
gMaxPlayers get_maxplayers();
    
gMsgStatusIcon get_user_msgid("StatusIcon");
    
gMsgSayText get_user_msgid("SayText");
    
gMsgHideWeapon get_user_msgid("HideWeapon");
    
gMsgScreenFade get_user_msgid("ScreenFade");
    
gMsgCrossHair get_user_msgid("Crosshair");
    
gMsgBarTime get_user_msgid("BarTime")
//    gMsgDeathmsg = get_user_msgid("DeathMsg");
}

public 
plugin_precache()
{
    
register_plugin("CS PropHunt"VERSION"Ryokin");
    
register_cvar("ph_version"VERSIONFCVAR_SPONLY|FCVAR_SERVER);
    
set_cvar_string("ph_version"VERSION);
    
    
g_CvarBlockteam register_cvar("ph_block_jointeam""1");
    
g_CvarHidetime register_cvar("ph_hide_time""20");
    
g_CvarHealtime register_cvar("ph_healing_time""30");
    
g_CvarHpLostAmt register_cvar("ph_wpnfire_hp_amount""5"); //hp losing when wpn fire
    
g_CvarHiderspeed register_cvar("ph_hider_speed""280.0");
    
g_CvarSpeedBoost register_cvar("ph_speed_boost""15.0");
    
    
g_sPropsModel ArrayCreate(321);
    
    static 
cfgdir[32], mapname[32], filepath[100];
    
get_configsdir(cfgdircharsmax(cfgdir));
    
get_mapname(mapnamecharsmax(mapname));
    
format(mapnamecharsmax(mapname), "[%s]"mapname);
    
formatex(filepathcharsmax(filepath), "%s/cs_prophunt.ini"cfgdir);
    
    if(!
file_exists(filepath))
    {
        
server_print("WARNING: Can't find file %s"filepath);
        
g_bGameOn false;
        return;
    }
    
    static 
linedata[1024], key[64], value[960], buffer[100], bool:catch_mapbool:bHadCatchedMap false;

    new 
file fopen(filepath"rt");
    
    while(
file && !feof(file))
    {
        
fgets(filelinedatacharsmax(linedata));
        
        
replace(linedatacharsmax(linedata), "^n""");
        
        if(!
linedata[0] || linedata[0] == ';'
            continue;
            
        if(
linedata[0] == '[')
        {
            
strtok(linedatakeycharsmax(key), valuecharsmax(value));
            
trim(key);
            
trim(value);
            
            if(
equal(keymapname))
            {
                if(!
bHadCatchedMap
                    
bHadCatchedMap true//found map's name
                
catch_map true;
            }
            else 
catch_map false;
            
            continue;
        }
            
        if(!
catch_map)
            continue;
            
        
strtok(linedatakeycharsmax(key), valuecharsmax(value), '=');
        
        
trim(key)
        
trim(value)
        
        if(
equal(key"HIDE TIME"))
        {
            
g_iHideTime str_to_num(value);
            continue
        }
            
        
formatex(valuecharsmax(value), "%s"linedata);
        
        while(
value[0] != && value[10] != '=' && strtok(valuekeycharsmax(key), valuecharsmax(value), ','))
        {
            
trim(key);
            
trim(value);
                        
            
ArrayPushString(g_sPropsModelkey);
        }
    }
    if(
filefclose(file);
    
    if(!
bHadCatchedMap//can't find map in ini file
    
{
        
server_print("WARNING: Can't find map's name %s in cs_prophunt.ini"mapname);
        
g_bGameOn false;
        return;
    }
    
    if(!
g_iHideTime)
        
g_iHideTime get_pcvar_num(g_CvarHidetime);
    
    for(new 
0ArraySize(g_sPropsModel); i++)
    {
        
ArrayGetString(g_sPropsModelibuffercharsmax(buffer));
        
format(buffercharsmax(buffer), "models/props/%s.mdl"buffer);
        
engfunc(EngFunc_PrecacheModelbuffer);
    }
    
    for(new 
06i++)
        
precache_sound(g_CountdownSound[i]);
        
    
register_forward(FM_Spawn"fwd_Spawn");
    
    new 
iHostage engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"hostage_entity"));
    
    if(
iHostage)
    {
        
engfunc(EngFunc_SetOriginiHostageFloat:{0.00.0, -55000.0});
        
engfunc(EngFunc_SetSizeiHostageFloat:{-1.0, -1.0, -1.0}, Float:{1.01.01.0});
        
dllfunc(DLLFunc_SpawniHostage);
        
g_iHostage iHostage
    
}
}

public 
client_putinserver(id)
{
    
g_bIsConnected[id] = true;
    
    
//create camera
    
new iEnt engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocStringg_sInfoTarget));      
    
set_pev(iEntpev_classnameg_szPlayerCamera);
    
engfunc(EngFunc_SetModeliEnt"models/w_usp.mdl");
    
set_pev(iEntpev_solidSOLID_TRIGGER);
    
set_pev(iEntpev_movetypeMOVETYPE_FLY);
    
set_pev(iEntpev_ownerid);
    
set_pev(iEntpev_rendermodekRenderTransTexture);
    
set_pev(iEntpev_renderamt0.0);
    
g_iCamera[id] = iEnt;
    
    
//create prop
    
new iProp engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocStringg_sInfoTarget));
    
set_pev(iProppev_classnameg_szHiderProp);
//    set_pev(iProp, pev_movetype, MOVETYPE_TOSS);
    
set_pev(iProppev_ownerid);
    
set_visible(iProp0);
    
g_iProp[id] = iProp;
}

public 
client_disconnected(id)
{
    
g_bIsAlive[id] = false;
    
g_bIsConnected[id] = false;
    
g_iHunterClass[id] = 0;
    
g_iCurWeapon[id] = 0;
    
    if(
g_iProp[id])
        
remove_prop(id);
        
    new 
iEnt g_iCamera[id];
    if(
iEntengfunc(EngFunc_RemoveEntityiEnt), g_iCamera[id] = 0;
        
    if(
task_exists(id+TASK_HEAL))
        
remove_task(id+TASK_HEAL);
        
    if(
task_exists(id+TASK_SCLIP))
        
remove_task(id+TASK_SCLIP);
        
    if(
task_exists(id+TASK_ZOOM))
        
remove_task(id+TASK_ZOOM);
}

public 
cmd_buy(id

    
client_print(idprint_center"%L"LANG_PLAYER"CANT_BUY_WPN");
    return 
PLUGIN_HANDLED;
}
    
public 
cmd_drop(id)
{
    
client_print(idprint_center"%L"LANG_PLAYER"CANT_DROP");
    return 
PLUGIN_HANDLED;
}
    
public 
cmd_chooseteam(id)
{
    if(!
get_pcvar_num(g_CvarBlockteam) || is_user_admin(id))
    {
        if(
g_iHunterClass[id])
            
g_iHunterClass[id] = 0;
            
        return 
PLUGIN_CONTINUE;
    }
        
    static 
CsTeams:team;
    
team cs_get_user_team(id);
    if(
team == CS_TEAM_SPECTATOR || team == CS_TEAM_UNASSIGNED)
    {
        new 
iteam get_new_team();
        
engclient_cmd(idg_cmdTeam[0], g_teamnum[iteam]);
        
engclient_cmd(idg_cmdTeam[2], g_classnum[random_num(0,3)]);
        if(
g_iHunterClass[id])
            
g_iHunterClass[id] = 0;
            
        return 
PLUGIN_HANDLED;
    }
    else
    {
        
client_print(idprint_center"%L"LANG_PLAYER"CHANGE_TEAM");
        return 
PLUGIN_HANDLED;
    }
}

public 
event_TeamInfo()
{
    if(!
get_pcvar_num(g_CvarBlockteam) || !g_bGameOn)
        return 
PLUGIN_CONTINUE;
        
    new 
id read_data(1);
    new 
sTeam[32], iTeam;
    
read_data(2sTeamsizeof(sTeam) - 1);
    for(new 
05i++)
    {
        if(
g_cTeamChars[i] == sTeam[0])
        {
            
iTeam i;
            break;
        }
    }
    
    if(
g_iTeam[id] != iTeam)
    {
        
g_iPlayers[g_iTeam[id]]--;
        
g_iTeam[id] = iTeam;
        
g_iPlayers[iTeam]++;
    }
    
    return 
PLUGIN_CONTINUE;
}

public 
camera_think(iEnt)
{
    new 
id pev(iEntpev_owner);
    
    if(!
g_bCameraOn[id])
        return;

    static 
Float:origin[3], Float:angle[3], Float:vBack[3], add_vec;
    
pev(idpev_originorigin);
    
pev(idpev_v_angleangle);

    
angle_vectorangleANGLEVECTOR_FORWARDvBack );

    
origin[2] += 20.0;
     
//    add_vec = 120.0;
    
add_vec get_add_vec(idoriginvBack);
        
    
origin[0] += (-vBack[0] * add_vec);
    
origin[1] += (-vBack[1] * add_vec);
    
origin[2] += (-vBack[2] * add_vec);

    
set_pev(iEntpev_originorigin);
    
set_pev(iEntpev_anglesangle);
        
    
set_pev(iEntpev_nextthinkget_gametime()+ 0.01);
}

get_add_vec(idFloat:origin[3], Float:back[3])
{
    static 
add_vecFloat:torigin[3], Float:flFraction;
    
add_vec 5;
    
    for(new 
200i--)
    {
        
torigin[0] = origin[0] + (-back[0] * add_vec *i);
        
torigin[1] = origin[1] + (-back[1] * add_vec *i);
        
torigin[2] = origin[2] + (-back[2] * add_vec *i);
        
engfunc(EngFunc_TraceLineorigintoriginIGNORE_MONSTERSid0);
        
get_tr2(0TR_flFractionflFraction);
        if(
flFraction == 1.0)
        {
            return (
add_vec*i);
        }
    }
    return 
0;
}

public 
fwd_GameDescription() 

    new 
szMsg[32];
    
formatex(szMsg31"Saklambac Mod");
    
forward_return(FMV_STRINGszMsg);
    return 
FMRES_SUPERCEDE;
}

public 
fwd_CmdStart(iduc_handleseed)
{
    if(!
g_bIsAlive[id] || !g_bGameOn)
        return 
FMRES_IGNORED;
    
    static 
buttonoldbutton;
    
button pev(idpev_button);
    
oldbutton pev(idpev_oldbuttons);
    
    if(
g_bIsHider[id])
    {
        
/*if(button & IN_ATTACK2)
        {
            set_pev(id, pev_maxspeed, 1.0);
        }
        else if(oldbutton & IN_ATTACK2)
        {
            set_pev(id, pev_maxspeed, get_pcvar_float(g_CvarHiderspeed));
        }*/
        
        
new onground pev(idpev_flags) & FL_ONGROUND;
        if(
button IN_JUMP && !(oldbutton IN_JUMP) && !onground && !g_iDoublejump[id])
        {
            
g_iDoublejump[id] = 1;
        }
        
        new 
iEnt g_iProp[id];
        if(!
iEnt)
            return 
FMRES_IGNORED;
            
        static 
Float:origin[3], Float:angle[3];
        
pev(idpev_originorigin);

        if(
pev(idpev_flags) & FL_DUCKING)
            
origin[2] -= 18.0;
        else 
origin[2] -= 36.0;
        
        
engfunc(EngFunc_SetOriginiEntorigin);
        
        if(!(
button IN_ATTACK2))
        {
            
pev(idpev_v_angleangle);
            
angle[0] = 0.0;
            
set_pev(iEntpev_anglesangle);
        }
    }
    else
    {
        static 
ubuttoniCurWpn;
        
ubutton get_uc(uc_handleUC_Buttons);
        
iCurWpn g_iCurWeapon[id];
        
        if(
ubutton IN_ATTACK && ((iCurWpn == CSW_KNIFE) || (iCurWpn == CSW_XM1014)))
        {
            
ubutton &= ~IN_ATTACK;
            
            
            
set_uc(uc_handleUC_Buttonsubutton);
                
            return 
FMRES_SUPERCEDE;
        }
    }
    
    return 
FMRES_IGNORED;
}

public 
fwd_UpdateClientData_Postidsendweaponscd_handle )
{
    if(!
g_bGameOn || !g_bIsAlive[id] || g_iCurWeapon[id] != CSW_XM1014)
        return 
FMRES_IGNORED;

    
set_cd(cd_handleCD_ID0);        
    
    return 
FMRES_HANDLED;
}

public 
fwd_Player_PreThink(id)
{
    if(!
g_bGameOn || !g_bIsAlive[id] || !g_bIsHider[id])
        return 
FMRES_IGNORED;
        
    
set_pev(idpev_flTimeStepSound999);
    if(
g_iDoublejump[id] == && pev(idpev_flags) & FL_ONGROUND)
        
g_iDoublejump[id] = 0;
        
    return 
FMRES_IGNORED;
}

public 
fwd_Player_PostThink(id)
{
    if(!
g_bGameOn || !g_bIsAlive[id] || !g_bIsHider[id])
        return 
FMRES_IGNORED;
        
    if(
g_iDoublejump[id] == 1)
    {
        new 
Float:velocity[3];
        
pev(idpev_velocityvelocity);
        
velocity[2] = 285.0;
        
set_pev(idpev_velocityvelocity);
        
g_iDoublejump[id] = 2;
    }    
        
    return 
FMRES_IGNORED;
}

public 
fwd_Spawn(ent)
{
    if(!
pev_valid(ent) || ent == g_iHostage)
    {
        return 
FMRES_IGNORED;
    }
    
    new 
szClass[32];
    
pev(entpev_classnameszClass31);
    
    for(new 
0sizeof g_sRemoveEntitiesi++)
    {
        if(
equal(szClassg_sRemoveEntities[i]))
        {
            
engfunc(EngFunc_RemoveEntityent);
            return 
FMRES_SUPERCEDE;
        }
    }
    
    return 
FMRES_IGNORED;
}

public 
fwd_ClientKill(id)
{
    if(!
g_bGameOn)
        return 
FMRES_IGNORED;
        
    
ph_print(id"You are not allowed to kill urself !");
    
    return 
FMRES_SUPERCEDE;
}

public 
show_hud(id,flag)
{
    if(!
g_bGameOn)
        return;
        
    static 
hider_counthunter_countcolor[3];
    
get_player_count(hider_counthunter_count);
    
    for(new 
0gMaxPlayersi++)
    {
        if(!
g_bIsAlive[i])
            continue;
            
        if(
g_bIsHider[i])
            
color = { 2502050 };
        else
        {
            
color = { 30100255 };
            
set_hudmessage02000, -1.0, -1.006.02.10.00.0, -);
            
ShowSyncHudMsgig_hudmsg[HUD_CROSSHAIR], "<+>" );
        }
            
        
set_hudmessage(255255255, -1.00.020_2.1__, -1);
        
ShowSyncHudMsg(ig_hudmsg[HUD_BOARD], "Saklananlar: %i^nArayanlar: %i"hider_counthunter_count);
    }
}

get_player_count(&hider_count, &hunter_count 0)
{
    static 
iHideriHunterid;
    
iHider iHunter 0;
    
    for(
id 1id <= gMaxPlayersid++)
    {
        if(!
g_bIsAlive[id])
            continue;
            
        if(
g_bIsHider[id]) iHider++;
        else 
iHunter++;
    }
    
    
hider_count iHiderhunter_count iHunter;
}

public 
task_show_clip(taskid)
{
    new 
id taskid TASK_SCLIP;
    
    if(
g_iCurWeapon[id] == CSW_KNIFE)
        return;
    
    
set_dhudmessage25025000.850.9606.00.20.00.0 );
}

public 
fw_ent_think(iEnt)
{
    if(!
pev_valid(iEnt))
        return;
        
    static 
szClassname[32];
    
pev(iEntpev_classnameszClassname31);
    if(
equal(szClassnameg_szPlayerCamera))
        
camera_think(iEnt);
}

public 
fw_spawn_player_post(id)
{
    if(!
g_bGameOn || !is_user_alive(id) || !cs_get_user_team(id))
        return;
        
    
g_bIsAlive[id] = true;
        
    
g_bIsHider[id] = cs_get_user_team(id) == CS_TEAM_T true false;
    
    
message_begin(MSG_ONEgMsgHideWeapon_id);
    
write_byte(HIDE_HUD);
    
message_end();
    
    if(
g_bIsHider[id])
    {
        
strip_user_weapons(id);
        
set_playerview(id);
        
set_pev(idpev_health125.0);
        
set_visible(id0);
        
        
//enable prop
        
static iPropszEntModel[64], rand_mdl;
        
iProp g_iProp[id]
        
set_visible(iProp);
        
rand_mdl random_num(0ArraySize(g_sPropsModel) - 1);
        
ArrayGetString(g_sPropsModelrand_mdlszEntModelcharsmax(szEntModel));
        
format(szEntModelcharsmax(szEntModel), "models/props/%s.mdl"szEntModel);
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_task(1.0,"ayarlar",id)
    }
}

public 
ayarlar(id)
{        
    if(!
g_bInHideTime)
    {
        
ph_print(id"^3 %L"LANG_PLAYER"C_CHOOSE_CLASS2");
        return 
PLUGIN_HANDLED;
    }
    else if(!
g_bIsHider[id])
    {
        
ph_print(id"^3 Sadece Saklananlar Esya Secebilir");
        return 
PLUGIN_HANDLED;
    }
    else
    {

        new 
menu menu_create("\yEsya Menusu^n\wMenuyu Acmak icin /esya Yazin","ayarlar2")
        
menu_additem(menu,"\wKoltuk \y| \r30 HP","1",0
        
menu_additem(menu,"\wSandalye \y| \r20 HP","2",0
        
menu_additem(menu,"\wBilgisayar \y| \r40 HP","3",0
        
menu_additem(menu,"\wVodka Sisesi \y| \r1 HP","4",0)
        
menu_additem(menu,"\wAgac \y| \r80 HP","5",0
        
menu_additem(menu,"\wPipetli Bardak \y| \r1 HP","6",0)
        
menu_additem(menu,"\wGardrop \y| \r100 HP","7",0)
        
menu_additem(menu,"\wTas \y| \r40 HP","8",0)
        
menu_additem(menu,"\wVaril \y| \r70 HP","9",0)
        
menu_additem(menu,"\wKlozet \y| \r50 HP","10",0)
        
menu_additem(menu,"\wBira Sisesi \y| \r1 HP","11",0)
        
menu_additem(menu,"\wBenzin Sisesi \y| \r10 HP","12",0)
        
menu_additem(menu,"\wSu Kovasi \y| \r10 HP","13",0)
        
menu_additem(menu,"\wTrafik Konisi \y| \r10 HP","14",0)
        
menu_additem(menu,"\wKabine \y| \r100 HP","15",0)
        
menu_additem(menu,"\wEl Arabasi \y| \r80 HP","16",0)
        
menu_additem(menu,"\wKarton Kutular \y| \r70 HP","17",0)
        
menu_additem(menu,"\wOfis Koltugu \y| \r40 HP","18",0)
        
menu_additem(menu,"\wTabure \y| \r30 HP","19",0)
        
menu_additem(menu,"\wKahve Makinesi \y| \r5 HP","20",0)
        
menu_additem(menu,"\wKoltuk 2 \y| \r30 HP","21",0)
        
menu_additem(menu,"\wInek \y| \r100 HP","22",0)
        
menu_additem(menu,"\wKutu \y| \r30 HP","23",0)
        
menu_additem(menu,"\wRadyo \y| \r20 HP","24",0)
        
menu_additem(menu,"\wTekerlek \y| \r30 HP","25",0)
        
menu_additem(menu,"\wOfis Masasi \y| \r50 HP","26",0)
        
menu_additem(menu,"\wLavabo \y| \r50 HP","27",0)
        
menu_additem(menu,"\wYangin Muslugu \y| \r30 HP","28",0)
        
menu_additem(menu,"\wYangin Sondurucu \y| \r30 HP","29",0)
        
menu_additem(menu,"\wPiyano \y| \r60 HP","30",0)

        
menu_setprop(menu,MPROP_BACKNAME,"Geri")
        
menu_setprop(menu,MPROP_NEXTNAME,"Ileri")
        
menu_setprop(menuMPROP_EXITNAME"Menuyu Kapat");
        
menu_display(idmenu0);
    }
    return 
PLUGIN_HANDLED

}
public 
ayarlar2(id,menu,item)
{
    if(!
g_bInHideTime)
    {
        
ph_print(id"^3 %L"LANG_PLAYER"C_CHOOSE_CLASS2");
        return 
PLUGIN_HANDLED;
    }
    else if(!
g_bIsHider[id])
    {
        
ph_print(id"^3 Sadece Saklananlar Esya Secebilir");
        return 
PLUGIN_HANDLED;
    }
    if(
item==MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    new 
data[6], iName[64]
    new 
accesscallback
    menu_item_getinfo
(menuitemaccessdata,5iName63callback);
    new 
key str_to_num(data)
    switch(
key)
    {
        case 
: {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/3dm_sofa.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id30)
        }
        case 
: {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/bchair01.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id20)
        }
        case 
: {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/3dm_pc3.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id40)
        }
        case 
: {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/absolut.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id1)
        }
        case 
: {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/ae_smallbush.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id80)
        }
        case 
: {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/bsoda.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id1)
        }
        case 
: {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/armoire.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id100)
        }
        case 
: {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/babrock.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id40)
        }
        case 
: {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/barrel_brown.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id70)
        }
        case 
10 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/toilet.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id50)
        }
        case 
11 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/beer_old_nazgul.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id1)
        }
        case 
12 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/benzinkanister.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id10)
        }
        case 
13 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/bucket.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id10)
        }
        case 
14 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/buzzer_pa_kolpak.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id10)
        }
        case 
15 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/cabinet.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id100)
        }
        case 
16 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/cart.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id80)
        }
        case 
17 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/cartons.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id70)
        }
        case 
18 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/chair_office-leather.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id40)
        }
        case 
19 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/chair_stool.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id30)
        }
        case 
20 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/coffee_maker.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id5)
        }
        case 
21 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/couch3.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id30)
        }
        case 
22 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/cow.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id100)
        }
        case 
23 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/cratedownc2.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id30)
        }
        case 
24 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/cvpt_radio.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id20)
        }
        case 
25 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/dead_tire.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id30)
        }
        case 
26 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/desk_office-small.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id50)
        }
        case 
27 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/dfountain.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id50)
        }
        case 
28 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/fire_hydrant.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id30)
        }
        case 
29 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/fireextinguisher.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id30)
        }
        case 
30 : {
        static 
iPropszEntModel[64]
        
iProp g_iProp[id]
        
set_visible(iProp);
        
format(szEntModelcharsmax(szEntModel), "models/props/flo_piano.mdl");
        
engfunc(EngFunc_SetModeliPropszEntModel);
        
set_user_health(id60)
        }
    }
    return 
PLUGIN_HANDLED
}
public 
fw_TakeDamage(victiminflictorattackerFloat:damagedamage_bits)
{    
    if(
victim == attacker || !is_player_connected(attacker))
        return 
HAM_IGNORED;
        
    if(
g_iCurWeapon[attacker] == CSW_SCOUT)
    {
        new 
mutil_dmg g_iSniperDmg[attacker];
        
        if(
mutil_dmg == 5)
            
ExecuteHamB(Ham_Killedvictimattacker0);
        else 
        {
            
damage mutil_dmg*20.0;
            
SetHamParamFloat(4damage);
        }
        
        
g_iSniperDmg[attacker] = 0;
    }

    return 
HAM_IGNORED;
}

public 
fw_TakeDamage_post(victim)
{
    if(!
g_bIsHider[victim])
        return;
        
    
set_pdata_float(victimOFFSET_PAINSHOCK1.05//zp code
}

public 
fw_killed_player(victimkillershouldgib)
{
    
g_bIsAlive[victim] = false;
    
    if(
g_bIsHider[victim])
    {
        
set_visible(g_iProp[victim], 0);
            
    
//    set_playerview(id, 0);
        
set_visible(victim);
        
        if(!
g_bInHideTime)
        {
            new 
Float:fTime get_gametime() - g_fGameStartTime;
            
set_pev(victimpev_fragspev(victimpev_frags)+fTime);
            
ph_print(victim"^1 Kazandin^3 %i^4 frag(s)^1 for surviving !"floatround(fTime));
            
g_fFrags[victim] = fTime;
        }
        
        if(
is_player_alive(killer) && !g_bIsHider[killer])
        {
            new 
Float:fCvarSpeedBoost get_pcvar_float(g_CvarSpeedBoost);
            if(
fCvarSpeedBoost && !g_bHasSpeedBoost[killer])
                
give_speedboost(killerfCvarSpeedBoost);
            
            
give_frags(killervictim);
        }

        
// Ölen Saklananları CT yapar
        
new players[32],inum;
        
get_players(playersinum,"e","TERRORIST")
        if(
inum != 1)
        {
        
cs_set_user_team(victim,CS_TEAM_CT)
        
set_task(1.0,"revle",victim)
        
saklanan[victim] = true
        
}


    }
    else
    {
        if(
task_exists(victim+TASK_HEAL))
            
remove_task(victim+TASK_HEAL);
            
        
remove_task(victim+TASK_SCLIP);
    }
}

public 
revle(id)
{
    
ExecuteHamB(Ham_CS_RoundRespawnid)
}


public 
fw_WeaponAttack(iWpn)
{
    if(!
g_bGameOn)
        return;
        
    static 
idhealth;
    
id get_pdata_cbase(iWpn414);
    
health get_user_health(id) - get_pcvar_num(g_CvarHpLostAmt);
    
    if(
health 0)
        
set_pev(idpev_healthfloat(health));
    else 
    {
        
user_kill(id);
        return;
    }
    
    if(!
g_bInHideTime && pev(idpev_button) & IN_JUMP)
    {
        new 
Float:velocity[3];
    
//    pev(id, pev_velocity, velocity);
        
velocity_by_aim(id50velocity)
        
velocity[2] += 450.0;
        
set_pev(idpev_velocityvelocity);
    }
    
    if(
g_iCurWeapon[id] == CSW_SCOUT && g_iZoomPower[id] != 0//for sniper
    
{
        
g_iSniperDmg[id] = g_iZoomPower[id];
        
        new 
mutil_dmg g_iSniperDmg[id];
        if(
mutil_dmg == 5)
            
client_print(idprint_center"Bir atis Bir Olum");
        else 
client_print(idprint_center"Zarar: %i"mutil_dmg*20);
        
        
g_iZoomPower[id] = 0;
    }
}
give_speedboost(idFloat:fSpeedAdd)
{
    
g_bHasSpeedBoost[id] = true;
    
manage_icon(idICON_SPEEDBOOST);
    
set_pev(idpev_maxspeedpev(idpev_maxspeed)+fSpeedAdd);
    
ph_print(id"^1 %L"LANG_PLAYER"C_GIVE_SPEEDBOOST");
}

give_frags(idvictim)
{
    new 
Float:fVicFrags g_fFrags[victim];
    if(
fVicFrags != 0.0)
        
set_pev(idpev_fragspev(idpev_frags)+fVicFrags);
}

public 
event_curweapon(id)
{
    if(!
g_bGameOn)
        return 
PLUGIN_CONTINUE;
        
    
message_begin(MSG_ONEgMsgHideWeapon_id);
    
write_byte(HIDE_HUD);
    
message_end();
        
    if(
g_bIsHider[id])
    {
        if(!
g_bRoundEnd)
        {
            
fm_strip_user_weapons(id);
            
set_pev(idpev_maxspeedget_pcvar_float(g_CvarHiderspeed));
        }
    }
    else
    {
        new 
Float:fCvarSpeedBoost get_pcvar_float(g_CvarSpeedBoost);
        
        if(
g_bInHideTime)
        
set_pev(idpev_maxspeed1.0);
        else if(
fCvarSpeedBoost && g_bHasSpeedBoost[id])
        
set_pev(idpev_maxspeedpev(idpev_maxspeed)+fCvarSpeedBoost);
    }
    
message_begin(MSG_ONEgMsgCrossHair, {0,0,0}, id);
    
write_byte(1);
    
message_end();
    return 
PLUGIN_CONTINUE;
}

public 
Event_SetFOV(id)
{
    if(
read_data(1) >= 90//zoom out
    
{
        if(
task_exists(id+TASK_ZOOM))
        {
            
g_iZoomPower[id] = 0;
            
remove_task(id+TASK_ZOOM);
        }
        
        return;
    }
        
    if(!
task_exists(id+TASK_ZOOM))
    {
        
task_zoom_power(id+TASK_ZOOM);
        
set_task(1.0"task_zoom_power"id+TASK_ZOOM__g_sB);
    }
}

public 
task_zoom_power(taskid)
{
    static 
idpowercolor
    
id taskid TASK_ZOOM;
    
power g_iZoomPower[id];
    
color 50 power 30;
    
    
set_hudmessage(colorcolor0, -1.00.75power == 0_1.1__, -1);
    
ShowSyncHudMsg(idg_hudmsg[HUD_ZOOM], "{%s%s}"g_bar[0][power], g_bar[1][power]);
    
    if(
power 5)
        
power++;
    
    
g_iZoomPower[id] = power;
}

public 
heal_hp(taskid)
{
    static 
id;
    
id taskid TASK_HEAL;
    
manage_icon(idICON_BUYZONE0);
    
set_pev(idpev_healthfloat(g_iClassHealth[g_iHunterClass[id]]))
    
ph_print(id"^1 %L"LANG_PLAYER"C_HEALED");
}

public 
EventNewRound()
{
    new 
players[32],inum;
    static 
Uid;
    
get_players(playersinum)
    for(new 
i;i<inum;i++) 
    {
        
Uid players[i]
        
saklanan[Uid] = false
    
}
}
public 
EventRoundStart()
{
    if(!
g_bGameOn)
        return;
        
    
g_bRoundEnd false;
    
    new 
time g_iHideTime;
    
    for(new 
0gMaxPlayersi++)
    {
        if(!
g_bIsConnected[i] || g_bIsHider[i])
            continue;
            
        if(
task_exists(i+TASK_HEAL))
            
remove_task(i+TASK_HEAL);
            
        if(
g_bCameraOn[i])
            
set_playerview(i0);
            
        
g_bHasSpeedBoost[i] = false;
        
saklanan[i] = false
            
    
/*    set_pev(i, pev_maxspeed, 1.0);
        
        message_begin(MSG_ONE, gMsgScreenFade, {0, 0, 0}, i);
        write_short(floatround(4096.0 * 1.5, floatround_round));
        write_short(floatround(4096.0 * 1.5, floatround_round));
        write_short(4096);
        write_byte(0);
        write_byte(0);
        write_byte(0);
        write_byte(200);
        message_end();*/
    
}
    
    
g_bInHideTime true
    
    g_iCountdownTime 
time+1;
//    set_task(time, "end_hide_time", TASK_HIDETIME);
    
count_down();
    
set_task(1.0"count_down"TASK_HIDETIME__g_sAg_iCountdownTime);
}

public 
count_down()
{
    
g_iCountdownTime--
    
    for(new 
0gMaxPlayersi++)
    {
        if(!
g_bIsAlive[i] || g_bIsHider[i])
            continue;
            
        
set_pev(ipev_maxspeed1.0);
        
        
message_begin(MSG_ONEgMsgScreenFade, {000}, i);
        
write_short(floatround(4096.0 1.5floatround_round));
        
write_short(floatround(4096.0 1.5floatround_round));
        
write_short(4096);
        
write_byte(0);
        
write_byte(0);
        
write_byte(0);
        
write_byte(150);
        
message_end();
    }
    
    if(
g_iCountdownTime <= 5)
    {
        
client_cmd(0"spk %s"g_CountdownSound[g_iCountdownTime]);
        
        if(!
g_iCountdownTime)
        {
            
end_hide_time();
            return;
        }
    }
        
    
set_dhudmessage02000, -1.00.7506.01.00.00.0 );
    
show_dhudmessage0"Saklanma Zamani: %i"g_iCountdownTime );
}

end_hide_time()
{
    for(new 
0gMaxPlayersi++)
    {
        if(!
g_bIsAlive[i] || g_bIsHider[i])
            continue;
            
        
set_pev(ipev_maxspeed250.0);
        
        
message_begin(MSG_ONEgMsgScreenFade, {000}, i);
        
write_short(0);
        
write_short(0);
        
write_short(4096);
        
write_byte(0);
        
write_byte(0);
        
write_byte(0);
        
write_byte(150);
        
message_end();
    }
    
    
g_fGameStartTime get_gametime();
    
client_cmd(0"spk %s"g_CountdownSound[0]);
    
    
set_dhudmessage02000, -1.00.7506.03.00.00.0 );
    
show_dhudmessage0"Sure Bitti!" );
    
    
g_bInHideTime false
}

public 
RestartRound()
{
    
EventRoundEnd();
}

public 
EventRoundEnd()
{
    
g_bRoundEnd true;
    if(
task_exists(TASK_HIDETIME))
        
remove_task(TASK_HIDETIME);
        
    static 
Float:fTimeiHiderCountwinmsg[32];
    
get_player_count(iHiderCount)
    
    if(
iHiderCount//hider win
    
{
        
formatex(winmsg31"%L"LANG_PLAYER"HIDER_WIN");
        
        for(new 
0gMaxPlayersi++)
        {
            if(!
g_bIsConnected[i])
                continue;
                
        
//    add_delay_switch_team(i);
            
tekrarla(i)
            
set_dhudmessage(2502050, -1.00.250_4.0);
            
show_dhudmessage(iwinmsg);
        }
    }
    else 
    {
        
formatex(winmsg31"%L"LANG_PLAYER"SEEKER_WIN_SWITCH");
        
        for(new 
0gMaxPlayersi++)
        {
            if(!
g_bIsConnected[i])
                continue;
                
            
g_iHunterClass[i] = 0;
            
add_delay_switch_team(i);
            
set_dhudmessage(20100250, -1.00.250_4.0);
            
show_dhudmessage(iwinmsg);
        }
    }
    
    for(new 
0gMaxPlayersi++)
    {
        if(!
g_bIsAlive[i])
            continue;
        
        if(
g_bIsHider[i])
        {
            
set_visible(g_iProp[i], 0);
            
set_visible(i);
            
            if(!
g_bInHideTime)
            {
                
fTime get_gametime() - g_fGameStartTime;
                
set_pev(ipev_fragspev(ipev_frags)+fTime);
                
ph_print(i"^1 Kazandin^3 %i^4 frag(s)^1 for surviving !"floatround(fTime));
            }
            
g_fFrags[i] = 0.0;
        }
        else 
        {
            
manage_icon(iICON_BUYZONE0);
            
manage_icon(iICON_SPEEDBOOST0);
        }
    }
}

public 
Event_BuyZone(id
{
/*    if(cs_get_user_team(id) == CS_TEAM_T)
    {
        if(buyzone)
        {
            const OFFSET_BUYZONE = 235 //268
            set_pdata_int(id, OFFSET_BUYZONE, get_pdata_int(id, OFFSET_BUYZONE) & ~(1<<0));
            return PLUGIN_HANDLED;
        }
    }*/
    
if(g_bIsAlive[id] && !g_bIsHider[id] && !g_bRoundEnd && !g_bInHideTime)
    {
        new 
hp get_user_health(id);
        
        if(!
read_data(1))
        {
            if(
task_exists(id+TASK_HEAL))
            {
                
client_print(idprint_center"%L"LANG_PLAYER"STOP_HEAL");
                
manage_icon(idICON_BUYZONE0);
                
remove_task(id+TASK_HEAL);
                
manage_bar(id0)
                
ClearSyncHud(idg_hudmsg[HUD_OBJ])
            }
        }
        else if(
hp g_iClassHealth[g_iHunterClass[id]] && !task_exists(id+TASK_HEAL))
        {
            
client_print(idprint_center"%L"LANG_PLAYER"HEALING");
            new 
time get_pcvar_num(g_CvarHealtime);
            
set_task(float(time), "heal_hp"id+TASK_HEAL);
            
manage_icon(idICON_BUYZONE);
            
manage_bar(idtime)
            
set_hudmessage(2002000, -1.0, -1.006.0float(time), 0.00.0, -1);
            
ShowSyncHudMsg(idg_hudmsg[HUD_OBJ], "CAN DOLUYOR >>");
        }
    }
    
    return 
PLUGIN_CONTINUE;
}

public 
msg_textmsg(msgiddestid)
{
    if(!
g_bGameOn || get_msg_arg_int(1) != 4)
        return 
PLUGIN_CONTINUE;
    
    static 
txtmsg[25];
    
get_msg_arg_string(2txtmsg24);
    
    if(
equal(txtmsg[1], g_sMsgWins[0]) || equal(txtmsg[1], g_sMsgWins[1]) || equal(txtmsg[1], g_sMsgWins[2]))
    {
        
set_msg_arg_string(2g_sBlank);
    }
    else if(
equal(txtmsg[1], g_sCommandNotAvailable))
        return 
PLUGIN_HANDLED;
        
    return 
PLUGIN_CONTINUE;
}


public 
tekrarla(id)
{
    if(
saklanan[id])
        
cs_set_user_team(id,CS_TEAM_T)
}

add_delay_switch_team(id)
{
    new const 
szTaskChangeTeam[32] = "change_team";
    switch(
id)
    {
        case 
1..7set_task0.1szTaskChangeTeamid );
        case 
8..15set_task0.5szTaskChangeTeamid );
        case 
16..23set_task1.0szTaskChangeTeamid );
        case 
24..32set_task1.5szTaskChangeTeamid );
    }
}

public 
change_team(id)
{
    if(!
is_user_bot(id))
    {
    
cs_set_user_team(idg_bIsHider[id] ? CS_TEAM_CT CS_TEAM_T);
    
g_bIsHider[id] = (g_bIsHider[id] ? false true);

    if(
saklanan[id])
        
cs_set_user_team(id,CS_TEAM_CT)
    }
}

public 
event_touch_weapon(iEntid)
    return 
HAM_SUPERCEDE;
    
public 
msg_weaponpickup(msgiddestid)
    return 
PLUGIN_HANDLED;

public 
msg_ammopickup(msgiddestid)
    return 
PLUGIN_HANDLED;
    
ph_print(const id, const message[], any:...) 
{
    new 
szMessage[192];
    
vformat(szMessage191message3);
    
    
replace_all(szMessage191"\g""^4"); // Green Color
    
replace_all(szMessage191"\y""^1"); // Default Color
    
replace_all(szMessage191"\t""^3"); // Team Color
   
    
message_begin(id MSG_ONE_UNRELIABLE MSG_BROADCASTgMsgSayText_id);
    
write_byte(id id 1);
    
write_string(szMessage);
    
message_end();
}

stock bacon_give_weapon(indexweapon[])
{
    if(!
equal(weapon"weapon_"7))
        return 
0;

    new 
iEnt engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocStringweapon));
    if(!
pev_valid(iEnt))
        return 
0;

    new 
Float:origin[3];
    
pev(indexpev_originorigin);
    
set_pev(iEntpev_originorigin);
    
set_pev(iEntpev_spawnflagspev(iEntpev_spawnflags) | SF_NORESPAWN);
    
dllfunc(DLLFunc_SpawniEnt);

    new 
save pev(iEntpev_solid);
    
dllfunc(DLLFunc_TouchiEntindex);
    if(
pev(iEntpev_solid) != save)
        return 
iEnt;

    
engfunc(EngFunc_RemoveEntityiEnt);

    return -
1;
}

stock fm_strip_user_weapons(index
{
    new 
iEnt engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"player_weaponstrip"));
    if (!
pev_valid(iEnt))
        return 
0;

    
dllfunc(DLLFunc_SpawniEnt);
    
dllfunc(DLLFunc_UseiEntindex);
    
engfunc(EngFunc_RemoveEntityiEnt);

    return 
1;
}

stock fm_find_ent_by_owner(index, const classname[], ownerjghgtype 0)
{
    new 
strtype[11] = "classname"iEnt index
    
switch (jghgtype
    {
        case 
1strtype "target"
        
case 2strtype "targetname"
    
}
    
    while ((
iEnt engfunc(EngFunc_FindEntityByStringiEntstrtypeclassname)) && pev(iEntpev_owner) != owner) {}
    
    return 
iEnt
}

get_new_team()
{
    new 
iTCount g_iPlayers[TEAM_T];
    new 
iCTCount g_iPlayers[TEAM_CT];
    if(
iTCount iCTCount)
        return 
TEAM_T;
    else if(
iTCount iCTCount)
        return 
TEAM_CT;
    else
        return 
random_num(TEAM_TTEAM_CT);
}

set_playerview(idmode 1)
{
    if(
mode)
    {
        new 
iEnt g_iCamera[id];
        
engfunc(EngFunc_SetViewidiEnt);
        
g_bCameraOn[id] = true;
    
//    set_pev(iEnt, pev_nextthink, get_gametime()); 
        
camera_think(iEnt);
    }
    else 
//disable camera
    
{
        
g_bCameraOn[id] = false;
        
engfunc(EngFunc_SetViewidid);
    }
}
/*
make_DeathMsg(killer, victim, headshot, const weapon[])
{
    message_begin(MSG_ALL, gMsgDeathmsg, {0,0,0}, 0);
    write_byte(killer);
    write_byte(victim);
    write_byte(headshot);
    write_string(weapon);
    message_end();

    return 1;
}

make_silentkill(id)
{
    static msgid, msgblock;
    msgid = gMsgDeathmsg;
    msgblock = get_msg_block(msgid);
    set_msg_block(msgid, BLOCK_ONCE);    
    user_kill(id, 1);
    set_msg_block(msgid, msgblock);

    return 1;
}*/

manage_icon(idicon_kindstatus 1)
{
    
message_begin(MSG_ONEgMsgStatusIcon_id);
    
write_byte(status); // status (0=hide, 1=show, 2=flash)
    
if(icon_kindwrite_string("plus"); // sprite name
    
else write_string("dmg_rad");
    
write_byte(0); // red
    
write_byte(200); // green
    
write_byte(0); // blue
    
message_end();
}

manage_bar(idtime)
{
    
message_begin(MSG_ONE_UNRELIABLEgMsgBarTime_id)
    
write_short(time)
    
message_end()
}

set_visible(iEntVISIBLE 1)
    
set_pev(iEntpev_effectsVISIBLE pev(iEntpev_effects) & ~EF_NODRAW pev(iEntpev_effects) | EF_NODRAW);

stock ColorChat(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
    
    
replace_all(msg190"!g""^x04"); // Green Color
    
replace_all(msg190"!n""^x01"); // Default Color
    
replace_all(msg190"!t""^x03"); // Team Color
    
    
client_print_color(ididmsg);




Pouex(Görkem Bacısısikişenoğlu)'in anasını götünden sikeyim.
Emirhan SkürtSkürt seninde ananı sikicem sıradasın.
Dediğim gibi ferudun ve berke lafım yok.
forum.csduragi.com
#30
@ Awpci Kedi Sorun çözüldü mü ?





Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Konu ile Alakalı Benzer Konular
Konular Yazar Yorumlar Okunma Son Yorum
Silinmiş Konu   | Csgo Menu verirmisiniz düzgün KuralsizHD 2 4,300 18-09-2020, Saat: 18:32
Son Yorum: JwG
Silinmiş Konu   | CSGO MENU LAZIM Cyroxx 1 483 18-09-2020, Saat: 18:32
Son Yorum: JwG
Silinmiş Konu   | Ücretsiz Furien Mod CT ve T Menü lazım coolzje 1 302 06-07-2020, Saat: 23:53
Son Yorum: By.KinG
Silinmiş Konu   | ACİL bbmenu ve class menu lazım yapana kurucu vericem enesbaba123 1 332 06-07-2020, Saat: 23:51
Son Yorum: By.KinG
Silinmiş Konu   | Fun menu plugin İSTEK thekzeer 5 406 23-12-2019, Saat: 19:24
Son Yorum: By.KinG

Task