[Rezolvat] Cerere plugin hs

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
User avatar
Filip.
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 996
Joined: 16 Oct 2013, 23:17
Detinator Steam: Nu
Reputatie: Restrictie moderator
Nume anterior: andre.w
Location: lasa
Has thanked: 58 times
Been thanked: 26 times
Contact:

05 Feb 2014, 23:52

Salut vad ca nu mai exista modelu deci =))
Am vazut si eu pe un sv cand da cineva un hs apare pe centru x i-a dat hs lui y si invers care il stiu si ma ajuta cu el? :) dau multumesc
Last edited by YONTU on 06 Feb 2014, 11:42, edited 3 times in total.
Reason: http://www.extreamcs.com/forum/cereri-cs/regulament-cereri-pluginuri-t218661.html Rezolvat!
Daca vrei sa faci profit case opening
RoyalServer
mr.f3lyx
Membru, skill +2
Membru, skill +2
Posts: 610
Joined: 10 Nov 2013, 20:24
Detinator Steam: Da
Location: Palermo, Italy
Has thanked: 69 times
Been thanked: 17 times

05 Feb 2014, 23:55

Ce zici astai bun
sma | Afiseaza codul
#include <amxmodx>
#include <csx>

#define PLUGIN "Headshot Kill"
#define VERSION "1.0"
#define AUTHOR "x"

new plugin_mode;

public plugin_init() {

	register_plugin( PLUGIN,VERSION,AUTHOR );

	

	plugin_mode = register_cvar("amx_hsmode","3");

}



public client_death(killer,victim,weapon,hitplace,TK)

{

	new vname[32], kname[32]

	

	get_user_name(victim,vname,31);

	get_user_name(killer,kname,31);

	

	if(hitplace == HIT_HEAD)

	{

		if(get_pcvar_num(plugin_mode) == 1)

		{

			

			set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 3.0, 3.0, 0.15, 0.15, 1);

			show_hudmessage(killer,"--> L-ai omorat pe %s cu un HEADSHOT ! <--",vname);

		}

		

		else if(get_pcvar_num(plugin_mode) == 2)

		{

			client_cmd(id,"spk misc/headshot")

		}

		

		else if(get_pcvar_num(plugin_mode) == 3)

		{

			set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 3.0, 3.0, 0.15, 0.15, 1);

			show_hudmessage(killer,"--> L-ai omorat pe %s cu un HEADSHOT ! <--",vname);

			

			client_cmd(0,"spk misc/headshot")

		}

	}

	return 0;

}
public plugin_precache()

{
	precache_sound("misc/headshot.wav");
}
User avatar
alkaline
Fost moderator
Fost moderator
Posts: 734
Joined: 18 Jul 2012, 09:42
Detinator Steam: Da
Reputatie: Fost Moderator ajutator
Nume anterior: lucylucy
Fond eXtream: 0
Location: Caras-Severin
Has thanked: 5 times
Been thanked: 296 times

06 Feb 2014, 00:08

Sau ai aici unul mai simplu
==>>
| Afiseaza codul
#include <amxmodx>

public plugin_init( ) {
	register_plugin( "--", "--", "alkaline aka lucy");

	register_event( "DeathMsg", "event_DeathMsg", "ae", "1>0");
}

public event_DeathMsg( ) {

	new usera = read_data( 1 );
	new userv = read_data( 2 );
	new name[ 32 ], name2[ 32 ];

	get_user_name( usera, name, 31 );
	get_user_name( userv, name2, 31 );

	set_hudmessage( 255, 0, 0, -1.0, 0.20, 0, 6.0, 4.0 );
	show_hudmessage( 0, "%s a dat Headshot lui %s", usera, userv );
}
User avatar
Filip.
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 996
Joined: 16 Oct 2013, 23:17
Detinator Steam: Nu
Reputatie: Restrictie moderator
Nume anterior: andre.w
Location: lasa
Has thanked: 58 times
Been thanked: 26 times
Contact:

06 Feb 2014, 00:31

lucylucy wrote:Sau ai aici unul mai simplu
==>>
| Afiseaza codul
#include <amxmodx>

public plugin_init( ) {
	register_plugin( "--", "--", "alkaline aka lucy");

	register_event( "DeathMsg", "event_DeathMsg", "ae", "1>0");
}

public event_DeathMsg( ) {

	new usera = read_data( 1 );
	new userv = read_data( 2 );
	new name[ 32 ], name2[ 32 ];

	get_user_name( usera, name, 31 );
	get_user_name( userv, name2, 31 );

	set_hudmessage( 255, 0, 0, -1.0, 0.20, 0, 6.0, 4.0 );
	show_hudmessage( 0, "%s a dat Headshot lui %s", usera, userv );
}
Mersi
Daca vrei sa faci profit case opening
Post Reply

Return to “Cereri”

  • Information