Eroare la complilare ..2

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
Soke
Membru, skill +1
Membru, skill +1
Posts: 248
Joined: 31 May 2012, 20:58
Detinator Steam: Da
CS Status: Umblu pe forum
Detinator server CS: Da
SteamID: MorenuRaulAndrei
Has thanked: 11 times
Been thanked: 16 times
Contact:

16 Dec 2013, 22:10

Salut , imi puteti face si mie pluginu asta .. da eroare la compliare nu stiu ce sa i fac ..
| Afiseaza codul
/*

VIP HNS -> Ultimate 

*/

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <engine>
#include <cstrike>
#include <hamsandwich>

/* <><><><><><><><><><><><><><><><><><><><><><><>~ Define Grenazi <><><><><><><><><><><><><><><><><><><><><><><> */


/* -------------------------------> HE*/

#define _HE "weapon_hegrenade"
#define _HE2 "weapon_hegrenade"

/* -------------------------------> HE_GRENADE */

#define _HEG CSW_HEGRENADE
#define _HEG2 CSW_HEGRENADE

/* -------------------------------> SMOKE */

#define _SM "weapon_smokegrenade"
#define _SM2 "weapon_smokegrenade"

/* -------------------------------> SM_GRENADE */

#define _SMG CSW_SMOKEGRENADE
#define _SMG2 CSW_SMOKEGRENADE

/* -------------------------------> FLASH */

#define _FL "weapon_flashbang"
#define _FL2 "weapon_flashbang"

/* -------------------------------> FL_GRENADE */

#define _FLG CSW_FLASHBANG
#define _FLG2 CSW_FLASHBANG

/* <><><><><><><><><><><><><><><><><><><><><><><>~ Define Arme <><><><><><><><><><><><><><><><><><><><><><><> */

/* -------------------------------> DEAGLE */

#define _DGLW "weapon_deagle"
#define _DGLW2 "weapon_deagle"

/* <><><><><><><><><><><><><><><><><><><><><><><>~ Define HP & AP <><><><><><><><><><><><><><><><><><><><><><><> */


/* -------------------------------> HP */

#define _HP get_user_health
#define _HP2 get_user_health

/* -------------------------------> AP */

#define _AP get_user_armor
#define _AP2 get_user_armor

/* <><><><><><><><><><><><><><><><><><><><><><><>~ Define Groups <><><><><><><><><><><><><><><><><><><><><><><> */

#define GROUPS_NAME		2
#define GROUPS_ACCESS		2

/* <><><><><><><><><><><><><><><><><><><><><><><>~ TAG <><><><><><><><><><><><><><><><><><><><><><><> */

static const TAG[] = "!c!vV.I.P!c"

/* <><><><><><><><><><><><><><><><><><><><><><><>~ New Limita <><><><><><><><><><><><><><><><><><><><><><><> */

new limita[32]

/* <><><><><><><><><><><><><><><><><><><><><><><>~ Define RRR GGG BBB <><><><><><><><><><><><><><><><><><><><><><><> */

#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 \rSekoZ \w!" 

/* <><><><><><><><><><><><><><><><><><><><><><><>~ New <><><><><><><><><><><><><><><><><><><><><><><> */

new GroupFlags[GROUPS_ACCESS][] = 
{
    "abcdefigjklmopqr",
    "abcdefihjklmopqr"

}
new GroupFlagsValue[GROUPS_NAME]
new iSeconds = 10
new cvar_give

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")  

    
    // 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 /vip","vips_online")
    register_clcmd("say .vip","vips_online")    
    register_clcmd("say vip","vips_online")
    
    // Print Plugin CFG
    
    set_task(1.0,"print_config_server",1234,_,_,"b",_) 

    // Cvar 
    
    cvar_give = 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(get_user_flags(id) & ADMIN_LEVEL_G && is_user_alive(id))
    {
        set_task(get_pcvar_float(cvar_give),"give",id)
        set_user_rendering(id, kRenderFxGlowShell, 255, 140, 0, kRenderNormal, 20)
    }  
    else if(get_user_flags(id) & ADMIN_LEVEL_H && is_user_alive(id))
    {
        set_task(get_pcvar_float(cvar_give),"give",id)
        set_user_rendering(id, kRenderFxGlowShell, 255, 140, 0, kRenderNormal, 20)
    }  
}
public give(id)
{        

    else if(get_user_flags(id) & ADMIN_LEVEL_G)
    {
        // Grenazi
        
        give_item(id,_HE2)
        give_item(id,_SM2)
        give_item(id,_FL2)
        cs_set_user_bpammo(id, _HEG2, 4)
        cs_set_user_bpammo(id, _SMG2, 4)
        cs_set_user_bpammo(id, _FLG2, 3)
        
        // Arme
        
        give_item(id,_DGLW2)
        new gL_DGLW3 = find_ent_by_owner(-1,_DGLW2,id)
        if(gL_DGLW3)
        cs_set_weapon_ammo(gL_DGLW2, 2)
        
        // HP
        
        set_user_health(id, _HP4(id) + 150)

        // AP
       
        set_user_armor(id, _AP4(id) + 150)
        
        // Mesaj chat 
        
        Color_C_Usp(id,"!c[!e%s!c][!vG:2!c] Esti !vV.I.P!c !",TAG)  
        Color_C_Usp(id,"!c[!e%s!c][!vG:2!c] !eItem!c -> [!e+!v4HE!c][!e+!v4SM!c][!e+!v3FL!c][!vDGL !e+!v2GL!c][!v150 !eHP!v/!eAP!c][!vGlow!c]",TAG)            
    }  
    else if(get_user_flags(id) & ADMIN_LEVEL_H)
    {
        // Grenazi
        
        give_item(id,_HE)
        give_item(id,_SM)
        give_item(id,_FL)
        cs_set_user_bpammo(id, _HEG, 3)
        cs_set_user_bpammo(id, _SMG, 3)
        cs_set_user_bpammo(id, _FLG, 2)
        
        // Arme
        
        give_item(id,_USPW)
        new gL_USPW = find_ent_by_owner(-1,_USPW,id)
        if(gL_USPW)
        cs_set_weapon_ammo(gL_DGLW, 1)
        
        // HP
        
        set_user_health(id, _HP4(id) + 125)

        // AP
       
        set_user_armor(id, _AP4(id) + 125)
        
        // Mesaj chat 
        
        Color_C_Usp(id,"!c[!e%s!c][!vG:1!c] Esti !vV.I.P!c !",TAG)  
        Color_C_Usp(id,"!c[!e%s!c][!vG:1!c] !eItem!c -> [!e+!v3HE!c][!e+!v3SM!c][!e+!v2FL!c][!vDGL !e+!v1GL!c][!v125 !eHP!v/!eAP!c][!vGlow!c]",TAG)
    }  
}

public client_putinserver(id)
{
    if(get_user_flags(id) && read_flags("abcdefigjklmopq"))
    {
        static vip_name[32]
        get_user_name(id,vip_name,31)
        Color_C_Usp(0,"!c[!e%s!c] Se conecteaza pe server: !v%s!c ! !e[!vV.I.P!e]!c[!vG:2!c]",TAG, vip_name)
        log_to_file("vip_hns_ultimate_connect.log","VIP: [ %s ] sa conectat pe server. [ G:2 ]", vip_name)
        log_to_file("vip_hns_ultimate_connect.log","~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
    }  
    else if(get_user_flags(id) && read_flags("abcdefihjklmopq"))
    {
        static vip_name[32]
        get_user_name(id,vip_name,31)
        Color_C_Usp(0,"!c[!e%s!c] Se conecteaza pe server: !v%s!c ! !e[!vV.I.P!e]!c[!vG:1!c]",TAG, vip_name)
        log_to_file("vip_hns_ultimate_connect.log","VIP: [ %s ] sa conectat pe server. [ G:1 ]", vip_name)
        log_to_file("vip_hns_ultimate_connect.log","~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
    }  
}
public client_disconnect(id)
{
    if(get_user_flags(id) && read_flags("abcdefigjklmopq"))
    {
        static vip_name[32]
        get_user_name(id,vip_name,31)
        Color_C_Usp(0,"!c[!e%s!c] Sa deconectat de pe server: !v%s!c ! !e[!vV.I.P!e]!c[!vG:2!c]",TAG, vip_name)
        log_to_file("vip_hns_ultimate_disconnect.log","VIP: [ %s ] sa deconectat de pe server. [ G:2 ]", vip_name)
        log_to_file("vip_hns_ultimate_disconnect.log","~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
    }  
    else if(get_user_flags(id) && read_flags("abcdefihjklmopq"))
    {
        static vip_name[32]
        get_user_name(id,vip_name,31)
        Color_C_Usp(0,"!c[!e%s!c] Sa deconectat de pe server: !v%s!c ! !e[!vV.I.P!e]!c[!vG:1!c]",TAG, vip_name)
        log_to_file("vip_hns_ultimate_disconnect.log","VIP: [ %s ] sa deconectat de pe server. [ G:1 ]", vip_name)
        log_to_file("vip_hns_ultimate_disconnect.log","~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
    }  
}
public limbaj_vip(id)
{
    if(get_user_flags(id) & ADMIN_LEVEL_G)
    {
        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) & ADMIN_LEVEL_H)
    {
        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) & ADMIN_LEVEL_G && is_user_alive(id))
    {
        Color_C_Usp(id,"!c[!e%s!c][!vG:2!c] Esti !vV.I.P!c !",TAG)  
        Color_C_Usp(id,"!c[!e%s!c][!vG:2!c] !eItem!c -> [!e+!v4HE!c][!e+!v4SM!c][!e+!v3FL!c][!vDGL !e+!v2GL!c][!v150 !eHP!v/!eAP!c][!vGlow!c]",TAG)            
    }  
    else if(get_user_flags(id) & ADMIN_LEVEL_H && is_user_alive(id))
    {
        Color_C_Usp(id,"!c[!e%s!c][!vG:1!c] Esti !vV.I.P!c !",TAG)  
        Color_C_Usp(id,"!c[!e%s!c][!vG:1!c] !eItem!c -> [!e+!v3HE!c][!e+!v3SM!c][!e+!v2FL!c][!vDGL !e+!v1GL!c][!v125 !eHP!v/!eAP!c][!vGlow!c]",TAG)
    }  
    else if(is_user_alive(id))
    {
        Color_C_Usp(id,"!c[!e%s!c] Nu esti !vV.I.P!c !",TAG)  
    }
}
public vips_online(id)
{
	new sPlayers[32], iNum, iPlayer
	new sName[32]
	new szMenu[256], nLen, keys
	get_players(sPlayers, iNum, "ch")
        nLen += format(szMenu[nLen], 255-nLen,"\rV\w.\rI\w.\rP \yOnline:^n^n")
	for(new a = 0; a < iNum ; a++)
		{   
        iPlayer = sPlayers[a]
        if(get_user_flags(iPlayer) && read_flags("abcdefigjklmopq"))
        {
            get_user_name(iPlayer, sName, sizeof sName - 1)
            nLen += format(szMenu[nLen], 255-nLen,"\r[\w Nume: \y%s\w | Acces: \yG\w:\y2\r ]^n", sName)
        }
        else if(get_user_flags(iPlayer) && read_flags("abcdefihjklmopq"))
        {
            get_user_name(iPlayer, sName, sizeof sName - 1)
            nLen += format(szMenu[nLen], 255-nLen,"\r[\w Nume: \y%s\w | Acces: \yG\w:\y1\r ]^n", sName)
        }
		}
	keys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<9)
	show_menu(id,keys,szMenu,-1)
	return 0
}
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 Chatului */
	replace_all(msg2, 190, "!e", "^3")  /* Culoarea Echipei 1 */
	replace_all(msg2, 190, "!e2", "^0")  /* Culoarea Echipei 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()
		}
	}
}
Rapidserver
User avatar
DaNNe.
Fost moderator
Fost moderator
Posts: 2808
Joined: 08 Nov 2013, 20:43
Detinator Steam: Da
CS Status: Activitate scăzută
SteamID: /id/FurienMaster
Reputatie: Nick anterior: DnD. Gold, Emrys
0.5/3
Fost moderator ajutator
Fost Membru Club eXtreamCS (doua luni)
Has thanked: 230 times
Been thanked: 128 times
Contact:

16 Dec 2013, 23:14

Poftim :D
| Afiseaza codul
/*

VIP HNS -> Ultimate 

*/

#include < 		amxmodx		>
#include <		amxmisc		>
#include <		fun			>
#include <		engine		>
#include <		cstrike		>
#include <		hamsandwich >
#include <		fakemeta_util >
#include <		fakemeta 	>

/* <><><><><><><><><><><><><><><><><><><><><><><>~ Define Grenazi <><><><><><><><><><><><><><><><><><><><><><><> */


/* -------------------------------> HE*/

#define _HE "weapon_hegrenade"
#define _HE2 "weapon_hegrenade"

/* -------------------------------> HE_GRENADE */

#define _HEG CSW_HEGRENADE
#define _HEG2 CSW_HEGRENADE

/* -------------------------------> SMOKE */

#define _SM "weapon_smokegrenade"
#define _SM2 "weapon_smokegrenade"

/* -------------------------------> SM_GRENADE */

#define _SMG CSW_SMOKEGRENADE
#define _SMG2 CSW_SMOKEGRENADE

/* -------------------------------> FLASH */

#define _FL "weapon_flashbang"
#define _FL2 "weapon_flashbang"

/* -------------------------------> FL_GRENADE */

#define _FLG CSW_FLASHBANG
#define _FLG2 CSW_FLASHBANG

/* <><><><><><><><><><><><><><><><><><><><><><><>~ Define Arme <><><><><><><><><><><><><><><><><><><><><><><> */

/* -------------------------------> DEAGLE */

#define _DGLW "weapon_deagle"
#define _DGLW2 "weapon_deagle"

#define _USPW "weapon_usp"

/* <><><><><><><><><><><><><><><><><><><><><><><>~ Define HP & AP <><><><><><><><><><><><><><><><><><><><><><><> */


/* -------------------------------> HP */

#define _HP get_user_health
#define _HP2 get_user_health

/* -------------------------------> AP */

#define _AP get_user_armor
#define _AP2 get_user_armor

/* <><><><><><><><><><><><><><><><><><><><><><><>~ Define Groups <><><><><><><><><><><><><><><><><><><><><><><> */

#define GROUPS_NAME		2
#define GROUPS_ACCESS		2

/* <><><><><><><><><><><><><><><><><><><><><><><>~ TAG <><><><><><><><><><><><><><><><><><><><><><><> */

static const TAG[] = "!c!vV.I.P!c"

/* <><><><><><><><><><><><><><><><><><><><><><><>~ New Limita <><><><><><><><><><><><><><><><><><><><><><><> */

new limita[32]

/* <><><><><><><><><><><><><><><><><><><><><><><>~ Define RRR GGG BBB <><><><><><><><><><><><><><><><><><><><><><><> */

#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 \rSekoZ \w!" 

/* <><><><><><><><><><><><><><><><><><><><><><><>~ New <><><><><><><><><><><><><><><><><><><><><><><> */

new GroupFlags[GROUPS_ACCESS][] = 
{
    "abcdefigjklmopqr",
    "abcdefihjklmopqr"

}
new GroupFlagsValue[GROUPS_NAME]
new iSeconds = 10
new cvar_give

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")  

    
    // 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 /vip","vips_online")
    register_clcmd("say .vip","vips_online")    
    register_clcmd("say vip","vips_online")
    
    // Print Plugin CFG
    
    set_task(1.0,"print_config_server",1234,_,_,"b",_) 

    // Cvar 
    
    cvar_give = 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(get_user_flags(id) & ADMIN_LEVEL_G && is_user_alive(id))
    {
        set_task(get_pcvar_float(cvar_give),"give",id)
        set_user_rendering(id, kRenderFxGlowShell, 255, 140, 0, kRenderNormal, 20)
    }  
    else if(get_user_flags(id) & ADMIN_LEVEL_H && is_user_alive(id))
    {
        set_task(get_pcvar_float(cvar_give),"give",id)
        set_user_rendering(id, kRenderFxGlowShell, 255, 140, 0, kRenderNormal, 20)
    }  
}
public give(id)
{        

    if(get_user_flags(id) & ADMIN_LEVEL_G)
    {
        // Grenazi
        
        give_item(id,_HE2)
        give_item(id,_SM2)
        give_item(id,_FL2)
        cs_set_user_bpammo(id, _HEG2, 4)
        cs_set_user_bpammo(id, _SMG2, 4)
        cs_set_user_bpammo(id, _FLG2, 3)
        
        // Arme
        
        give_item(id,_DGLW2)
        new gL_DGLW3 = find_ent_by_owner(-1,_DGLW2,id)
        if(gL_DGLW3)
        cs_set_weapon_ammo(gL_DGLW3, 2)
        
        // HP
        
        fm_set_user_health ( id, get_user_health ( id ) + 150 );

        // AP
       
        fm_set_user_health ( id, get_user_health ( id ) + 150 )
        
        // Mesaj chat 
        
        Color_C_Usp(id,"!c[!e%s!c][!vG:2!c] Esti !vV.I.P!c !",TAG)  
        Color_C_Usp(id,"!c[!e%s!c][!vG:2!c] !eItem!c -> [!e+!v4HE!c][!e+!v4SM!c][!e+!v3FL!c][!vDGL !e+!v2GL!c][!v150 !eHP!v/!eAP!c][!vGlow!c]",TAG)            
    }  
    else if(get_user_flags(id) & ADMIN_LEVEL_H)
    {
        // Grenazi
        
        give_item(id,_HE)
        give_item(id,_SM)
        give_item(id,_FL)
        cs_set_user_bpammo(id, _HEG, 3)
        cs_set_user_bpammo(id, _SMG, 3)
        cs_set_user_bpammo(id, _FLG, 2)
        
        // Arme
        
        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
        
        fm_set_user_health ( id, get_user_health ( id ) + 125 );

        // AP
       
        fm_set_user_armor ( id, get_user_armor ( id ) + 125 );
        
        // Mesaj chat 
        
        Color_C_Usp(id,"!c[!e%s!c][!vG:1!c] Esti !vV.I.P!c !",TAG)  
        Color_C_Usp(id,"!c[!e%s!c][!vG:1!c] !eItem!c -> [!e+!v3HE!c][!e+!v3SM!c][!e+!v2FL!c][!vDGL !e+!v1GL!c][!v125 !eHP!v/!eAP!c][!vGlow!c]",TAG)
    }  
}

public client_putinserver(id)
{
    if(get_user_flags(id) && read_flags("abcdefigjklmopq"))
    {
        static vip_name[32]
        get_user_name(id,vip_name,31)
        Color_C_Usp(0,"!c[!e%s!c] Se conecteaza pe server: !v%s!c ! !e[!vV.I.P!e]!c[!vG:2!c]",TAG, vip_name)
        log_to_file("vip_hns_ultimate_connect.log","VIP: [ %s ] sa conectat pe server. [ G:2 ]", vip_name)
        log_to_file("vip_hns_ultimate_connect.log","~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
    }  
    else if(get_user_flags(id) && read_flags("abcdefihjklmopq"))
    {
        static vip_name[32]
        get_user_name(id,vip_name,31)
        Color_C_Usp(0,"!c[!e%s!c] Se conecteaza pe server: !v%s!c ! !e[!vV.I.P!e]!c[!vG:1!c]",TAG, vip_name)
        log_to_file("vip_hns_ultimate_connect.log","VIP: [ %s ] sa conectat pe server. [ G:1 ]", vip_name)
        log_to_file("vip_hns_ultimate_connect.log","~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
    }  
}
public client_disconnect(id)
{
    if(get_user_flags(id) && read_flags("abcdefigjklmopq"))
    {
        static vip_name[32]
        get_user_name(id,vip_name,31)
        Color_C_Usp(0,"!c[!e%s!c] Sa deconectat de pe server: !v%s!c ! !e[!vV.I.P!e]!c[!vG:2!c]",TAG, vip_name)
        log_to_file("vip_hns_ultimate_disconnect.log","VIP: [ %s ] sa deconectat de pe server. [ G:2 ]", vip_name)
        log_to_file("vip_hns_ultimate_disconnect.log","~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
    }  
    else if(get_user_flags(id) && read_flags("abcdefihjklmopq"))
    {
        static vip_name[32]
        get_user_name(id,vip_name,31)
        Color_C_Usp(0,"!c[!e%s!c] Sa deconectat de pe server: !v%s!c ! !e[!vV.I.P!e]!c[!vG:1!c]",TAG, vip_name)
        log_to_file("vip_hns_ultimate_disconnect.log","VIP: [ %s ] sa deconectat de pe server. [ G:1 ]", vip_name)
        log_to_file("vip_hns_ultimate_disconnect.log","~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
    }  
}
public limbaj_vip(id)
{
    if(get_user_flags(id) & ADMIN_LEVEL_G)
    {
        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) & ADMIN_LEVEL_H)
    {
        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) & ADMIN_LEVEL_G && is_user_alive(id))
    {
        Color_C_Usp(id,"!c[!e%s!c][!vG:2!c] Esti !vV.I.P!c !",TAG)  
        Color_C_Usp(id,"!c[!e%s!c][!vG:2!c] !eItem!c -> [!e+!v4HE!c][!e+!v4SM!c][!e+!v3FL!c][!vDGL !e+!v2GL!c][!v150 !eHP!v/!eAP!c][!vGlow!c]",TAG)            
    }  
    else if(get_user_flags(id) & ADMIN_LEVEL_H && is_user_alive(id))
    {
        Color_C_Usp(id,"!c[!e%s!c][!vG:1!c] Esti !vV.I.P!c !",TAG)  
        Color_C_Usp(id,"!c[!e%s!c][!vG:1!c] !eItem!c -> [!e+!v3HE!c][!e+!v3SM!c][!e+!v2FL!c][!vDGL !e+!v1GL!c][!v125 !eHP!v/!eAP!c][!vGlow!c]",TAG)
    }  
    else if(is_user_alive(id))
    {
        Color_C_Usp(id,"!c[!e%s!c] Nu esti !vV.I.P!c !",TAG)  
    }
}
public vips_online(id)
{
	new sPlayers[32], iNum, iPlayer
	new sName[32]
	new szMenu[256], nLen, keys
	get_players(sPlayers, iNum, "ch")
        nLen += format(szMenu[nLen], 255-nLen,"\rV\w.\rI\w.\rP \yOnline:^n^n")
	for(new a = 0; a < iNum ; a++)
		{   
        iPlayer = sPlayers[a]
        if(get_user_flags(iPlayer) && read_flags("abcdefigjklmopq"))
        {
            get_user_name(iPlayer, sName, sizeof sName - 1)
            nLen += format(szMenu[nLen], 255-nLen,"\r[\w Nume: \y%s\w | Acces: \yG\w:\y2\r ]^n", sName)
        }
        else if(get_user_flags(iPlayer) && read_flags("abcdefihjklmopq"))
        {
            get_user_name(iPlayer, sName, sizeof sName - 1)
            nLen += format(szMenu[nLen], 255-nLen,"\r[\w Nume: \y%s\w | Acces: \yG\w:\y1\r ]^n", sName)
        }
		}
	keys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<9)
	show_menu(id,keys,szMenu,-1)
	return 0
}
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 Chatului */
	replace_all(msg2, 190, "!e", "^3")  /* Culoarea Echipei 1 */
	replace_all(msg2, 190, "!e2", "^0")  /* Culoarea Echipei 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()
		}
	}
}
Contact: Activitate scazuta.
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 12 guests