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

https://discord.gg/43gGDQe6tS

Plugin editlemesi

Eklenti sorunlarınız ve özel eklenti istekleriniz

Moderatör: Moderatörler

Kullanıcı avatarı

Konu Sahibi
Anesthezist
Mesajlar: 51
Kayıt: Pzt Şub 26, 2018 6:35 pm

Plugin editlemesi

Mesaj gönderen Anesthezist »

arkadaşlar attığım plugin raundları sayıyor ama ben skorların yazılmasını istiyorum yardım edermisiniz.

00 [ TOPLAM OLUM SAYILARI ] 00 Diye gözüküyor onu alınan skora çevirseniz mutlu olrm

@ShooTeR
@seypa
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.

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

seypa
Mesajlar: 1390
Kayıt: Cmt Ağu 13, 2016 12:49 pm
Konum: Pendik/İstanbul
İletişim:

Plugin editlemesi

Mesaj gönderen seypa »

@noeldayi senin konuya attigim en son eklentiyi atsana buraya

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

noeldayi
Mesajlar: 3167
Kayıt: Prş Oca 19, 2017 6:57 pm
Konum: 213.238.173.35
Server Ip/DNS: 213.238.173.35
Clan İsmi: Moon Gaming
İletişim:

Plugin editlemesi

Mesaj gönderen noeldayi »

seypa yazdı: Çrş Şub 28, 2018 4:50 pm @noeldayi senin konuya attigim en son eklentiyi atsana buraya
benimkiyle bununki bir değilki

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

Konu Sahibi
Anesthezist
Mesajlar: 51
Kayıt: Pzt Şub 26, 2018 6:35 pm

Plugin editlemesi

Mesaj gönderen Anesthezist »

++

Link:
Linklerini gizle
Linki Kopyala

ShooTeRX
Yasaklı Üye
Yasaklı Üye
Mesajlar: 20
Kayıt: Çrş Şub 28, 2018 5:01 pm

Plugin editlemesi

Mesaj gönderen ShooTeRX »

Anesthezist yazdı: Çrş Şub 28, 2018 3:31 pm arkadaşlar attığım plugin raundları sayıyor ama ben skorların yazılmasını istiyorum yardım edermisiniz.

00 [ TOPLAM OLUM SAYILARI ] 00 Diye gözüküyor onu alınan skora çevirseniz mutlu olrm

@ShooTeR
@seypa

Kod: Tümünü seç

/* Plugin generated by AMXX-Studio */

	#include < amxmodx >
	
	#pragma semicolon 1

		// --| Credite lui CryWolf pentru 'layout' !!
	new const
		PLUGIN_NAME[ ] 		= "Furien Score & Round",
		PLUGIN_VERSION[ ] 	= "0.2.1";
	
	/* Copyright (c) 2013 Askhanar  @eXtreamCS.com Edit YeKTaBEY
	
	www.eXtreamCS.com/forum
	www.amxmodx.org
	www.amxmodx.ro
	
	*/
	
	
	// --| Culorile in RRR GGG BBB ( poate fi luata si in paint ).
	// --| Aici sunt culorile de la mesajele: Furien  AntiFurien si Round
	
	#define	iNameRed	0
	#define	iNameGreen	255
	#define	iNameBlue	255
	
	// --| Culorile in RRR GGG BBB ( poate fi luata si in paint ).
	// --| Aici sunt culorile de la mesajele: numarul de castiguri si runde.
	
	#define	iScoreRed	255
	#define	iScoreGreen	0
	#define	iScoreBlue	0
	
	new const
		g_szTeamsMessage[ ] 	= "    |-  Terorist    Counter Terorist  -|    ",
		g_szScoreMessage[ ]	= "%02i                                                %02i",
		g_szRoundMessage[ ]	= "                  Round                     ",
		g_szRound[ ]		= "                    %02i                       ";
		
		
	enum _:iTeamWons
	{
		FURIEN,
		ANTIFURIEN
	}
	
	new g_iRounds;
	
	new SyncHudTeamNames, SyncHudTeamScore;
	new ct_score, terrorist_score;
			
				
public plugin_init( )
{
	
	register_plugin( PLUGIN_NAME, PLUGIN_VERSION, "Askhanar" );
	
	
	register_event( "HLTV", "ev_NewRound", "a", "1=0", "2=0" );
	register_event( "TextMsg", "ev_RoundRestart", "a", "2&#Game_C", "2&#Game_w" );
	register_event("TeamScore", "team_score", "a");
	
	register_event( "SendAudio", "ev_TerroristWin", "a", "2&%!MRAD_terwin" );
	register_event( "SendAudio", "ev_CtWin", "a", "2&%!MRAD_ctwin" );
	
	g_iRounds = 0;
	
	SyncHudTeamNames = CreateHudSyncObj( );
	SyncHudTeamScore = CreateHudSyncObj( );
	
	
	set_task( 1.0, "task_DisplayHudScore", _, _, _, "b", 0 );
	// Add your code here...
}


public ev_NewRound( )		g_iRounds++;
public ev_RoundRestart( )	{	g_iRounds = 0;}

public task_DisplayHudScore( )
{
	static iPlayers[ 32 ];
	static iPlayersNum;
		
	get_players( iPlayers, iPlayersNum, "ch" );
	if( !iPlayersNum )
		return;
		
	static id, i;
	for( i = 0; i < iPlayersNum; i++ )
	{
		id = iPlayers[ i ];
		
		if( 1 <= get_user_team( id ) <= 3 )
		{
			set_hudmessage( iNameRed, iNameGreen, iNameBlue, -1.0, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 1.0, _, _, 2 );
			ShowSyncHudMsg( id, SyncHudTeamNames, g_szTeamsMessage );
			
			set_hudmessage( iScoreRed, iScoreGreen, iScoreBlue, -1.0, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 1.0, _, _, 3 );
			ShowSyncHudMsg( id, SyncHudTeamScore, g_szScoreMessage,  terrorist_score, ct_score );
			
			
			set_dhudmessage( iNameRed, iNameGreen, iNameBlue, -1.0, is_user_alive( id ) ? 0.03 : 0.18 , 0, _, 1.0, _, _ );
			show_dhudmessage( id, g_szRoundMessage );
			
			set_dhudmessage( iScoreRed, iScoreGreen, iScoreBlue, -1.0, is_user_alive( id ) ? 0.06 : 0.21 , 0, _, 1.0, _, _ );
			show_dhudmessage( id, g_szRound, g_iRounds );
		}
	
	}
}
public team_score()
{
    new team[32];
    read_data(1,team,31);
    if (equal(team,"CT"))
    {
        ct_score = read_data(2);
    }
    else if (equal(team,"TERRORIST"))
    {
        terrorist_score = read_data(2);
    }
}
    
Denermisin

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

Konu Sahibi
Anesthezist
Mesajlar: 51
Kayıt: Pzt Şub 26, 2018 6:35 pm

Plugin editlemesi

Mesaj gönderen Anesthezist »

ben bunu istemıyorum benımkını yapma şansınız yokmu

Link:
Linklerini gizle
Linki Kopyala

ShooTeRX
Yasaklı Üye
Yasaklı Üye
Mesajlar: 20
Kayıt: Çrş Şub 28, 2018 5:01 pm

Plugin editlemesi

Mesaj gönderen ShooTeRX »

Kod: Tümünü seç

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "CSPlugin"

new ct=0;
new tt=0;

new win_t =0;
new win_ct = 0;
new all_raund=0;



new str_t[10];
new str_ct[10];
new str_all[10];
new str_win_t[10];
new str_win_ct[10];
new ct_score, terrorist_score;


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR);
	set_task(0.1,"show",_,_,_,"b");
	set_task(0.1, "player_alive",_, _, _, "b");
	
	register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin");
	
	register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin");
	
	register_event("SendAudio", "draw", "a", "2&%!MRAD_rounddraw");
	
	register_event("TeamScore", "team_score", "a");
	
	register_event("TextMsg", "eRestart", "a", "2=#Game_will_restart_in","2=#Game_Commencing");
}

public eRestart()
{
	win_t=0;
	win_ct=0;
	all_raund=0;
}

public t_win()
{
	win_t++;
	all_raund++;
}

public ct_win()
{
	win_ct++;
	all_raund++;
}

public draw()
{
	all_raund++;
}


public show()
{
	str_t=" ";
	str_ct=" ";
	str_all=" ";
	str_win_t=" ";
	str_win_ct=" ";
	
	if(ct<10)
		format(str_ct,2,"0%d",ct);  
	else
		format(str_ct,2,"%d",ct);
	
	if(tt<10)
		format(str_t,2,"0%d",tt);  
	else
		format(str_t,2,"%d",tt);
	
	if(all_raund < 10)
		format(str_all,2,"0%d",all_raund);
	else
		format(str_all,2,"%d",all_raund);
	
	if(win_t<10)
		format(str_win_t,2,"0%d",win_t);
	else
		format(str_win_t,2,"%d",win_t);
	
	if(win_ct<10)
		format(str_win_ct,2,"0%d",win_ct);
	else
		format(str_win_ct,2,"%d",win_ct);
	
	new str1[20];
	format(str1,20,"%s Vitorias %s",str_win_t,str_win_ct);
	
	
	for(new id=0;id<=32;id++)
	{
		if(!is_user_connected(id))
		{
			continue;
		}
		set_dhudmessage(0, 255, 0, -1.0, 0.0, 0, 6.0, 200.0);
		show_dhudmessage(id, "CS ARENA",all_raund);
		
		set_dhudmessage(255, 0, 0, 0.42, 0.00, 0, 6.0, 12.0);
		show_dhudmessage(id, "^nTE %s",str_t);
		
		set_dhudmessage(170, 0, 255, -1.0, 0.00, 0, 6.0, 12.0);
		show_dhudmessage(id, "^n[ %s ]",str_all);
		
		set_dhudmessage(0, 255, 255, 0.54, 0.00, 0, 6.0, 12.0);
		show_dhudmessage(id, "^n%s CT",str_ct);
		
		set_dhudmessage(225, 225, 225, -1.0, 0.00, 0, 6.0, 12.0);
		show_dhudmessage(id, "^n^n%s [TOPLAM OLUM SAYILARI] %s",terrorist_score,ct_score);
	}
}

public player_alive()
{
	ct=0;
	tt=0;
	for(new id =0;id< 33;id++)
	{
		if(!is_user_connected(id))
		{
			continue;
		}
		else if(is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT)
		{
			ct++;
		}
		else if(is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_T)
		{
			tt++;
		}
	}
}

public team_score()
{
    new team[32];
    read_data(1,team,31);
    if (equal(team,"CT"))
    {
        ct_score = read_data(2);
    }
    else if (equal(team,"TERRORIST"))
    {
        terrorist_score = read_data(2);
    }
}
    
dene

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

Konu Sahibi
Anesthezist
Mesajlar: 51
Kayıt: Pzt Şub 26, 2018 6:35 pm

Plugin editlemesi

Mesaj gönderen Anesthezist »

//cstrike/addons/amxmodx/scripting/SkoreB0ard.sma(1) : error 010: invalid function or declaration bu hatayı verdi

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

Konu Sahibi
Anesthezist
Mesajlar: 51
Kayıt: Pzt Şub 26, 2018 6:35 pm

Plugin editlemesi

Mesaj gönderen Anesthezist »

@ShooTeRX

Link:
Linklerini gizle
Linki Kopyala

İlyas ERTEKİN
Mesajlar: 894
Kayıt: Pzt Haz 05, 2017 11:34 am

Plugin editlemesi

Mesaj gönderen İlyas ERTEKİN »

@ShooTeRx kim :)

Link:
Linklerini gizle
Linki Kopyala
Cevapla