OverDose.idle.ro

Welcome OverDose
 
AcasaPortalCalendarGalerieFAQCautareMembriGrupuriInregistrareConectare
Sondaj
O parere despre Forum&Server!!!
Este Perfect
60%
 60% [ 25 ]
Este Dragutz
21%
 21% [ 9 ]
Ar Mai trebuii Lucrat
19%
 19% [ 8 ]
Total voturi : 42
Cautare
 
 

Rezultate pe:
 
Rechercher Cautare avansata
Conectare
Utilizator:
Parola:
Conectare automata: 
:: Mi-am uitat parola
Parteneri
forum gratuit
Navigare
 Portal
 Index
 Membri
 Profil
 FAQ
 Cautare
Visitors & Your Ip
Counter

Distribuiți | 
 

 Screen Flash On Kill [AmxMod]

Vezi subiectul anterior Vezi subiectul urmator In jos 
AutorMesaj
Soby
Founder
Founder
avatar

Numarul mesajelor : 315
Data de inscriere : 21/08/2008
Varsta : 33

MesajSubiect: Screen Flash On Kill [AmxMod]   Lun Sept 15, 2008 10:43 am

ScreenFlash On Kill
Descriere: Cand te omoara cineva, imaginea ti se face rosie/verde/albastra pentru 1-2 secunde

Descarcare: www.extreamcs.com" target="_blank" rel="nofollow">http://www.esnips.com/doc/9aa17817-7789-4c14-8132-9b80e5b93fe1/ScreenFlash-On-Kill-AMX-www.extreamcs.com

Instalare:
1. Fisierul screenflash_kill.amx il puneti in addons/amx/plugins
2. Intrati in fisierul addons/amx/config/plugins.ini si adaugati la urma:
Code:

screenflash_kill.amx


Pentru AmxModX se face in felul urmator:
Modifici in codul sursa cu
Vreau sa vad daca m-ati inteles si daca va merge..bafta!


Pentru verde:

Code:
/* ScreenFlash on Kill AMX MOD X Plugin
* by SAMURAI
* version 0.3 BETA !
* Sugestion by andreiutzu7
* INITIAL by v3x
* THANKS TO petey for fixes
* PORTED TO AMX MOD
* Fixed scr fade
* fixed event
* fixed short and writeBYTE
*/

#include

#define PLUGIN "ScreenFlash on kill"
#define VERSION "0.3 BETA"
#define AUTHOR "SAMURAI"

new gMsgScreenFade;

/* -- EDITABLE -> */

#define DURATION (6<<10)
#define HOLDTIME (5<<10)
#define FADETYPE (1<<12)

#define RED_KILLER 0
#define GREEN_KILLER 0
#define BLUE_KILLER 255

#define RED_KILLED 0
#define GREEN_KILLED 0
#define BLUE_KILLED 255

#define ALPHA 170


public plugin_init()
{
register_plugin(PLUGIN , VERSION , AUTHOR);

register_event("DeathMsg" , "event_DeathMsg" , "a" , "1!0" , "2!0");
register_cvar("sv_kill_flash", "1");
register_cvar("sv_kill_flash_hs", "0");
register_cvar("sv_kill_flash_self" , "1");

gMsgScreenFade = get_user_msgid("ScreenFade");
}

public event_DeathMsg()
{
if( !get_cvar_num("sv_kill_flash") )
return PLUGIN_CONTINUE;

if( get_cvar_num("sv_kill_flash_hs") && read_data(3) != 1 )
return PLUGIN_CONTINUE;

new killer = read_data(0);
new victim = read_data(2);

if( is_user_alive(killer) && killer != victim && !is_user_bot(killer) )
{
message_begin( MSG_ONE_UNRELIABLE , gMsgScreenFade , {0,0,0} , killer );
write_short( DURATION ); // duration
write_short( HOLDTIME ); // hold time
write_short( FADETYPE ); // fade type
write_byte( RED_KILLER );
write_byte( GREEN_KILLER );
write_byte( BLUE_KILLER );
write_byte( ALPHA );
message_end();
}

if( !get_cvar_num("sv_kill_flash_self") )
return PLUGIN_CONTINUE;

if( !is_user_alive(victim) && is_user_connected(victim) && !is_user_bot(victim) )
{
message_begin( MSG_ONE_UNRELIABLE , gMsgScreenFade , {0,0,0} , victim );
write_short( DURATION ); // duration
write_short( HOLDTIME ); // hold time
write_short( FADETYPE ); // fade type
write_byte( RED_KILLED );
write_byte( GREEN_KILLED );
write_byte( BLUE_KILLED );
write_byte( ALPHA );
message_end();
}

return PLUGIN_CONTINUE;
}
Sus In jos
Vezi profilul utilizatorului http://WwW.Over-Dose.Forumz.Ro
 
Screen Flash On Kill [AmxMod]
Vezi subiectul anterior Vezi subiectul urmator Sus 
Pagina 1 din 1

Permisiunile acestui forum:Nu puteti raspunde la subiectele acestui forum
OverDose.idle.ro :: Plugins-
Mergi direct la: