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

https://discord.gg/43gGDQe6tS

Map Degistiginde 30 Saniye Boyunca Muzik ve Renkli Deprem

Eklenti sorunlarınız ve özel eklenti istekleriniz

Moderatör: Moderatörler


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

Map Degistiginde 30 Saniye Boyunca Muzik ve Renkli Deprem

Mesaj gönderen PaZee »

Kod: Tümünü seç

/* www.amxmodxtr.com */

#include <amxmodx>
#include <fun>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <fakemeta>
#include <nvault>
#include <engine>

#define PLUGIN "MapAcildigindaKopKop"
#define VERSION "1.0"
#define AUTHOR "PaZee"

new const pazeses[] =	"sesyolu.wav"
new bool:sarsiliyor = false
new sadecebirkere

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   register_logevent("vurefekti",2,"1=Round_Start")
   sadecebirkere    = register_cvar ("sadecebirkere","1")
}

public vurefekti(id)
{
   if(get_pcvar_num(sadecebirkere))
   {
   emit_sound(0, CHAN_AUTO, pazeses, VOL_NORM, ATTN_NORM , 0, PITCH_NORM)
   set_task(0.2,"Sarsinti",4701,"",0,"b")
   OnGlow(id)
   set_task(30.0,"DepremiBitir",4702)
   set_task(30.0,"OffGlow",3162)
   sarsiliyor = true
   }
}
public plugin_precache()
{
	precache_sound(pazeses)
}
public Sarsinti(TaskID)
{
for(new id = 1; id < 33; id++)
{
   if(is_user_connected(id) && is_user_alive(id) && sarsiliyor)
   {
      message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("ScreenShake"), {0,0,0}, id)  
      write_short(0xFFFF)
      write_short(1<<13)
      write_short(0xFFFF) 
      message_end()
   }
}
}

public DepremiBitir(TaskID)
{
   remove_task(4701)
   sarsiliyor = false
   remove_task(TaskID)   
   server_cmd("amx_cvar sadecebirkere 0")
   
}
public OnGlow( id ) {
   new players[ 32 ], xnum;
   get_players( players, xnum, "ah" );
   for( new x = 0; x < xnum; x++ ) {
      new x1 = random_num( 0, 255 );
      new x2 = random_num( 0, 255 );
      new x3 = random_num( 0, 255 );
      new xAlpha = random_num( 40, 65 );
      message_begin( MSG_ONE, get_user_msgid( "ScreenFade" ), { 0, 0, 0 }, players[ x ] );
      write_short( ~0 );
      write_short( ~0 );
      write_short( 1<<12 );
      write_byte( x1 );
      write_byte( x2 );
      write_byte( x3 );
      write_byte( xAlpha );
      message_end( );
      set_user_rendering( players[ x ], kRenderFxGlowShell, x1, x2, x3, kRenderTransAlpha, 255 );
   }
}

public OffGlow( TaskID ) {
   new players[ 32 ], xnum;
   get_players( players, xnum, "h" );
   for( new x = 0; x < xnum; x++ ) {
      message_begin( MSG_ONE, get_user_msgid( "ScreenFade" ), { 0, 0, 0 }, players[ x ] );
      write_short( ~0 );
      write_short( ~0 );
      write_short( 1<<12 );
      write_byte( 0 );
      write_byte( 0 );
      write_byte( 0 );
      write_byte( 0 );
      message_end( );
      
      set_user_rendering( players[ x ] );
   }
}

stock chat_color(const id, const input[], any:...) {
   new count = 1, players[32]
   static msg[191]
   vformat(msg, 190, input, 3)
   
   replace_all(msg, 190, "!g", "^4")
   replace_all(msg, 190, "!y", "^1")
   replace_all(msg, 190, "!t", "^3")
   replace_all(msg, 190, "!team2", "^0")
   
   if (id) players[0] = id; else get_players(players, count, "ch")
   {
   for (new i = 0; i < count; i++)
   {
      if (is_user_connected(players[i]))
      {
         message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
         write_byte(players[i]);
         write_string(msg);
         message_end();
      }
   }
}
}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/

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

Konu Sahibi
jumple01
Mesajlar: 660
Kayıt: Cmt Oca 21, 2017 12:32 pm

Map Degistiginde 30 Saniye Boyunca Muzik ve Renkli Deprem

Mesaj gönderen jumple01 »

PaZee yazdı:

Kod: Tümünü seç

/* www.amxmodxtr.com */

#include <amxmodx>
#include <fun>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <fakemeta>
#include <nvault>
#include <engine>

#define PLUGIN "MapAcildigindaKopKop"
#define VERSION "1.0"
#define AUTHOR "PaZee"

new const pazeses[] =	"sesyolu.wav"
new bool:sarsiliyor = false
new sadecebirkere

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   register_logevent("vurefekti",2,"1=Round_Start")
   sadecebirkere    = register_cvar ("sadecebirkere","1")
}

public vurefekti(id)
{
   if(get_pcvar_num(sadecebirkere))
   {
   emit_sound(0, CHAN_AUTO, pazeses, VOL_NORM, ATTN_NORM , 0, PITCH_NORM)
   set_task(0.2,"Sarsinti",4701,"",0,"b")
   OnGlow(id)
   set_task(30.0,"DepremiBitir",4702)
   set_task(30.0,"OffGlow",3162)
   sarsiliyor = true
   }
}
public plugin_precache()
{
	precache_sound(pazeses)
}
public Sarsinti(TaskID)
{
for(new id = 1; id < 33; id++)
{
   if(is_user_connected(id) && is_user_alive(id) && sarsiliyor)
   {
      message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("ScreenShake"), {0,0,0}, id)  
      write_short(0xFFFF)
      write_short(1<<13)
      write_short(0xFFFF) 
      message_end()
   }
}
}

public DepremiBitir(TaskID)
{
   remove_task(4701)
   sarsiliyor = false
   remove_task(TaskID)   
   server_cmd("amx_cvar sadecebirkere 0")
   
}
public OnGlow( id ) {
   new players[ 32 ], xnum;
   get_players( players, xnum, "ah" );
   for( new x = 0; x < xnum; x++ ) {
      new x1 = random_num( 0, 255 );
      new x2 = random_num( 0, 255 );
      new x3 = random_num( 0, 255 );
      new xAlpha = random_num( 40, 65 );
      message_begin( MSG_ONE, get_user_msgid( "ScreenFade" ), { 0, 0, 0 }, players[ x ] );
      write_short( ~0 );
      write_short( ~0 );
      write_short( 1<<12 );
      write_byte( x1 );
      write_byte( x2 );
      write_byte( x3 );
      write_byte( xAlpha );
      message_end( );
      set_user_rendering( players[ x ], kRenderFxGlowShell, x1, x2, x3, kRenderTransAlpha, 255 );
   }
}

public OffGlow( TaskID ) {
   new players[ 32 ], xnum;
   get_players( players, xnum, "h" );
   for( new x = 0; x < xnum; x++ ) {
      message_begin( MSG_ONE, get_user_msgid( "ScreenFade" ), { 0, 0, 0 }, players[ x ] );
      write_short( ~0 );
      write_short( ~0 );
      write_short( 1<<12 );
      write_byte( 0 );
      write_byte( 0 );
      write_byte( 0 );
      write_byte( 0 );
      message_end( );
      
      set_user_rendering( players[ x ] );
   }
}

stock chat_color(const id, const input[], any:...) {
   new count = 1, players[32]
   static msg[191]
   vformat(msg, 190, input, 3)
   
   replace_all(msg, 190, "!g", "^4")
   replace_all(msg, 190, "!y", "^1")
   replace_all(msg, 190, "!t", "^3")
   replace_all(msg, 190, "!team2", "^0")
   
   if (id) players[0] = id; else get_players(players, count, "ch")
   {
   for (new i = 0; i < count; i++)
   {
      if (is_user_connected(players[i]))
      {
         message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
         write_byte(players[i]);
         write_string(msg);
         message_end();
      }
   }
}
}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/
Ugraşıp Yapmıssın Çok Sagolasında Fakat Sma içndeki müzigin ismini filan düzeltiom oyuna girerken müzigi indirio fakat müzik çalmıyor düzeltebilirmisin birde bazen glow veriyor bazen vermiyor o önemli degilde müzik çok önemli :lol:

Link:
Linklerini gizle
Linki Kopyala

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

Map Degistiginde 30 Saniye Boyunca Muzik ve Renkli Deprem

Mesaj gönderen PaZee »

ekte.

Kod: Tümünü seç



/* www.amxmodxtr.com */

#include <amxmodx>
#include <fun>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <fakemeta>
#include <nvault>
#include <engine>

#define PLUGIN "MapAcildigindaKopKop"
#define VERSION "1.0"
#define AUTHOR "PaZee"

new const PAZEE_SES[] =   "sesyolu.wav"
new bool:sarsiliyor = false
new sadecebirkere

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   register_logevent("vurefekti",2,"1=Round_Start")
   sadecebirkere    = register_cvar ("sadecebirkere","1")
}
public kontrol()
{
	new players[32], inum;
	static Uid
	get_players(players, inum, "a")
	for(new i; i < inum; i++) 
	{
		Uid = players[i];
		if(get_pcvar_num(sadecebirkere))
		{
   		set_task(0.2,"Sarsinti",4701,"",0,"b")
   		OnGlow(Uid)
   		set_task(30.0,"DepremiBitir",4702)
   		set_task(30.0,"OffGlow",3162)
   		sarsiliyor = true
   		}
		
		
	}
	emit_sound(0, CHAN_AUTO, PAZEE_SES, VOL_NORM, ATTN_NORM , 0, PITCH_NORM)
}
public plugin_precache()
{
   precache_sound(PAZEE_SES)
}
public Sarsinti(TaskID)
{
for(new id = 1; id < 33; id++)
{
   if(is_user_connected(id) && is_user_alive(id) && sarsiliyor)
   {
      message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("ScreenShake"), {0,0,0}, id)  
      write_short(0xFFFF)
      write_short(1<<13)
      write_short(0xFFFF) 
      message_end()
   }
}
}

public DepremiBitir(TaskID)
{
   remove_task(4701)
   sarsiliyor = false
   remove_task(TaskID)   
   server_cmd("amx_cvar sadecebirkere 0")
   
}
public OnGlow( id ) {
   new players[ 32 ], xnum;
   get_players( players, xnum, "ah" );
   for( new x = 0; x < xnum; x++ ) {
      new x1 = random_num( 0, 255 );
      new x2 = random_num( 0, 255 );
      new x3 = random_num( 0, 255 );
      new xAlpha = random_num( 40, 65 );
      message_begin( MSG_ONE, get_user_msgid( "ScreenFade" ), { 0, 0, 0 }, players[ x ] );
      write_short( ~0 );
      write_short( ~0 );
      write_short( 1<<12 );
      write_byte( x1 );
      write_byte( x2 );
      write_byte( x3 );
      write_byte( xAlpha );
      message_end( );
      set_user_rendering( players[ x ], kRenderFxGlowShell, x1, x2, x3, kRenderTransAlpha, 255 );
   }
}

public OffGlow( TaskID ) {
   new players[ 32 ], xnum;
   get_players( players, xnum, "h" );
   for( new x = 0; x < xnum; x++ ) {
      message_begin( MSG_ONE, get_user_msgid( "ScreenFade" ), { 0, 0, 0 }, players[ x ] );
      write_short( ~0 );
      write_short( ~0 );
      write_short( 1<<12 );
      write_byte( 0 );
      write_byte( 0 );
      write_byte( 0 );
      write_byte( 0 );
      message_end( );
      
      set_user_rendering( players[ x ] );
   }
}

stock chat_color(const id, const input[], any:...) {
   new count = 1, players[32]
   static msg[191]
   vformat(msg, 190, input, 3)
   
   replace_all(msg, 190, "!g", "^4")
   replace_all(msg, 190, "!y", "^1")
   replace_all(msg, 190, "!t", "^3")
   replace_all(msg, 190, "!team2", "^0")
   
   if (id) players[0] = id; else get_players(players, count, "ch")
   {
   for (new i = 0; i < count; i++)
   {
      if (is_user_connected(players[i]))
      {
         message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
         write_byte(players[i]);
         write_string(msg);
         message_end();
      }
   }
}
}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/

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:

Map Degistiginde 30 Saniye Boyunca Muzik ve Renkli Deprem

Mesaj gönderen seypa »

Cok fazla ve gereksiz kutuphane tanitmissin

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

Konu Sahibi
jumple01
Mesajlar: 660
Kayıt: Cmt Oca 21, 2017 12:32 pm

Map Degistiginde 30 Saniye Boyunca Muzik ve Renkli Deprem

Mesaj gönderen jumple01 »

PaZee yazdı:ekte.

Kod: Tümünü seç



/* www.amxmodxtr.com */

#include <amxmodx>
#include <fun>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <fakemeta>
#include <nvault>
#include <engine>

#define PLUGIN "MapAcildigindaKopKop"
#define VERSION "1.0"
#define AUTHOR "PaZee"

new const PAZEE_SES[] =   "sesyolu.wav"
new bool:sarsiliyor = false
new sadecebirkere

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   register_logevent("vurefekti",2,"1=Round_Start")
   sadecebirkere    = register_cvar ("sadecebirkere","1")
}
public kontrol()
{
	new players[32], inum;
	static Uid
	get_players(players, inum, "a")
	for(new i; i < inum; i++) 
	{
		Uid = players[i];
		if(get_pcvar_num(sadecebirkere))
		{
   		set_task(0.2,"Sarsinti",4701,"",0,"b")
   		OnGlow(Uid)
   		set_task(30.0,"DepremiBitir",4702)
   		set_task(30.0,"OffGlow",3162)
   		sarsiliyor = true
   		}
		
		
	}
	emit_sound(0, CHAN_AUTO, PAZEE_SES, VOL_NORM, ATTN_NORM , 0, PITCH_NORM)
}
public plugin_precache()
{
   precache_sound(PAZEE_SES)
}
public Sarsinti(TaskID)
{
for(new id = 1; id < 33; id++)
{
   if(is_user_connected(id) && is_user_alive(id) && sarsiliyor)
   {
      message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("ScreenShake"), {0,0,0}, id)  
      write_short(0xFFFF)
      write_short(1<<13)
      write_short(0xFFFF) 
      message_end()
   }
}
}

public DepremiBitir(TaskID)
{
   remove_task(4701)
   sarsiliyor = false
   remove_task(TaskID)   
   server_cmd("amx_cvar sadecebirkere 0")
   
}
public OnGlow( id ) {
   new players[ 32 ], xnum;
   get_players( players, xnum, "ah" );
   for( new x = 0; x < xnum; x++ ) {
      new x1 = random_num( 0, 255 );
      new x2 = random_num( 0, 255 );
      new x3 = random_num( 0, 255 );
      new xAlpha = random_num( 40, 65 );
      message_begin( MSG_ONE, get_user_msgid( "ScreenFade" ), { 0, 0, 0 }, players[ x ] );
      write_short( ~0 );
      write_short( ~0 );
      write_short( 1<<12 );
      write_byte( x1 );
      write_byte( x2 );
      write_byte( x3 );
      write_byte( xAlpha );
      message_end( );
      set_user_rendering( players[ x ], kRenderFxGlowShell, x1, x2, x3, kRenderTransAlpha, 255 );
   }
}

public OffGlow( TaskID ) {
   new players[ 32 ], xnum;
   get_players( players, xnum, "h" );
   for( new x = 0; x < xnum; x++ ) {
      message_begin( MSG_ONE, get_user_msgid( "ScreenFade" ), { 0, 0, 0 }, players[ x ] );
      write_short( ~0 );
      write_short( ~0 );
      write_short( 1<<12 );
      write_byte( 0 );
      write_byte( 0 );
      write_byte( 0 );
      write_byte( 0 );
      message_end( );
      
      set_user_rendering( players[ x ] );
   }
}

stock chat_color(const id, const input[], any:...) {
   new count = 1, players[32]
   static msg[191]
   vformat(msg, 190, input, 3)
   
   replace_all(msg, 190, "!g", "^4")
   replace_all(msg, 190, "!y", "^1")
   replace_all(msg, 190, "!t", "^3")
   replace_all(msg, 190, "!team2", "^0")
   
   if (id) players[0] = id; else get_players(players, count, "ch")
   {
   for (new i = 0; i < count; i++)
   {
      if (is_user_connected(players[i]))
      {
         message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
         write_byte(players[i]);
         write_string(msg);
         message_end();
      }
   }
}
}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/
olmadı bu sefer deprem filan olmuyor müzikde çalmıyor :lol:

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

cixx12
Yasaklı Üye
Yasaklı Üye
Mesajlar: 294
Kayıt: Cum Şub 03, 2017 7:38 pm
Konum: istanbul
Server Ip/DNS: 213.238.173.189
Clan İsmi: JussarieL CSGO
İletişim:

Map Degistiginde 30 Saniye Boyunca Muzik ve Renkli Deprem

Mesaj gönderen cixx12 »

:D :D

Link:
Linklerini gizle
Linki Kopyala

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

Map Degistiginde 30 Saniye Boyunca Muzik ve Renkli Deprem

Mesaj gönderen PaZee »

dene

Kod: Tümünü seç


#include <amxmodx>
#include <fun>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <fakemeta>
#include <nvault>
#include <engine>

#define PLUGIN "MapAcildigindaKopKop"
#define VERSION "1.0"
#define AUTHOR "PaZee"

new const PAZEE_SES[] =   "sesyolu.wav"
new bool:sarsiliyor = false
new sadecebirkere

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   register_logevent("vurefekti",2,"1=Round_Start")
   sadecebirkere    = register_cvar ("sadecebirkere","1")
}
public kontrol()
{
   emit_sound(0, CHAN_AUTO, PAZEE_SES, VOL_NORM, ATTN_NORM , 0, PITCH_NORM)
   calid()
}
public calid()
{
	new players[32],inum;
	static id
	get_players(players,inum)
	for(new i;i<inum;i++) 
	{
	    if(get_pcvar_num(sadecebirkere))
        {
         set_task(0.2,"Sarsinti",4701,"",0,"b")
         OnGlow(id)
         set_task(30.0,"DepremiBitir",4702)
         set_task(30.0,"OffGlow",3162)
         sarsiliyor = true
        }
	}	
}
public plugin_precache()
{
   precache_sound(PAZEE_SES)
}
public Sarsinti(TaskID)
{
for(new id = 1; id < 33; id++)
{
   if(is_user_connected(id) && is_user_alive(id) && sarsiliyor)
   {
      message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("ScreenShake"), {0,0,0}, id)  
      write_short(0xFFFF)
      write_short(1<<13)
      write_short(0xFFFF) 
      message_end()
   }
}
}

public DepremiBitir(TaskID)
{
   remove_task(4701)
   sarsiliyor = false
   remove_task(TaskID)   
   server_cmd("amx_cvar sadecebirkere 0")
   
}
public OnGlow( id ) {
   new players[ 32 ], xnum;
   get_players( players, xnum, "ah" );
   for( new x = 0; x < xnum; x++ ) {
      new x1 = random_num( 0, 255 );
      new x2 = random_num( 0, 255 );
      new x3 = random_num( 0, 255 );
      new xAlpha = random_num( 40, 65 );
      message_begin( MSG_ONE, get_user_msgid( "ScreenFade" ), { 0, 0, 0 }, players[ x ] );
      write_short( ~0 );
      write_short( ~0 );
      write_short( 1<<12 );
      write_byte( x1 );
      write_byte( x2 );
      write_byte( x3 );
      write_byte( xAlpha );
      message_end( );
      set_user_rendering( players[ x ], kRenderFxGlowShell, x1, x2, x3, kRenderTransAlpha, 255 );
   }
}

public OffGlow( TaskID ) {
   new players[ 32 ], xnum;
   get_players( players, xnum, "h" );
   for( new x = 0; x < xnum; x++ ) {
      message_begin( MSG_ONE, get_user_msgid( "ScreenFade" ), { 0, 0, 0 }, players[ x ] );
      write_short( ~0 );
      write_short( ~0 );
      write_short( 1<<12 );
      write_byte( 0 );
      write_byte( 0 );
      write_byte( 0 );
      write_byte( 0 );
      message_end( );
      
      set_user_rendering( players[ x ] );
   }
}

stock chat_color(const id, const input[], any:...) {
   new count = 1, players[32]
   static msg[191]
   vformat(msg, 190, input, 3)
   
   replace_all(msg, 190, "!g", "^4")
   replace_all(msg, 190, "!y", "^1")
   replace_all(msg, 190, "!t", "^3")
   replace_all(msg, 190, "!team2", "^0")
   
   if (id) players[0] = id; else get_players(players, count, "ch")
   {
   for (new i = 0; i < count; i++)
   {
      if (is_user_connected(players[i]))
      {
         message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
         write_byte(players[i]);
         write_string(msg);
         message_end();
      }
   }
}
}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/

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

Konu Sahibi
jumple01
Mesajlar: 660
Kayıt: Cmt Oca 21, 2017 12:32 pm

Map Degistiginde 30 Saniye Boyunca Muzik ve Renkli Deprem

Mesaj gönderen jumple01 »

PaZee yazdı:dene

Kod: Tümünü seç


#include <amxmodx>
#include <fun>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <fakemeta>
#include <nvault>
#include <engine>

#define PLUGIN "MapAcildigindaKopKop"
#define VERSION "1.0"
#define AUTHOR "PaZee"

new const PAZEE_SES[] =   "sesyolu.wav"
new bool:sarsiliyor = false
new sadecebirkere

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   register_logevent("vurefekti",2,"1=Round_Start")
   sadecebirkere    = register_cvar ("sadecebirkere","1")
}
public kontrol()
{
   emit_sound(0, CHAN_AUTO, PAZEE_SES, VOL_NORM, ATTN_NORM , 0, PITCH_NORM)
   calid()
}
public calid()
{
	new players[32],inum;
	static id
	get_players(players,inum)
	for(new i;i<inum;i++) 
	{
	    if(get_pcvar_num(sadecebirkere))
        {
         set_task(0.2,"Sarsinti",4701,"",0,"b")
         OnGlow(id)
         set_task(30.0,"DepremiBitir",4702)
         set_task(30.0,"OffGlow",3162)
         sarsiliyor = true
        }
	}	
}
public plugin_precache()
{
   precache_sound(PAZEE_SES)
}
public Sarsinti(TaskID)
{
for(new id = 1; id < 33; id++)
{
   if(is_user_connected(id) && is_user_alive(id) && sarsiliyor)
   {
      message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("ScreenShake"), {0,0,0}, id)  
      write_short(0xFFFF)
      write_short(1<<13)
      write_short(0xFFFF) 
      message_end()
   }
}
}

public DepremiBitir(TaskID)
{
   remove_task(4701)
   sarsiliyor = false
   remove_task(TaskID)   
   server_cmd("amx_cvar sadecebirkere 0")
   
}
public OnGlow( id ) {
   new players[ 32 ], xnum;
   get_players( players, xnum, "ah" );
   for( new x = 0; x < xnum; x++ ) {
      new x1 = random_num( 0, 255 );
      new x2 = random_num( 0, 255 );
      new x3 = random_num( 0, 255 );
      new xAlpha = random_num( 40, 65 );
      message_begin( MSG_ONE, get_user_msgid( "ScreenFade" ), { 0, 0, 0 }, players[ x ] );
      write_short( ~0 );
      write_short( ~0 );
      write_short( 1<<12 );
      write_byte( x1 );
      write_byte( x2 );
      write_byte( x3 );
      write_byte( xAlpha );
      message_end( );
      set_user_rendering( players[ x ], kRenderFxGlowShell, x1, x2, x3, kRenderTransAlpha, 255 );
   }
}

public OffGlow( TaskID ) {
   new players[ 32 ], xnum;
   get_players( players, xnum, "h" );
   for( new x = 0; x < xnum; x++ ) {
      message_begin( MSG_ONE, get_user_msgid( "ScreenFade" ), { 0, 0, 0 }, players[ x ] );
      write_short( ~0 );
      write_short( ~0 );
      write_short( 1<<12 );
      write_byte( 0 );
      write_byte( 0 );
      write_byte( 0 );
      write_byte( 0 );
      message_end( );
      
      set_user_rendering( players[ x ] );
   }
}

stock chat_color(const id, const input[], any:...) {
   new count = 1, players[32]
   static msg[191]
   vformat(msg, 190, input, 3)
   
   replace_all(msg, 190, "!g", "^4")
   replace_all(msg, 190, "!y", "^1")
   replace_all(msg, 190, "!t", "^3")
   replace_all(msg, 190, "!team2", "^0")
   
   if (id) players[0] = id; else get_players(players, count, "ch")
   {
   for (new i = 0; i < count; i++)
   {
      if (is_user_connected(players[i]))
      {
         message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
         write_byte(players[i]);
         write_string(msg);
         message_end();
      }
   }
}
}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/
Sizide Cok Yordum Kusura Bakmayında Bu Sefer Hiç biri Çalışmıyor ve Cvar'da Bilinmeyen Diyor Artık Eger Olmuyorsa Gendede Teşekkür Ederim Baya Ugraştınız Çünkü

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

Fatih ~ EjderYa
Mesajlar: 2896
Kayıt: Prş Mar 16, 2017 5:05 pm
Konum: İstanbul
İletişim:

Map Degistiginde 30 Saniye Boyunca Muzik ve Renkli Deprem

Mesaj gönderen Fatih ~ EjderYa »

Kardeşim Uğraşmayın . Sen Sadece Ekran rengini ve depremini ayarla plugin bu!!

topic10823.html

Bu linkte yorumlarda el başı müzik paylaştım

Link:
Linklerini gizle
Linki Kopyala
Cevapla