Raised This Month: $ Target: $400
 0% 

Help to X CTs Alives


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Xs-Chuki-Xs
Senior Member
Join Date: Jan 2010
Location: Argentina
Old 08-08-2010 , 01:54   Help to X CTs Alives
Reply With Quote #1

Hi! Sorry for mi bad english.

I have a problem. Wanted to get Counter-Terrorist as many are alive. But at the same time I want in scrambled plural or singular if it is a CT.

Code:

PHP Code:
#include <amxmodx>

new HudsynciMaxplayers

public plugin_init() {
    
iMaxplayers get_maxplayers()
    
Hudsync CreateHudSyncObj()
}

public 
client_putinserver(id)

set_task(0.1"Players"id,_,_,"b")
}

public 
Players(id) {
    new 
Team2
    
    
for(new i=1i<=iMaxplayersi++) 
    {
       if(
get_user_team(i) == && is_user_alive(i)) 
       {
            
Team2++
        }
    }
    
    
set_hudmessage(002550.020.6306.012.0)
    
ShowSyncHudMsg(idHudsync"^nCT%s %d alive%s", (Players) >  Team2) ? "n" ""Players(), (Players() > Team2) ? "s" "")  

and errors:

PHP Code:
ErrorSyntax error in the expression, or invalid function call on line 28
Error
Invalid expressionassumed zero on line 28 
Xs-Chuki-Xs 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 00:16.


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