Raised This Month: $ Target: $400
 0% 

Last man standing


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Menethil
Senior Member
Join Date: Aug 2011
Old 08-22-2011 , 15:20   Re: Last man standing
Reply With Quote #7

Is this correct till now ?
Code:
#include <amxmodx>
#include <fakemeta>

#define PLUGIN LastMan
#define VERSION 0.1
#define AUTHOR NeuTroN

public plugin_init() 
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_event("DeathMsg", "death_msg", "a")
    
}

public death_msg(id){ 
    new players_ct[32], players_t[32], ict, ite, name[32] 
    get_players(players_ct,ict,"ae","CT")     
    get_players(players_t,ite,"ae","TERRORIST")     

    new victim = read_data(2) 
    new victim_team = get_user_team(victim,"",0) 
     
    if (ict==1&&ite==1)
    { 
        get_user_name(players_ct[0],name,32) 
        set_hudmessage(50,255,0,-1.0,0.30,0, 6.0, 8.0, 1.0, 2.0, 6) 
        show_hudmessage(players_t[0],"1vs1 with %s !",name) 

        get_user_name(players_t[0],name,32) 
        set_hudmessage(50,255,0,-1.0,0.30,0, 6.0, 8.0, 1.0, 2.0, 6) 
        show_hudmessage(players_ct[0],"1vs1 with %s !",name) 

        if(ite==1)
        {
            // FadeScreen Red Transparecy here
        }
        
         if(ict==1)
        {
            // FadeScreen Blue Transparecy here
        }

        if(ict==1&&ite==1)
        {
            client_cmd ( 0 , "spk misc/mysound.wav" )
        }
}

public plugin_precache () 
{ 
    precache_sound ( "misc/mysound.wav" )
}
And i still need help with the screen fade, i dont handle this verry well.
Menethil is offline
 



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 03:23.


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