View Single Post
Mofforg
Senior Member
Join Date: Aug 2010
Location: Moscow, Russia
Old 01-01-2013 , 16:30   Re: Bomb/Death/CSS Radar
Reply With Quote #18

Is this code better than yours if i need only to show dead teammates in radar?

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>

public plugin_init() set_task(115.0,"load")

public 
load()
{
register_plugin"Show dead (by red stripe) in radar""-""-" );
RegisterHamHam_Killed"player""ham_Killed_Post");
}

public 
ham_Killed_PostidAttackershouldgib )
{
    new 
Float:flLocation];
    
pevidpev_originflLocation );
    new 
players32 ], numplayer;
    
get_playersplayersnum );
    for( new 
num ++ )
    {
        
player players];
        if( 
get_user_teamplayer ) != get_user_teamid ) || !is_user_aliveplayer ) )
        continue;
            
        
message_beginMSG_ONE_UNRELIABLEget_user_msgid"HostagePos" ), { 00}, player );
        
write_byteplayer );
        
write_byteid )    ;    
        
engfuncEngFunc_WriteCoordflLocation] );
        
engfuncEngFunc_WriteCoordflLocation] );
        
engfuncEngFunc_WriteCoordflLocation] );
        
message_end();
                
        
message_beginMSG_ONE_UNRELIABLEget_user_msgid"HostageK" ), { 00}, player );
        
write_byteid );
        
message_end();
    }


Last edited by Mofforg; 01-01-2013 at 16:33.
Mofforg is offline
Send a message via ICQ to Mofforg Send a message via Skype™ to Mofforg