Discord sunucumuz açılmıştır, hepinizi bekleriz

https://discord.gg/43gGDQe6tS

Ust kalan kişi

Eklenti sorunlarınız ve özel eklenti istekleriniz

Moderatör: Moderatörler

Kullanıcı avatarı

Konu Sahibi
emrgndr123
Yasaklı Üye
Yasaklı Üye
Mesajlar: 80
Kayıt: Pzr Haz 11, 2017 2:00 pm
Server Ip/DNS: 213.238.173.119
Clan İsmi: Pubg Mod

Ust kalan kişi

Mesaj gönderen emrgndr123 »

yok denedim plugini serverde birisi öldügü zaman server kapanıyor. :D

Link:
Linklerini gizle
Linki Kopyala
Kullanıcı avatarı

Taha Demirbaş
Mesajlar: 10428
Kayıt: Cum Tem 08, 2016 10:05 pm
Konum: Türkiye
İletişim:

Ust kalan kişi

Mesaj gönderen Taha Demirbaş »

Modun içerisinde yapılmış. Ayar değil. @PaZee yi etiketliyorum.

Link:
Linklerini gizle
Linki Kopyala

PaZee
Mesajlar: 1762
Kayıt: Çrş Şub 22, 2017 11:28 pm
Konum: Istanbul
Server Ip/DNS: Cs.teknoklan.com
Clan İsmi: TeknoKlan
İletişim:

Ust kalan kişi

Mesaj gönderen PaZee »

Kod: Tümünü seç

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Olen kisi tutor"
#define VERSION "1.0"
#define AUTHOR "PaZee"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_event( "DeathMsg" , "olunce" , "a" )
}
public olunce()
{
	
	new players[32],inum;
	get_players(players,inum,"ae","TERRORIST")
	
	new formatex1[30]
	formatex(formatex1,charsmax(formatex1),"YasayanKisi: %i",inum)
	for (new id = 1; id <=33; id++)
	{
		if (!is_user_connected(id))
		{
		continue
		}
		tutor_mesaj_olustur(id,formatex1,1)
	}	
}
public plugin_precache()
{
	precache_generic( "resource/TutorScheme.res" );
	precache_generic( "resource/UI/TutorTextWindow.res" );
	
	precache_generic( "gfx/career/icon_!.tga" );
	precache_generic( "gfx/career/icon_!-bigger.tga" );
	precache_generic( "gfx/career/icon_i.tga" );
	precache_generic( "gfx/career/icon_i-bigger.tga" );
	precache_generic( "gfx/career/icon_skulls.tga" );
	precache_generic( "gfx/career/round_corner_ne.tga" );
	precache_generic( "gfx/career/round_corner_nw.tga" );
	precache_generic( "gfx/career/round_corner_se.tga" );
	precache_generic( "gfx/career/round_corner_sw.tga" );	
}
public client_disconnected(id)
{
	new players[32],inum;
	get_players(players,inum,"ae","TERRORIST")    	
	new formatex1[30]
	
	formatex(formatex1,charsmax(formatex1),"YasayanKisi: %i",inum)
	for (new id = 1; id <=33; id++)
	{
		if (!is_user_connected(id))
		{
			continue
		}
		tutor_mesaj_olustur(id,formatex1,1)
	}   	
}
stock tutor_mesaj_olustur(id, mesaj[], stil){
	if( is_user_connected( id ) && !is_user_bot(id)) 
	{
		
		message_begin(MSG_ONE_UNRELIABLE , get_user_msgid("TutorClose"), {0, 0, 0}, id)
		message_end()
		
		message_begin(MSG_ONE_UNRELIABLE , get_user_msgid("TutorText"), {0, 0, 0}, id)
		write_string(mesaj)
		write_byte(0)
		write_short(0)
		write_short(0)
		write_short(1<<stil)
		message_end()
		
	}
}

Link:
Linklerini gizle
Linki Kopyala
Kullanıcı avatarı

Konu Sahibi
emrgndr123
Yasaklı Üye
Yasaklı Üye
Mesajlar: 80
Kayıt: Pzr Haz 11, 2017 2:00 pm
Server Ip/DNS: 213.238.173.119
Clan İsmi: Pubg Mod

Ust kalan kişi

Mesaj gönderen emrgndr123 »

PaZee yazdı: Çrş Nis 03, 2019 8:25 pm

Kod: Tümünü seç

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Olen kisi tutor"
#define VERSION "1.0"
#define AUTHOR "PaZee"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_event( "DeathMsg" , "olunce" , "a" )
}
public olunce()
{
	
	new players[32],inum;
	get_players(players,inum,"ae","TERRORIST")
	
	new formatex1[30]
	formatex(formatex1,charsmax(formatex1),"YasayanKisi: %i",inum)
	for (new id = 1; id <=33; id++)
	{
		if (!is_user_connected(id))
		{
		continue
		}
		tutor_mesaj_olustur(id,formatex1,1)
	}	
}
public plugin_precache()
{
	precache_generic( "resource/TutorScheme.res" );
	precache_generic( "resource/UI/TutorTextWindow.res" );
	
	precache_generic( "gfx/career/icon_!.tga" );
	precache_generic( "gfx/career/icon_!-bigger.tga" );
	precache_generic( "gfx/career/icon_i.tga" );
	precache_generic( "gfx/career/icon_i-bigger.tga" );
	precache_generic( "gfx/career/icon_skulls.tga" );
	precache_generic( "gfx/career/round_corner_ne.tga" );
	precache_generic( "gfx/career/round_corner_nw.tga" );
	precache_generic( "gfx/career/round_corner_se.tga" );
	precache_generic( "gfx/career/round_corner_sw.tga" );	
}
public client_disconnected(id)
{
	new players[32],inum;
	get_players(players,inum,"ae","TERRORIST")    	
	new formatex1[30]
	
	formatex(formatex1,charsmax(formatex1),"YasayanKisi: %i",inum)
	for (new id = 1; id <=33; id++)
	{
		if (!is_user_connected(id))
		{
			continue
		}
		tutor_mesaj_olustur(id,formatex1,1)
	}   	
}
stock tutor_mesaj_olustur(id, mesaj[], stil){
	if( is_user_connected( id ) && !is_user_bot(id)) 
	{
		
		message_begin(MSG_ONE_UNRELIABLE , get_user_msgid("TutorClose"), {0, 0, 0}, id)
		message_end()
		
		message_begin(MSG_ONE_UNRELIABLE , get_user_msgid("TutorText"), {0, 0, 0}, id)
		write_string(mesaj)
		write_byte(0)
		write_short(0)
		write_short(0)
		write_short(1<<stil)
		message_end()
		
	}
}
fakat istediğim şey bu değildi benim :D resimde gösterelenin aynısı gerek :D

Link:
Linklerini gizle
Linki Kopyala
Cevapla