[Modificare] Plugin Hide'N'Seek

Modificari necesare ale pluginurilor

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
VdK
Membru, skill 0
Membru, skill 0
Posts: 22
Joined: 15 Aug 2013, 15:29
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 2 times
Contact:

15 Dec 2013, 20:34

Salutare din nou !
Am luat un Plugin VIP pentru HNS de pe net, un plugin ultimate pe 4 Grade si am modificat dupa bunul plac.
Am urmatoarele probleme:

1) La conectare / Deconectare orice grad as fi imi da mesajul de la Gradul G:4. Eu vreau sa dea mesajul fiecaruia in parte.
2) La itemele automate tot din aceiasi problema ca mai sus, orice grad as fi da itemele Gradului G:4. Vreau sa dea itemele gradului respectiv.
3) La Glow e aceiasi problema, orice grad as fi da glow de la G:4. Eu vreau Glow-ul fiecarui grad + daca puteti sa faceti sa dureze mai mult. Ramane GLOW doar la inceputul rundei vreo 3-4 secunde dupa dispare.

De atat am nevoie, sper sa ma puteti ajuta...
Plugin Hide'N'Seek | Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <engine>
#include <cstrike>
#include <hamsandwich>

#define motd_msg        "HNS.EVO-ZONE.RO ~ VIPS Online"

#define GROUPS_NAME        4
#define GROUPS_ACCESS        4

#define VIP_LEVEL4	read_flags("abcdefghijklmnopqrsu")
#define is_vip4(%1)	(get_user_flags(id) & VIP_LEVEL4)
#define VIP_LEVEL3	read_flags("abcdegijmnopqsu")
#define is_vip3(%1)	(get_user_flags(id) & VIP_LEVEL3)
#define VIP_LEVEL2	read_flags("abcdeijnopu")
#define is_vip2(%1)	(get_user_flags(id) & VIP_LEVEL2)
#define VIP_LEVEL1	read_flags("abceijnou")
#define is_vip1(%1)	(get_user_flags(id) & VIP_LEVEL1)

/* -------------------------------> HE*/
#define _HE "weapon_hegrenade"
#define _HE2 "weapon_hegrenade"
#define _HE3 "weapon_hegrenade"
#define _HE4 "weapon_hegrenade"
/* -------------------------------> HE_GRENADE */
#define _HEG CSW_HEGRENADE
#define _HEG2 CSW_HEGRENADE
#define _HEG3 CSW_HEGRENADE
#define _HEG4 CSW_HEGRENADE
/* -------------------------------> SMOKE */
#define _SM "weapon_smokegrenade"
#define _SM2 "weapon_smokegrenade"
#define _SM3 "weapon_smokegrenade"
#define _SM4 "weapon_smokegrenade"
/* -------------------------------> SM_GRENADE */
#define _SMG CSW_SMOKEGRENADE
#define _SMG2 CSW_SMOKEGRENADE
#define _SMG3 CSW_SMOKEGRENADE
#define _SMG4 CSW_SMOKEGRENADE
/* -------------------------------> FLASH */
#define _FL2 "weapon_flashbang"
#define _FL3 "weapon_flashbang"
#define _FL4 "weapon_flashbang"
/* -------------------------------> FL_GRENADE */
#define _FLG CSW_FLASHBANG
#define _FLG2 CSW_FLASHBANG
#define _FLG3 CSW_FLASHBANG
#define _FLG4 CSW_FLASHBANG
/* -------------------------------> DEAGLE */
#define _DGLW "weapon_deagle"
#define _DGLW2 "weapon_deagle"
#define _DGLW3 "weapon_deagle"
#define _DGLW4 "weapon_deagle"
/* -------------------------------> USP */
#define _USPW "weapon_usp"
/* -------------------------------> HP */
#define _HP get_user_health
#define _HP2 get_user_health
#define _HP3 get_user_health
#define _HP4 get_user_health
/* -------------------------------> AP */
#define _AP get_user_armor
#define _AP2 get_user_armor
#define _AP3 get_user_armor
#define _AP4 get_user_armor

#define GROUPS_NAME		4
#define GROUPS_ACCESS		4

static const TAG[] = "!eE!vV!eu"

new limita[32]

#define RRR			255
#define GGG			255
#define BBB			255
#define CharsMax(%1)		sizeof %1 - 1
#define time_hud 12.0
#define vips_online_up "\rV.I.P\y Online\w:^n^n"
#define vips_online_bottom "\wPlugin \rVIP\w:\rHNS \w(\yv4.0\w) -> Creat de \rUsp\w\rStyLe \w!" 

/* <><><><><><><><><><><><><><><><><><><><><><><>~ New <><><><><><><><><><><><><><><><><><><><><><><> */
new color[][] =
{
    "FF0000",
    "BF0000",
    "4080FF",
    "40BFFF"
}

new GroupNames[GROUPS_NAME][] = 
{
    "---( * V.I.P (G4) * )---",
    "---( * V.I.P (G3) * )---",
    "---( * V.I.P (G2) * )---",
    "---( * V.I.P (G1) * )---"
}

new GroupFlags[GROUPS_ACCESS][] = 
{
    "abcdefghijklmnopqrsu",
    "abcdegijmnopqsu",
    "abcdeijnopu",
    "abceijnou"
}
new GroupFlagsValue[GROUPS_NAME]
new iSeconds = 15
new cvar_give4
new cvar_give3
new cvar_give2
new cvar_give1

public plugin_init()
{
    register_plugin("VIP.HNS -> Ultimate","4.0","UspStyLe")
    
    // Log -> Limbaj
    
    register_clcmd("say ****","limbaj_vip")
    register_clcmd("say ***","limbaj_vip")
    register_clcmd("say mat/a","limbaj_vip")
    register_clcmd("say mat.a","limbaj_vip")
    register_clcmd("say ******","limbaj_vip")
    register_clcmd("say marsh","limbaj_vip")
    register_clcmd("say _|_","limbaj_vip")
    register_clcmd("say fm","limbaj_vip")
    register_clcmd("say h.mm","limbaj_vip")
    register_clcmd("say ***","limbaj_vip")
    register_clcmd("say morti","limbaj_vip")
    register_clcmd("say m.o.r.t.i","limbaj_vip")
    register_clcmd("say m.orti","limbaj_vip")
    register_clcmd("say je.t","limbaj_vip")
    register_clcmd("say jet","limbaj_vip")
    register_clcmd("say jigodie","limbaj_vip")
    register_clcmd("say javra","limbaj_vip")
    register_clcmd("say noob","limbaj_vip")
    register_clcmd("say n.oob","limbaj_vip")
    register_clcmd("say n00b","limbaj_vip")
    register_clcmd("say nab","limbaj_vip")
    register_clcmd("say prost","limbaj_vip")
    register_clcmd("say tampit","limbaj_vip")
    register_clcmd("say p.rost","limbaj_vip")
    register_clcmd("say ta.mpi.t","limbaj_vip")
    register_clcmd("say boot","limbaj_vip")  
    
    // GodMode
    
    register_clcmd("say /godmode","god_mode")
    
    // Runda noua
    
    register_event("HLTV","new_round","a","1=0","2=0")
    
    // RegisterHam
    
    RegisterHam(Ham_Spawn,"player","Spawn",1)
    
    // InfoVIP
    
    register_clcmd("say /vipinfo","accesvip")
        
    // Vips ON -> For New
    
    for(new i=0;i < GROUPS_NAME ; i++)
	GroupFlagsValue = read_flags(GroupFlags)
    
    // Vips ON -> ClCMD
    
    register_clcmd("say /vips","vips_online")
    register_clcmd("say .vips","vips_online")    
    register_clcmd("say vips","vips_online")
    
    // Print Plugin CFG
    
    set_task(1.0,"print_config_server",1234,_,_,"b",_) 

    // Cvar 
    
    cvar_give4 = register_cvar("vip_give_seconds","15.0")
}
public new_round(id)
{
    new iPlayers[32]
    new iPlayersNum
    get_players(iPlayers,iPlayersNum,"ae")
    for (new i=0;i < iPlayersNum; i++)
    {
        limita[iPlayers] = 0
    }
}
public Spawn(id)
{
    if(id_vip4(id) && is_user_alive(id))
    {
        set_task(get_pcvar_float(cvar_give),"give",id)
        set_user_rendering(id, kRenderFxGlowShell, 199, 10, 10, kRenderNormal, 50) 
    }
    else if(id_vip3(id) && is_user_alive(id))
    {
        set_task(get_pcvar_float(cvar_give),"give",id)
        set_user_rendering(id, kRenderFxGlowShell, 68, 77, 133, kRenderNormal, 50) 
    }  
    else if(id_vip2(id) && is_user_alive(id))
    {
        set_task(get_pcvar_float(cvar_give),"give",id)
        set_user_rendering(id, kRenderFxGlowShell, 94, 227, 230, kRenderNormal, 50)
    }  
    else if(id_vip1(id) && is_user_alive(id))
    {
        set_task(get_pcvar_float(cvar_give),"give",id)
        set_user_rendering(id, kRenderFxGlowShell, 219, 219, 22, kRenderNormal, 50)
    }  
}
public give(id)
{
    if(get_user_flags(id) & id_vip4(id))
    {
		//===========[Nades]===========
        give_item(id,_HE4)
        give_item(id,_SM4)
        give_item(id,_FL4)
        cs_set_user_bpammo(id, _HEG4, 3)
        cs_set_user_bpammo(id, _SMG4, 3)
        cs_set_user_bpammo(id, _FLG4, 3)
		//===========[Weapon]===========
        give_item(id,_DGLW4)
        new gL_DGLW4 = find_ent_by_owner(-1,_DGLW4,id)
        if(gL_DGLW4)
        cs_set_weapon_ammo(gL_DGLW4, 3)
		//===========[HP/AP]===========
        set_user_health(id, _HP4(id) + 80)
        set_user_armor(id, _AP4(id) + 50)
		//===========[Message]===========
        Color_C_Usp(id,"!c[%s!c] !vV.I.P !cGrad (!eG:4!c)",TAG)  
        Color_C_Usp(id,"!c[%s!c] Ai primit (!e+3 HE!c)(!e+3 SMK!c)(!e+3 FL!c)(!e+3 DGL!c)(!e+80 HP / +50 AP!c)(!eGLOW <3!c)",TAG)   
        Color_C_Usp(id,"!c[%s!c] Ai primit !vGodMode!c(!eBONUS!c) pentru 15 secunde. [!e/godmode!c]",TAG)          
	}
    else if(get_user_flags(id) & id_vip3(id))
    {
		//===========[Nades]===========
        give_item(id,_HE3)
        give_item(id,_SM3)
        give_item(id,_FL3)
        cs_set_user_bpammo(id, _HEG3, 2)
        cs_set_user_bpammo(id, _SMG3, 2)
        cs_set_user_bpammo(id, _FLG3, 2)
		//===========[Weapon]===========
        give_item(id,_DGLW3)
        new gL_DGLW3 = find_ent_by_owner(-1,_DGLW3,id)
        if(gL_DGLW3)
        cs_set_weapon_ammo(gL_DGLW3, 2)
        //===========[HP/AP]===========
        set_user_health(id, _HP4(id) + 60)
        set_user_armor(id, _AP4(id) + 40)
        //===========[Message]===========
        Color_C_Usp(id,"!c[%s!c] !vV.I.P !cGrad (!eG:3!c)",TAG)  
        Color_C_Usp(id,"!c[%s!c] Ai primit (!e+2 HE!c)(!e+2 SMK!c)(!e+2 FL!c)(!e+2 DGL!c)(!e+60 HP / +40 AP!c)(!eGLOW <3!c)",TAG)   
        Color_C_Usp(id,"!c[%s!c] Ai primit !vGodMode!c(!eBONUS!c) pentru 10 secunde. [!e/godmode!c]",TAG)          
    }  
    else if(get_user_flags(id) & id_vip2(id))
    {
        //===========[Nades]===========
        give_item(id,_HE2)
        give_item(id,_SM2)
        give_item(id,_FL2)
        cs_set_user_bpammo(id, _HEG2, 2)
        cs_set_user_bpammo(id, _SMG2, 1)
        cs_set_user_bpammo(id, _FLG2, 1)
        //===========[Weapon]===========
        give_item(id,_DGLW3)
        new gL_DGLW3 = find_ent_by_owner(-1,_DGLW3,id)
        if(gL_DGLW3)
        cs_set_weapon_ammo(gL_DGLW3, 1)
        //===========[HP/AP]===========
        set_user_health(id, _HP4(id) + 40)
        set_user_armor(id, _AP4(id) + 30)
        //===========[Message]===========
        Color_C_Usp(id,"!c[%s!c] !vV.I.P !cGrad (!eG:2!c)",TAG)  
        Color_C_Usp(id,"!c[%s!c] Ai primit (!e+2 HE!c)(!e+1 SMK!c)(!e+1 FL!c)(!e+1 DGL!c)(!e+40 HP / +30 AP!c)(!eGLOW <3!c)",TAG)             
    } 
    else if(get_user_flags(id) & id_vip1(id))
    {
        //===========[Nades]===========
        give_item(id,_HE)
        give_item(id,_SM)
        cs_set_user_bpammo(id, _HEG, 1)
        cs_set_user_bpammo(id, _SMG, 1)
        //===========[Weapon]===========
        give_item(id,_USPW)
        new gL_USPW = find_ent_by_owner(-1,_USPW,id)
        if(gL_USPW)
        cs_set_weapon_ammo(gL_USPW, 1)
        //===========[HP/AP]===========
        set_user_health(id, _HP4(id) + 20)
        set_user_armor(id, _AP4(id) + 20)
        //===========[Message]===========
        Color_C_Usp(id,"!c[%s!c] !vV.I.P !cGrad (!eG:1!c)",TAG)  
        Color_C_Usp(id,"!c[%s!c] Ai primit (!e+1 HE!c)(!e+1 SMK!c)(!e+1 USP!c)(!e+20 HP / +20 AP!c)(!eGLOW <3!c)",TAG)
    }  
}
public god_mode(id)
{
    if(get_user_flags(id) & id_vip4(id))
    {
        if(limita[id] == 1)
        {
            Color_C_Usp(id,"!c[%s!c] Poti accesa comanda doar odata pe runda !",TAG) 
        }
        else
        {
            Color_C_Usp(id,"!c[%s!c] Ai primit !vGodMode !cpentru !e15 secunde !c!",TAG) 
            set_user_godmode(id,1)
            set_task(15.0,"remove_godmode",id)
            limita[id] = 1
        }
    }
    else if(get_user_flags(id) & id_vip3(id))
    {
        if(limita[id] == 1)
        {
            Color_C_Usp(id,"!c[%s!c] Poti accesa comanda doar odata pe runda !",TAG) 
        }
        else
        {
            Color_C_Usp(id,"!c[%s!c] Ai primit !vGodMode !cpentru !e10 secunde !c!",TAG) 
            set_user_godmode(id,1)
            set_task(10.0,"remove_godmode",id)
            limita[id] = 1
        }
    }  
    else if(get_user_flags(id) & id_vip2(id))
    {
        Color_C_Usp(id,"!c[%s!c] Poti accesa comanda doar de la !eV.I.P !c(!vG:3!c) in sus !",TAG)
	}
    else if(get_user_flags(id) & id_vip1(id))
	{
		Color_C_Usp(id,"!c[%s!c] Poti accesa comanda doar de la !eV.I.P !c(!vG:3!c) in sus !",TAG)
	}
	else
	{
        Color_C_Usp(id,"!c[%s!c] !eNu ai acces la aceasta comanda !",TAG)
    }
}
public remove_godmode(id)
{
    if(get_user_flags(id) & id_vip4(id))
    {
        set_user_godmode(id,0)
        Color_C_Usp(id,"!c[%s!c] !vGodMode!c-ul tau a fost !eOPRIT !c!",TAG)  
    }
    else if(get_user_flags(id) & id_vip3(id))
    {
        set_user_godmode(id,0)
        Color_C_Usp(id,"!c[%s!c] !vGodMode!c-ul tau a fost !eOPRIT !c!",TAG)  
    }  
}
public client_putinserver(id)
{
    if(get_user_flags(id) && read_flags("abcdefghijklmnopqrsu"))
    {
        static vip_name4[32]
        get_user_name(id,vip_name4,31)
        Color_C_Usp(0,"!c[%s!c] !eV.I.P!c-ul !v%s !cs-a conectat pe server. !vGrad !c[ !eG:4 !c]",TAG, vip_name4)
        log_to_file("vip_hns_ultimate_connect.log","!c[%s!c] !eV.I.P!c-ul !v%s !cs-a conectat pe server. !vGrad !c[ !eG:4 !c]",TAG, vip_name4)
    }
	else if(get_user_flags(id) && read_flags("abcdegijmnopqsu"))
    {
        static vip_name4[32]
        get_user_name(id,vip_name4,31)
        Color_C_Usp(0,"!c[%s!c] !eV.I.P!c-ul !v%s !cs-a conectat pe server. !vGrad !c[ !eG:3 !c]",TAG, vip_name4)
        log_to_file("vip_hns_ultimate_connect.log","!c[%s!c] !eV.I.P!c-ul !v%s !cs-a conectat pe server. !vGrad !c[ !eG:3 !c]",TAG, vip_name4)
    }
	else if(get_user_flags(id) && read_flags("abcdeijnopu"))
    {
        static vip_name4[32]
        get_user_name(id,vip_name4,31)
        Color_C_Usp(0,"!c[%s!c] !eV.I.P!c-ul !v%s !cs-a conectat pe server. !vGrad !c[ !eG:2 !c]",TAG, vip_name4)
        log_to_file("vip_hns_ultimate_connect.log","!c[%s!c] !eV.I.P!c-ul !v%s !cs-a conectat pe server. !vGrad !c[ !eG:2 !c]",TAG, vip_name4)
    }
	else if(get_user_flags(id) && read_flags("abceijnou"))
    {
        static vip_name4[32]
        get_user_name(id,vip_name4,31)
        Color_C_Usp(0,"!c[%s!c] !eV.I.P!c-ul !v%s !cs-a conectat pe server. !vGrad !c[ !eG:1 !c]",TAG, vip_name4)
        log_to_file("vip_hns_ultimate_connect.log","!c[%s!c] !eV.I.P!c-ul !v%s !cs-a conectat pe server. !vGrad !c[ !eG:1 !c]",TAG, vip_name4)
    }
}
public client_disconnect(id)
{
    if(get_user_flags(id) && read_flags("abcdefghijklmnopqrsu"))
    {
        static vip_name[32]
        get_user_name(id,vip_name,31)
        Color_C_Usp(0,"!c[%s!c] !eV.I.P!c-ul !v%s !cs-a deconectat de pe server. !vGrad !c[ !eG:4 !c]",TAG, vip_name)
        log_to_file("vip_hns_ultimate_disconnect.log","!c[%s!c] !eV.I.P!c-ul !v%s !cs-a deconectat de pe server. !vGrad !c[ !eG:4 !c]",TAG, vip_name)
    } 
	else if(get_user_flags(id) && read_flags("abcdegijmnopqsu"))
    {
        static vip_name[32]
        get_user_name(id,vip_name,31)
        Color_C_Usp(0,"!c[%s!c] !eV.I.P!c-ul !v%s !cs-a deconectat de pe server. !vGrad !c[ !eG:3 !c]",TAG, vip_name)
        log_to_file("vip_hns_ultimate_disconnect.log","!c[%s!c] !eV.I.P!c-ul !v%s !cs-a deconectat de pe server. !vGrad !c[ !eG:3 !c]",TAG, vip_name)
    } 
	else if(get_user_flags(id) && read_flags("abcdeijnopu"))
    {
        static vip_name[32]
        get_user_name(id,vip_name,31)
        Color_C_Usp(0,"!c[%s!c] !eV.I.P!c-ul !v%s !cs-a deconectat de pe server. !vGrad !c[ !eG:2 !c]",TAG, vip_name)
        log_to_file("vip_hns_ultimate_disconnect.log","!c[%s!c] !eV.I.P!c-ul !v%s !cs-a deconectat de pe server. !vGrad !c[ !eG:2 !c]",TAG, vip_name)
    } 
	else if(get_user_flags(id) && read_flags("abceijnou"))
    {
        static vip_name[32]
        get_user_name(id,vip_name,31)
        Color_C_Usp(0,"!c[%s!c] !eV.I.P!c-ul !v%s !cs-a deconectat de pe server. !vGrad !c[ !eG:1 !c]",TAG, vip_name)
        log_to_file("vip_hns_ultimate_disconnect.log","!c[%s!c] !eV.I.P!c-ul !v%s !cs-a deconectat de pe server. !vGrad !c[ !eG:1 !c]",TAG, vip_name)
    } 
}
public limbaj_vip(id)
{
    if(get_user_flags(id) & VIP_LEVEL4)
    {
        static vip_name[32]
        get_user_name(id,vip_name,31)
        client_cmd(id,"snapshot;wait;wait;wait;wait;wait;snapshot")
        log_to_file("vip_hns_ultimate_limbaj.log","Nume VIP: [ %s ] | Grad: [ 4 ]", vip_name)
        log_to_file("vip_hns_ultimate_limbaj.log","~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
    }
    else if(get_user_flags(id) & VIP_LEVEL3)
    {
        static vip_name[32]
        get_user_name(id,vip_name,31)
        client_cmd(id,"snapshot;wait;wait;wait;wait;wait;snapshot")
        log_to_file("vip_hns_ultimate_limbaj.log","Nume VIP: [ %s ] | Grad: [ 3 ]", vip_name)
        log_to_file("vip_hns_ultimate_limbaj.log","~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
    }  
    else if(get_user_flags(id) & VIP_LEVEL2)
    {
        static vip_name[32]
        get_user_name(id,vip_name,31)
        client_cmd(id,"snapshot;wait;wait;wait;wait;wait;snapshot")
        log_to_file("vip_hns_ultimate_limbaj.log","Nume VIP: [ %s ] | Grad: [ 2 ]", vip_name)
        log_to_file("vip_hns_ultimate_limbaj.log","~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
    }  
    else if(get_user_flags(id) & VIP_LEVEL1)
    {
        static vip_name[32]
        get_user_name(id,vip_name,31)
        client_cmd(id,"snapshot;wait;wait;wait;wait;wait;snapshot")
        log_to_file("vip_hns_ultimate_limbaj.log","Nume VIP: [ %s ] | Grad: [ 1 ]", vip_name)
        log_to_file("vip_hns_ultimate_limbaj.log","~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
    }  
}
public accesvip(id)
{
    if(get_user_flags(id) && read_flags("abcdefghijklmnopqrsu") && is_user_alive(id))
    {
        Color_C_Usp(id,"!c[%s!c] !vV.I.P !cGrad (!eG:4!c)",TAG)  
        Color_C_Usp(id,"!c[%s!c] Ai primit (!e+3 HE!c)(!e+3 SMK!c)(!e+3 FL!c)(!e+3 DGL!c)(!e+80 HP / +50 AP!c)(!eGLOW <3!c)",TAG)   
        Color_C_Usp(id,"!c[%s!c] Ai primit !vGodMode!c(!eBONUS!c) pentru 15 secunde. [!e/godmode!c]",TAG)          
    }
    else if(get_user_flags(id) && read_flags("abcdegijmnopqsu") && is_user_alive(id))
    {
        Color_C_Usp(id,"!c[%s!c] !vV.I.P !cGrad (!eG:3!c)",TAG)  
        Color_C_Usp(id,"!c[%s!c] Ai primit (!e+2 HE!c)(!e+2 SMK!c)(!e+2 FL!c)(!e+2 DGL!c)(!e+60 HP / +40 AP!c)(!eGLOW <3!c)",TAG)   
        Color_C_Usp(id,"!c[%s!c] Ai primit !vGodMode!c(!eBONUS!c) pentru 10 secunde. [!e/godmode!c]",TAG)          
    }  
    else if(get_user_flags(id) && read_flags("abcdeijnopu") && is_user_alive(id))
    {
        Color_C_Usp(id,"!c[%s!c] !vV.I.P !cGrad (!eG:2!c)",TAG)  
        Color_C_Usp(id,"!c[%s!c] Ai primit (!e+2 HE!c)(!e+1 SMK!c)(!e+1 FL!c)(!e+1 DGL!c)(!e+40 HP / +30 AP!c)(!eGLOW <3!c)",TAG)      
    }  
    else if(get_user_flags(id) && read_flags("abceijnou") && is_user_alive(id))
    {
        Color_C_Usp(id,"!c[%s!c] !vV.I.P !cGrad (!eG:1!c)",TAG)  
        Color_C_Usp(id,"!c[%s!c] Ai primit (!e+1 HE!c)(!e+1 SMK!c)(!e+1 USP!c)(!e+20 HP / +20 AP!c)(!eGLOW <3!c)",TAG)
    }  
    else if(is_user_alive(id))
    {
        Color_C_Usp(id,"!c[%s!c] Nu esti !eV.I.P !cpentru a accesa aceasta comanda ! Pentru a afla beneficiile si preturile tasteaza !v/vip !c!",TAG)  
    }
}
public vips_online(id)
{
    new sPlayers[32], iNum, iPlayer
    new sName[32], sBuffer[2048]
    new iLen   
    iLen = formatex(sBuffer, sizeof sBuffer - 1, "<body bgcolor=#000000><font color=#7b68ee><pre>") 
    get_players(sPlayers, iNum, "ch")  
    for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
    {   
        iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><h5><font color=^"yellow^">%s^n</font></h5></center>", GroupNames[p_of_pw])    
        for(new a = 0; a < iNum ; a++)
        {   
            iPlayer = sPlayers[a]
            if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
            {
                get_user_name(iPlayer, sName, sizeof sName - 1)
                iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><font color=^"%s^">%s^n</center></font>", color[p_of_pw], sName)
            }
        }        
    }   
    show_motd(id, sBuffer, motd_msg)
    return PLUGIN_CONTINUE
}
public print_config_server(id)
{
    server_print("In %d secunde serverul va printa CFG-ul -> VIP.HNS.ULTIMATE",iSeconds)
    iSeconds--
    if(iSeconds < 0)
    {
        write_file("vip_hns_ultimate.cfg","vip_hns_ultimate 1",0)
        write_file("vip_hns_ultimate.cfg","vip_give_seconds 15.0",1)
        server_print("CFG-ul -> VIP.HNS.ULTIMATE a fost scris cu succes.")
        remove_task(1234)
    }
}
stock Color_C_Usp(const id, const input[], any:...)
{
	new count = 1, players[32]
	static msg[320], msg2[320]
	vformat(msg, 190, input, 3)
	format(msg2, 190, "%s",msg)
	replace_all(msg2, 190, "!v", "^4") /* Culoarea Verde */
	replace_all(msg2, 190, "!c", "^1") /* Culoarea Alb */
	replace_all(msg2, 190, "!e", "^3")  /* Culoarea Echipei 1 / 2 */
	if (id)
		players[0] = id
	else
		get_players(players, count, "ch")
	for (new i = 0; i < count; i++)
	{
		if (is_user_connected(players))
		{
			message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players)
			write_byte(players)
			write_string(msg2)
			message_end()
		}
	}
}
VdK
Membru, skill 0
Membru, skill 0
Posts: 22
Joined: 15 Aug 2013, 15:29
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 2 times
Contact:

16 Dec 2013, 18:45

Cineva? :(
User avatar
sUperstar
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3324
Joined: 01 Mar 2013, 23:08
Detinator Steam: Da
Reputatie: Restrictie moderator [abuz de functie]
Fost eXtream mod
Utilizator neserios (tepar!)
Has thanked: 41 times
Been thanked: 97 times

17 Dec 2013, 18:12

Mutat in sectiunea corespunzatoare!

1.5. Daca doriti MODIFICAREA unui plugin, postati la ACEASTA sectiune.
RIPPLE FAUCET - Castiga pana la 1 Ripple pe zi!
Post Reply

Return to “Modificari pluginuri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 12 guests