Raised This Month: $51 Target: $400
 12% 

[REQ] Add Chat Messages + Effect with Thunder


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 03-15-2015 , 16:56   [REQ] Add Chat Messages + Effect with Thunder
Reply With Quote #1

I want to have a chat message when a team is slay(in different options). And players of dying with thunder. Here it plugin :

PHP Code:
#include <amxmodx> 
#include <engine> 

#define MAX_PLAYERS 32 

new const g_szTsObjectives[][] =  

    
"func_bomb_target"
    
"info_bomb_target"
    
"func_escapezone" 


new const 
g_szCtsObjectives[][] =  

    
"func_hostage_rescue"
    
"info_hostage_rescue"
    
"func_vip_safetyzone" 


enum  

    
None
    
Ts
    
CTs 


new 
g_iTeamObjectiveMap 

public plugin_init() 

    
register_plugin"Slay Loosers""0.0.1""ConnorMcLeod" 

    new 
iEnt
    
for( 0i<sizeofg_szTsObjectives ); i++ ) 
    { 
        if( 
find_ent_by_classiEntg_szTsObjectives] ) > 
        { 
            
g_iTeamObjectiveMap Ts 
            
break 
        } 
    } 

    for( 
0i<sizeofg_szCtsObjectives ); i++ ) 
    { 
        if( 
find_ent_by_classiEntg_szCtsObjectives] ) > 
        { 
            if( 
g_iTeamObjectiveMap == Ts 
            { 
                
g_iTeamObjectiveMap None 
            

            else 
            { 
                
g_iTeamObjectiveMap CTs 
            


            break 
        } 
    } 

    if( 
g_iTeamObjectiveMap != None 
    { 
        
register_event"SendAudio""Event_SendAudio_RoundEnd""a""2=%!MRAD_terwin""2=%!MRAD_ctwin""2=%!MRAD_rounddraw" )
    } 


public 
Event_SendAudio_RoundEnd() 

    new 
szParm], iTeam 
    read_data
2szParmcharsmaxszParm ) ) 
    switch( 
szParm] ) 
    { 
        case 
't':iTeam CTs 
        
case 'c':iTeam Ts 
        
case 'r':iTeam g_iTeamObjectiveMap 
    


    new 
iPlayersMAX_PLAYERS ], iNumid 
    get_players
iPlayersiNum 
    for( new 
ii<iNumi++ ) 
    { 
        
id iPlayers
        if( 
is_user_aliveid ) && get_user_teamid ) == iTeam 
        { 
            
user_killid
        } 
    } 

Lolz0r is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode