modificare plugin [rezolvat]

Modificari necesare ale pluginurilor

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
b[L]u
Membru, skill +1
Membru, skill +1
Posts: 314
Joined: 31 May 2010, 14:27
Detinator Steam: Nu
Has thanked: 26 times
Been thanked: 8 times

20 Aug 2010, 11:23

| 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 );
}
}
vreau sa-mi modificati sa apara mesaj in chat nu in hud
Last edited by b[L]u on 20 Aug 2010, 12:36, edited 1 time in total.
Nick: MiSteR D
Image
RoyalServer
Reptile
Membru, skill +1
Membru, skill +1
Posts: 245
Joined: 12 Nov 2008, 14:11
Detinator Steam: Nu
Reputatie: Fost manager
Been thanked: 23 times

20 Aug 2010, 11:28

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 );
    }
}
User avatar
b[L]u
Membru, skill +1
Membru, skill +1
Posts: 314
Joined: 31 May 2010, 14:27
Detinator Steam: Nu
Has thanked: 26 times
Been thanked: 8 times

20 Aug 2010, 12:36

multumesc :D
Nick: MiSteR D
Image
User avatar
Ciprian
Fost administrator
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

21 Aug 2010, 19:01

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. :)
Post Reply

Return to “Modificari pluginuri”

  • Information