Copilare plugin [rezolvat!]

Discutii legate de instalarea, configurarea si modificarea unui server de Counter-Strike.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
AHE
Membru, skill +2
Membru, skill +2
Posts: 622
Joined: 01 Oct 2012, 11:20
Detinator Steam: Da
Location: Zimnicea ;x
Has thanked: 66 times
Been thanked: 3 times

09 Oct 2013, 21:26

Imi puteti copila si mie urmatorul plugin in .amxx ? mi-e imi da eroare.
.SMA | Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <colorchat> 
 
#define ACCESS ADMIN_KICK

new g_Count = 0
new bool: g_Data = false

public plugin_init()  
{
	register_plugin("CooL_Live","1.0","M3taph0riK") 

	register_event("TextMsg","game_commencing","a","2&#Game_C")
	register_event("HLTV","new_round","a","1=0","2=0") 

	register_clcmd("say /live","say_live",ACCESS)

	set_hudmessage(255, 0, 170, -1.0, 0.2, 1, 6.0, 10.0)
}

public game_commencing() 
	g_Data = true

public new_round(id) {
	if( g_Data == true )
		g_Count++

	if( g_Count == 1 ) {	 
	show_hudmessage(0, "Live next round !^n Good Luck & Have Fun !!^n^n CooL_Live Plugin Created by ReDGeN !!")

	} 

	if( g_Count == 2 ) {
	server_cmd("sv_restart 3")
	set_task(0.1,"msg1",id)  
	set_task(0.2,"screeneffect",id)
	
	}
	
	return PLUGIN_CONTINUE; 
}

public say_live(id) 
{ 
	if(!(get_user_flags(id) & ACCESS))
	return PLUGIN_HANDLED;

	server_cmd("sv_restart 3")
	set_task(0.1,"msg2",id) 
	set_task(0.2,"screeneffect",id)
	
	return PLUGIN_CONTINUE;
} 

public msg1(id) 
{ 
	client_cmd(0,"spk ^"life in three seconds^"")
	new hostname[64]
	get_cvar_string("hostname",hostname,63)
	ColorChat(id, GREEN, "[^x03 %s^x04 ]^x01 |---------------^x04 LiVE !^x01 ---------------|", hostname)
	ColorChat(id, GREEN, "[^x03 %s^x04 ]^x01 |---------------^x04 LiVE !^x01 ---------------|", hostname)
	ColorChat(id, GREEN, "[^x03 %s^x04 ]^x01 |---------------^x04 LiVE !^x01 ---------------|", hostname)
	new restartname[32]
	get_user_name(id, restartname, 31)
	ColorChat(id, GREEN, "^x01 Echipa^x04 %s^x03 Va Ureaza Spor La Fraguri^x01 !", restartname)
}  

public msg2(id) 
{ 
	client_cmd(0,"spk ^"life in three seconds^"")
	new hostname[64]
	get_cvar_string("hostname",hostname,63)
	ColorChat(0, GREEN, "[^x03 %s^x04 ]^x01 |---------------^x04 LiVE !^x01 ---------------|", hostname) 
	ColorChat(0, GREEN, "[^x03 %s^x04 ]^x01 |---------------^x04 LiVE !^x01 ---------------|", hostname) 
	ColorChat(0, GREEN, "[^x03 %s^x04 ]^x01 |---------------^x04 LiVE !^x01 ---------------|", hostname)
	new restartname[32]
	get_user_name(id, restartname, 31)
	ColorChat(0, GREEN, "^x01 Adminul^x04 %s^x03 Va Ureaza Spor La Fraguri^x01 !", restartname)
} 

public screeneffect(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()
}
Click | Afiseaza codul
Schimb Steam pentru Iteme Site pe Metin2 Legacy.
Un click :o3
Contact: [email protected] [Y!M] | mr.yonutz_zm [SKYPE]
RoyalServer
User avatar
Mădălin
Administrator
Administrator
Posts: 5295
Joined: 06 Mar 2013, 21:40
Detinator Steam: Nu
Reputatie: Administrator
Fost manager cs.extream.ro
Web designer
Administratorul anului 2023
Has thanked: 45 times
Been thanked: 310 times
Contact:

09 Oct 2013, 21:34

User avatar
AHE
Membru, skill +2
Membru, skill +2
Posts: 622
Joined: 01 Oct 2012, 11:20
Detinator Steam: Da
Location: Zimnicea ;x
Has thanked: 66 times
Been thanked: 3 times

10 Oct 2013, 15:00

imi uploadezi pe alt link? girlshare nu imi merge..:|
Click | Afiseaza codul
Schimb Steam pentru Iteme Site pe Metin2 Legacy.
Un click :o3
Contact: [email protected] [Y!M] | mr.yonutz_zm [SKYPE]
User avatar
AHE
Membru, skill +2
Membru, skill +2
Posts: 622
Joined: 01 Oct 2012, 11:20
Detinator Steam: Da
Location: Zimnicea ;x
Has thanked: 66 times
Been thanked: 3 times

10 Oct 2013, 16:42

ma ajuta cineva? scuzati 2x post.
Click | Afiseaza codul
Schimb Steam pentru Iteme Site pe Metin2 Legacy.
Un click :o3
Contact: [email protected] [Y!M] | mr.yonutz_zm [SKYPE]
FredY.zm
Membru, skill 0
Membru, skill 0
Posts: 17
Joined: 08 Oct 2013, 16:53
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 3 times
Been thanked: 1 time
Contact:

10 Oct 2013, 16:48

Ti l-am pus http://fisierulmeu.ro/5760CHRU34WO/copilare-amxx.html , sper ca nu-i reclama pe site-ul asta.
User avatar
Mădălin
Administrator
Administrator
Posts: 5295
Joined: 06 Mar 2013, 21:40
Detinator Steam: Nu
Reputatie: Administrator
Fost manager cs.extream.ro
Web designer
Administratorul anului 2023
Has thanked: 45 times
Been thanked: 310 times
Contact:

10 Oct 2013, 17:46

User avatar
AHE
Membru, skill +2
Membru, skill +2
Posts: 622
Joined: 01 Oct 2012, 11:20
Detinator Steam: Da
Location: Zimnicea ;x
Has thanked: 66 times
Been thanked: 3 times

10 Oct 2013, 17:49

REZOLVAT!
Click | Afiseaza codul
Schimb Steam pentru Iteme Site pe Metin2 Legacy.
Un click :o3
Contact: [email protected] [Y!M] | mr.yonutz_zm [SKYPE]
Post Reply

Return to “Probleme la servere dedicate de Counter-Strike”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 94 guests