Cerere plugin hpkillbonus

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:

30 Dec 2013, 00:44

Salut, caut un plugin dar nu gasesc nici cum acel plugin hp kill bonus cand omori adversarul iti da hp si ti se face ecranul albastru :) pentru respawn . Multumesc
Rapidserver
User avatar
pinky.
Membru, skill +1
Membru, skill +1
Posts: 163
Joined: 14 Apr 2013, 16:07
Detinator Steam: Da
CS Status: Busy!
Detinator server CS: STAR.CSBEST.RO
Location: Focşani
Has thanked: 2 times
Been thanked: 7 times
Contact:

30 Dec 2013, 00:45

Cosmin
Fost moderator
Fost moderator
Posts: 9366
Joined: 06 Jul 2013, 21:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 546 times

30 Dec 2013, 01:28

| Afiseaza codul
#include <amxmodx>
#include <fun>

#define PLUGIN "S&M"
#define VERSION "1.0"
#define AUTHOR "C0sm1N" // am luat efectul acela dintr-un alt plugin (numai stiu care e scuze :)) )

new pHealth

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_event("DeathMsg","ev_deathmsg","a")
	
	pHealth = register_cvar("bonus","10")
}
public ev_deathmsg(id)
{
	new iKiller
	new iVictim
	iKiller = read_data(1)
	iVictim = read_data(2)
	
	if(iKiller != iVictim && is_user_alive(iKiller))
	{
		set_user_health(iKiller,get_user_health(id) + get_pcvar_num(pHealth))
		set_task(0.1,"efect",iKiller)
	}
}
public efect(id)  
{ 
	new players[32], playerx,a,inum
	get_players(players, inum)
	for(a = 0; a < inum; ++a) {
	playerx = players[a];
	switch (get_user_team(playerx)){
            case 1: {
                Fade(playerx,255,0,0,30) 
            }
            case 2: {
                Fade(playerx,0,0,255,30)
            }
            case 3:{
                Fade(playerx,0,255,0,30)
            }
        }
    } 
} 

stock Fade(index,red,green,blue,alpha)
{
	message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},index)
	write_short(5<<10)
	write_short(5<<10)
	write_short(5<<12)
	write_byte(red)
	write_byte(green)
	write_byte(blue)
	write_byte(alpha)
	message_end()
}
Ia vezi.
User avatar
Lothbrok
Membru, skill +1
Membru, skill +1
Posts: 366
Joined: 01 Jan 2013, 15:04
Detinator Steam: Da
Detinator server CS: Te intereseaza?
SteamID: Te intereseaza?
Reputatie: Fost Moderator ajutator
Membru club eXtreamCS (3 luni)
Nume anterior: Vechy!
Restrictie moderator
Location: Constanta
Been thanked: 36 times
Contact:

30 Dec 2013, 09:11

Rezolvat?
http://svx.ro - MasterServer in teste.
http://cs16-download.com - Download CS 1.6
http://download-cs16.biz - Download CS 1.6
http://download-cs16.eu - Download CS 1.6
http://download-cs16.org - Download CS 1.6
User avatar
Lothbrok
Membru, skill +1
Membru, skill +1
Posts: 366
Joined: 01 Jan 2013, 15:04
Detinator Steam: Da
Detinator server CS: Te intereseaza?
SteamID: Te intereseaza?
Reputatie: Fost Moderator ajutator
Membru club eXtreamCS (3 luni)
Nume anterior: Vechy!
Restrictie moderator
Location: Constanta
Been thanked: 36 times
Contact:

30 Dec 2013, 09:11

Rezolvat?
http://svx.ro - MasterServer in teste.
http://cs16-download.com - Download CS 1.6
http://download-cs16.biz - Download CS 1.6
http://download-cs16.eu - Download CS 1.6
http://download-cs16.org - Download CS 1.6
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:

30 Dec 2013, 10:55

scosmynnnn unde scriu ... hp pe kill , pe hs , la knife si la knife hs :) Doresc si alea si sa apara in hud - Bonus Hp kill (ex) +50 sau na cat pun eu si joc deasupra la timeround sa scrie Viata : si sa iti spuna cata viata ai
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:

30 Dec 2013, 12:30

Scuzati x2 dar am facut o chestie am combinat ce mi-a dat scosmyn si am pus in alt plugin , de mers merge da se face ecranu blue la ct si rosu la t ce e bine dar cand un coechpier omoara pe cineva sau este mort tot se face colorat ecranu ... eu vreau doar la persoana sa se faca colorat si doar cand omoara pe cineva nu si cand este omorat .. :)
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <fun>

#define PLUGIN "Bonus"
#define VERSION "1.2"
#define AUTHOR "Xalus"

#define Tag "[Bonus]"

new cStatus, cMaxHealth;
new cKill, cKnife, cHeadshot, cKnifeHeadshot;

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    /* Cvar */
    cStatus        = register_cvar("bonus_status", "1");
    cMaxHealth    = register_cvar("bonus_maxhealth", "1000");
    /* Bonus */
    cKill        = register_cvar("bonus_kill", "30");
    cKnife        = register_cvar("bonus_knife", "70");
    cHeadshot    = register_cvar("bonus_headshot", "50");
    cKnifeHeadshot    = register_cvar("bonus_knifeheadshot", "100");
    
    /* Player Killed */
    register_event( "DeathMsg", "EventDeathMsg", "a", "1>0" );
}
/*
Bonus:
- Player Killed
*/
public EventDeathMsg() {
    new killer = read_data(1);
    new victim = read_data(2);
    new headshot = read_data(3);
    new weapon = get_user_weapon(killer);
    new num;
    
    if(killer == victim || !get_pcvar_num(cStatus) || !is_user_connected(victim) || !is_user_alive(killer))
        return PLUGIN_HANDLED;
    
    if(headshot && weapon == CSW_KNIFE) {
        num = get_pcvar_num(cKnifeHeadshot)
        GiveHealth(killer, num)
        HudMessage(killer, "Healed +%ihp", num)
	set_task(0.1,"efect")
    } else if(headshot) {
        num = get_pcvar_num(cHeadshot)
        GiveHealth(killer, num)
        HudMessage(killer, "Healed +%ihp", num)
	set_task(0.1,"efect")
    } else if(weapon == CSW_KNIFE) {
        num = get_pcvar_num(cKnife)
        GiveHealth(killer, num)
        HudMessage(killer, "Healed +%ihp", num)
	set_task(0.1,"efect")
    } else {
        num = get_pcvar_num(cKill)
        GiveHealth(killer, num)
        HudMessage(killer, "Healed +%ihp", num)
	set_task(0.1,"efect")
    }
    return PLUGIN_CONTINUE;
}

public efect(id)  
{ 
	new players[32], playerx,a,inum
	get_players(players, inum)
	for(a = 0; a < inum; ++a) {
	playerx = players[a];
	switch (get_user_team(playerx)){
            case 1: {
                Fade(playerx,255,0,0,30) 
            }
            case 2: {
                Fade(playerx,0,0,255,30)
            }
            case 3:{
                Fade(playerx,0,255,0,30)
            }
        }
    } 
} 

stock Fade(index,red,green,blue,alpha)
{
	message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},index)
	write_short(5<<10)
	write_short(5<<10)
	write_short(5<<12)
	write_byte(red)
	write_byte(green)
	write_byte(blue)
	write_byte(alpha)
	message_end()
}
/*
Bonus:
    - Give Health
    - Hud Message
*/
GiveHealth(id, count)
    set_user_health(id, min( (get_user_health(id) + count), get_pcvar_num(cMaxHealth) ))

stock HudMessage(const id, const input[], any:...) {
    static msg[191];
    vformat(msg, 190, input, 3);
    
    set_hudmessage(127, 170, 255, 0.27, 0.14, 0, 5.0, 5.0, 0.0, 0.0, -1);
    show_hudmessage(id, "%s^n%s", Tag, msg)
}
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 12 guests