Raised This Month: $ Target: $400
 0% 

Last man standing


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 08-22-2011 , 17:58   Re: Last man standing
Reply With Quote #8

Quote:
Originally Posted by Menethil View Post
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.
PHP Code:
 message_begin(MSG_ONEg_msgScreenFade_id)
 
write_short((1<<12)*2// duration
 
write_short(0// hold time
 
write_short(0x0000// fade type
 
write_byte(1// red
 
write_byte(2// green
 
write_byte(3// blue
 
write_byte(6// alpha
 
message_end() 
.Dare Devil. 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