Raised This Month: $ Target: $400
 0% 

Help edit ad_manager.amxx (make advertise only for dead and spec)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 07-17-2011 , 10:33   Re: Help edit ad_manager.amxx (make advertise only for dead and spec)
Reply With Quote #1

If I'm understanding you correctly, I'd remove your current alive check code, and change this:
PHP Code:
//Display the message to everyone
new plist[32], playernumplayer;
        
get_players(plistplayernum"c");
    
for(new 
0playernumi++)
{
    
player plist[i];
            
    
message_begin(MSG_ONEgmsgSayText, {0,0,0}, player);
    
write_byte(player);
    
write_string(message);
    
message_end();

to --->

PHP Code:
//Display the message to everyone
new plist[32], playernumplayer;
        
get_players(plistplayernum"c");
    
for(new 
0playernumi++)
{
    
player plist[i];
            
    if( 
is_user_aliveplayer ) || get_user_teamplayer ) != CS_TEAM_SPECTATOR )
        continue;
        
    
message_begin(MSG_ONEgmsgSayText, {0,0,0}, player);
    
write_byte(player);
    
write_string(message);
    
message_end();

Try that.
hornet 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 00:52.


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