[Pomoc] Leveli za Public srw
Results 1 to 6 of 6
  1. #1
    Junior Member Array
    Join Date
    Jan 2013
    Karma
    0

    Default Leveli za Public srw

    Treba mi hitno POMOC dali moze neko da mi napravi ili da link od nekog plugina za levele tj da bude naprimer pored imena u chatu [1lvl.Noob] i tako to ali da nebude od onog Rasista tj njegov je dobar ali ima i ono ispod radara ali meni to netreba zato sto je kao COD treba mi za PUBLIC srw ako moze neko da mi pomogne i objasni kako da ubacim ako nemoze DOWNLOAD ??? molim vas UNAPRED HVALA K+ ko mi pomogne

  2. #2
    Senior Member Array
    Join Date
    Oct 2011
    Age
    19
    Karma
    8

    Default

    Evo ima od jedne starije teme bas je megastorm okacio kod od plugina
    Quote Originally Posted by MegasToRM View Post
    Ovaj plugin nema prefix,ubacicu ga ja sad.

    edit: evo ga
    Code:
    /* Plugin generated by AMXX-Studio */
    
    #include <amxmodx>
    #include <nvault>
    #include <hamsandwich>
    
    #define HUD 672
    
    enum Cvarovi
    {
    	KILLXP,			HUD_MAIN_RED,		HUD_MAIN_GREEN,
    	HUD_MAIN_BLUE,		HUD_MAIN_X,		HUD_MAIN_Y,
    	HUD_KILL_RED,		HUD_KILL_GREEN,		HUD_KILL_BLUE,
    	HUD_KILL_X,		HUD_KILL_Y,		HUD_LVLUP_RED,
    	HUD_LVLUP_GREEN,	HUD_LVLUP_BLUE,		HUD_LVLUP_X,
    				HUD_LVLUP_Y
    }
    	
    new const g_ImenaCvarova[ Cvarovi ][] =
    {
    	"lvl__ikillxp",		"lvl__hud_red",		"lvl__hud_green",
    	"lvl__hud_blue",	"lvl__main_hud_x",	"lvl__main_hud_y",
    	"lvl__kill_hud_red",	"lvl__kill_hud_green",	"lvl__kill_hud_blue",
    	"lvl__kill_hud_x",	"lvl__kill_hud_y",	"lvl__hud_lvup_red",
    	"lvl__hud_lvup_green",	"lvl__hud_lvup_blue",	"lvl__hud_lvup_x",
    				"lvl__hud_lvup_y"
    };
    	
    new const g_DefaultVrednost[ Cvarovi ][] =
    {
    	"1",			"0",			"250",
    	"0",			"0.02",			"0.25",
    	"60",			"60",			"60",
    	"0.75",			"-1.0",			"60",
    	"60",			"60",			"-1.0",
    				"0.25"
    };
    
    new const Cinovi[][]= 
    { 
        "Razvodnik", 
        "Desetar", 
        "Mladji vodnik", 
        "Vodnik", 
        "Stariji vodnik", 
        "Stariji vodnik I", 
        "Zastavnik", 
        "Zastavnik I", 
        "Potporucnik", 
        "Porucnik", 
        "Kapetan", 
        "Major", 
        "Potpukovnik", 
        "Pukovnik", 
        "Brigadni General", 
        "General-Major", 
        "General-Potpukovnik", 
        "General" 
    } 
    
    new const gLevelNeeded[ ] = {
    	1, 2, 3, 5, 8, 16, 24, 32, 64, 75, 128, 156, 192, 201, 212, 226, 236, 251, 20000
    }
    
    new g_sync2, g_sync1, g_sync, g_podaci, g_SviCvarovi[ Cvarovi ], xp_igraca[33], level_igraca[33] = 1
    
    new bool:human3xdmg[ 33 ], bool:zm3xdmg[ 33 ]
    
    new const cfgfajl[] = "addons/amxmodx/configs/lvl__plugin/lvl__plugin.cfg"
    new const conffolder[] = "addons/amxmodx/configs/lvl__plugin"
    
    public plugin_init() {
    	register_plugin("Level System", "1.0b", "MegastorM")
    	register_cvar("lvl_level_system", "1.0b", (FCVAR_SERVER|FCVAR_SPONLY))
    	g_podaci = nvault_open("lvl_mod");
    	
    	register_event("DeathMsg", "player_death", "ade");
    	
    	g_sync2 = CreateHudSyncObj()
    	g_sync1 = CreateHudSyncObj()
    	g_sync = CreateHudSyncObj()
    	
    	register_message(get_user_msgid("SayText"),"Message_SayText"); 
    	
    	for ( new Cvarovi:i = KILLXP ; i < Cvarovi ; i++ )
    		g_SviCvarovi[ i ] = register_cvar( g_ImenaCvarova[ i ] , g_DefaultVrednost[ i ] );
    }
    public plugin_precache()
    {
    	mkdir(conffolder)
    	if(!file_exists(cfgfajl))
    	{
    		write_file(cfgfajl,"*****************************[Level Podesavanja]*****************************")
    		write_file(cfgfajl,"<<----------------Ovde podesavate sve cvarove vezane za plugin---------------->>")
    		write_file(cfgfajl," ")
    		write_file(cfgfajl," ")
    		write_file(cfgfajl,"//Cvar za iskustvo koje se dobije za jedno ubistvo")
    		write_file(cfgfajl,"lvl_ikillxp ^"1^"	//KillXP")
    		write_file(cfgfajl," ")
    		write_file(cfgfajl,"//Cvarovi za boje i poziciju glavnog HUD-a")
    		write_file(cfgfajl,"lvl__hud_red ^"0^"			//kolicina crvene boje za glavni Hud(0-255)")
    		write_file(cfgfajl,"lvl__hud_green ^"250^"		//Kolicina zelene boje za glavni HUD(0-255)")
    		write_file(cfgfajl,"lvl__hud_blue ^"0^"		//Kolicina zelene boje za glavni HUD(0-255)")
    		write_file(cfgfajl,"lvl__main_hud_x ^"0.02^"		//Nocni XP(-1.0 je za centar,0.0 skroz levo,1.0 skroz desno)")
    		write_file(cfgfajl,"lvl__main_hud_y ^"0.25^"		//Normalan XP(-1.0 je za centar,0.0 skroz levo,1.0 skroz desno)")
    		write_file(cfgfajl," ")
    		write_file(cfgfajl,"//Cvarovi za boje i poziciju HUD-a za nagrade")
    		write_file(cfgfajl,"lvl__kill_hud_red ^"60^"		//Kolicina zelene za HUD za nagrade(0-255)")
    		write_file(cfgfajl,"lvl__kill_hud_green ^"60^"		//Kolicina zelene za HUD za nagrade(0-255)")
    		write_file(cfgfajl,"lvl__kill_hud_blue ^"60^"		//Kolicina zelene za HUD za nagrade(0-255)")
    		write_file(cfgfajl,"lvl__kill_hud_x ^"0.75^"		//X koordinata za HUD za nagrade(-1.0 je za centar,0.0 skroz levo,1.0 skroz desno)")
    		write_file(cfgfajl,"lvl__kill_hud_y ^"-1.0^"		//Y koordinata za HUD za nagrade(-1.0 je za centar,0.0 skroz levo,1.0 skroz desno)")
    		write_file(cfgfajl," ")
    		write_file(cfgfajl,"//Cvarovi za boje i poziciju Level UP! HUD-a")
    		write_file(cfgfajl,"lvl__hud_lvup_red ^"60^"		//Kolicina crvene boje za Level Up! HUD(0-255)")
    		write_file(cfgfajl,"lvl__hud_lvup_green ^"60^"		//Kolicina zelene boje za Level Up! HUD(0-255)")
    		write_file(cfgfajl,"lvl__hud_lvup_blue ^"60^"		//Kolicina plave boje za Level Up! HUD(0-255)")
    		write_file(cfgfajl,"lvl__hud_lvup_x ^"-1.0^"		//X koordinata za Level Up! HUD(-1.0 je za centar,0.0 skroz levo,1.0 skroz desno)")
    		write_file(cfgfajl,"lvl__hud_lvup_y ^"0.25^"		//Y koordinata za Level Up! HUD(-1.0 je za centar,0.0 skroz levo,1.0 skroz desno)")
    	}
    	server_cmd("exec %s", cfgfajl)
    	server_exec()
    }
    
    public Message_SayText(msgId,msgDest,msgEnt) 
    { 
    	new id = get_msg_arg_int(1); 
    	if( is_user_connected(id) ) 
    	{ 
    		new szChannel[64];
    		get_msg_arg_string(2, szChannel, charsmax(szChannel));
    		if( equal(szChannel, "#Cstrike_Chat_All") ) 
    		{ 
    				if(!is_user_alive(id))
    				{
    					formatex(szChannel, charsmax(szChannel), "^1*DEAD*^4[%s:%d]^3%%s1 ^1:  %%s2",Cinovi[Getcin(level_igraca[id])],level_igraca[id]); 
    					set_msg_arg_string(2, szChannel); 
    				}
    				else
    				{
    					formatex(szChannel, charsmax(szChannel), "^4[%s:%d]^3%%s1 ^1:  %%s2",Cinovi[Getcin(level_igraca[id])],level_igraca[id]); 
    					set_msg_arg_string(2, szChannel); 
    				}
    		}
    	} 
    }
    
    public pokazi_podatke(id)
    {
    	id -= HUD
    	
    	if(!is_user_connected(id))
    		return PLUGIN_HANDLED
    	
    	set_task(0.3, "pokazi_podatke", id+HUD);
    	set_hudmessage(get_pcvar_num(g_SviCvarovi[ HUD_MAIN_RED ]),get_pcvar_num(g_SviCvarovi[ HUD_MAIN_GREEN ]),get_pcvar_num(g_SviCvarovi[ HUD_MAIN_BLUE ]), get_pcvar_float(g_SviCvarovi[ HUD_MAIN_X ]), get_pcvar_float( g_SviCvarovi[ HUD_MAIN_Y ]), 0, 1.0, 2.0, 0.1, 0.2);
    	ShowSyncHudMsg(id, g_sync1, "[Level: %i]^n[Exp: %i / %i]",level_igraca[id], xp_igraca[id], xp_za_level(level_igraca[id]))
    	
    	return PLUGIN_CONTINUE;
    }  
    
    public player_death()
    {
    	new attacker = read_data(1)
    	
    	if(!is_user_connected(attacker))
    		return PLUGIN_HANDLED
    	
    	new xp_za_ubistvo = get_pcvar_num(g_SviCvarovi[ KILLXP ])
    	
    	xp_igraca[attacker] += xp_za_ubistvo
    	set_hudmessage(get_pcvar_num(g_SviCvarovi[ HUD_KILL_RED ]), get_pcvar_num(g_SviCvarovi[ HUD_KILL_GREEN ]), get_pcvar_num(g_SviCvarovi[ HUD_KILL_BLUE ]), get_pcvar_float(g_SviCvarovi[ HUD_KILL_X ]), get_pcvar_float(g_SviCvarovi[ HUD_KILL_Y ]), 1, 0.5, 0.5, 1.0, 1.0) 
    	ShowSyncHudMsg(attacker, g_sync2, "+%d XP", xp_za_ubistvo) 
    	proverilvl(attacker)
    
    	return PLUGIN_CONTINUE
    }
    
    public proverilvl(id)
    {
    	while(xp_igraca[id] >= xp_za_level(level_igraca[id]))
    		{
    			level_igraca[id]++
    			Sacuvaj(id)
    			set_hudmessage(get_pcvar_num(g_SviCvarovi[ HUD_LVLUP_RED ]), get_pcvar_num(g_SviCvarovi[ HUD_LVLUP_GREEN ]), get_pcvar_num(g_SviCvarovi[ HUD_LVLUP_BLUE ]), get_pcvar_float(g_SviCvarovi[ HUD_LVLUP_X ]), get_pcvar_float(g_SviCvarovi[ HUD_LVLUP_Y ]), 1, 0.5, 0.5, 1.0, 1.0, -1) 
    			ShowSyncHudMsg(id, g_sync, "%i level!", level_igraca[id]);
    		}
    	
    	return PLUGIN_CONTINUE
    }
    
    public xp_za_level(lvl)
    	return lvl*3*2;
    	
    Getcin(iNum)
    {
    	for( new i = 19 - 1; i >= 0; i-- )
    	{
    		if( iNum >= gLevelNeeded[ i ] )
    			return i;
    	}
    	return 0;
    }
    
    public client_putinserver(id)
    {
    	level_igraca[id] = 1
    	human3xdmg[ id ] = false
    	zm3xdmg[ id ] = false
    	
    	Ucitaj(id)
    	set_task(3.0, "pokazi_podatke", id+HUD);
    }
    
    public client_disconnect(id)
    {
    	human3xdmg[ id ] = false
    	zm3xdmg[ id ] = false
    	Sacuvaj(id)
    }
    
    public Sacuvaj(id)
    {
    	new vltkey[128]
    	new podaci[256]
    	new steam_id_igraca[64];
    	format(podaci, charsmax(podaci),"#%i#%i", xp_igraca[id], level_igraca[id]);
    	
    	get_user_authid(id, steam_id_igraca, charsmax(steam_id_igraca))
    	
    	format(vltkey, charsmax(vltkey),"%s-lvl_mod", steam_id_igraca);
    	nvault_set(g_podaci,vltkey,podaci);
    	
    	return PLUGIN_CONTINUE;
    }
    
    public Ucitaj(id)
    {
    	new vltkey[128]
    	new podaci[256]
    	new steam_id_igraca[64];
    	
    	get_user_authid(id, steam_id_igraca, charsmax(steam_id_igraca))
    	
    	format(vltkey, charsmax(vltkey),"%s-lvl_mod", steam_id_igraca);
    	nvault_get(g_podaci,vltkey,podaci,255);
    	
    	replace_all(podaci, 255, "#", " ");
    	
    	new plrinfo[2][32];
    	
    	parse(podaci, plrinfo[0], 31, plrinfo[1], 31);
    	
    	xp_igraca[id] = str_to_num(plrinfo[0]);
    	level_igraca[id] = str_to_num(plrinfo[1])>0?str_to_num(plrinfo[1]):1;
    	
    	return PLUGIN_CONTINUE;
    } 
    
    public plugin_end() 
    	nvault_close(g_podaci)
    Ako ne znas kako da napravis plugin posto sam video tamo post da si napisao da ne znas kako to da uradis, idi na ovaj link http://www.amxmodx.org/webcompiler.cgi i tu prekopiras ceo kod plugina, das mu ime koje hoces i samo pritisnes compile i posle ubacis na srv

  3. #3
    Junior Member Array
    Join Date
    Jan 2013
    Karma
    0

    Default Neznam kako da ubacim nema DOWNLOAD objasnite pls

    Ali kako da ubacim ljudi to TJ nema DOWNLOAD kako da ubacim de?? objasnite pls K+ ko objasni

  4. #4
    Senior Member Array
    Join Date
    Feb 2013
    Karma
    0

    Default

    Quote Originally Posted by mCsTeFKe View Post
    Ali kako da ubacim ljudi to TJ nema DOWNLOAD kako da ubacim de?? objasnite pls K+ ko objasni
    Evo ti odavde skini taj plugin http://www.2shared.com/file/euNJxDAv/lvl.html

  5. #5
    Junior Member Array
    Join Date
    Feb 2013
    Location
    Orasje
    Karma
    0

    Default

    Imam ja ali za uzvrat nest se moramo dogoovoriti

  6. #6
    Senior Member Array
    Join Date
    Oct 2013
    Location
    Ispod tebe !
    Karma
    0

    Default

    Mogu ja da ti sredim sve samo da ga ubacis na srv.... Ne trazim nista radim free u koliko si zainteresovan javi mi se u PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •