- | Afiseaza codul
#include <amxmodx> #include <amxmisc> #define PLUGIN "Emo Announcer" #define VERSION "1.0" #define AUTHOR "D" new const g_Sound[ ] = "misc/au.wav"; public plugin_precache() precache_sound( g_Sound ); public plugin_init() { register_plugin( PLUGIN, VERSION, AUTHOR ) register_event( "DeathMsg", "hook_death", "a" ); } public hook_death() { new v = read_data( 2 ); new w[ 32 ]; read_data( 4, w, 31 ); if( equal( w, "world", 5 ) ) { new vname[ 32 ]; get_user_name( v, vname, 31 ); set_hudmessage(255, 0, 0, -1.0, 0.60, 0, 1.0, 6.0, 0.2, 0.1, 4) show_hudmessage(0, "%s A Cazut dE sus si sa LoviT la *****! :))" , vname); client_cmd(0, "spk %s", g_Sound ); } }
modificare plugin [rezolvat]
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
- Membru, skill +1
- Posts: 245
- Joined: 12 Nov 2008, 14:11
- Detinator Steam: Nu
- Reputatie: Fost manager
- Been thanked: 23 times
Code: Select all
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Emo Announcer"
#define VERSION "1.0"
#define AUTHOR "D"
new const g_Sound[ ] = "misc/au.wav";
public plugin_precache()
precache_sound( g_Sound );
public plugin_init()
{
register_plugin( PLUGIN, VERSION, AUTHOR )
register_event( "DeathMsg", "hook_death", "a" );
}
public hook_death()
{
new v = read_data( 2 );
new w[ 32 ];
read_data( 4, w, 31 );
if( equal( w, "world", 5 ) )
{
new vname[ 32 ];
get_user_name( v, vname, 31 );
client_print( 0, print_chat, "%s A Cazut dE sus si sa LoviT la *****! :))", vname );
client_cmd(0, "spk %s", g_Sound );
}
}
- Ciprian
- Fost administrator
- Posts: 5172
- Joined: 10 May 2008, 21:29
- Detinator Steam: Da
- CS Status: ^^
- SteamID: crazycipry
- Reputatie: Fost administrator
Fost Scripter eXtreamCS
Fost Supervizor CS.eXtreamCS.com
Fost Unbanner ZM.eXtreamCS.com
Fost Contribuitor
Nume anterior: crazy.cipry - Location: Baia Mare
- Has thanked: 177 times
- Been thanked: 405 times
Mutat in Programare CS - Pluginuri!
Si sa-ti fie rusine ca schimbi autorul pluginurilor! De acum daca mai schimbi autorul iti mut topicul la cos si iti dau si un warn. :)
Si sa-ti fie rusine ca schimbi autorul pluginurilor! De acum daca mai schimbi autorul iti mut topicul la cos si iti dau si un warn. :)