Raised This Month: $ Target: $400
 0% 

2 team together


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
omgdpcwtf
Member
Join Date: Apr 2011
Old 11-15-2014 , 14:36   2 team together
Reply With Quote #1

Hi, I have little problem this code works wierd. If CTs wins and Im CT message showed, but if Im T and CTs wins message wont show me why?

Code:
public CounterTerrorists_win()
{
    new iPlayers[32], iNum, id
    get_players(iPlayers, iNum, "aceh", "CT")
    for(new i=0;i<iNum;i++) {
    set_dhudmessage(0, 255, 0, -1.0, 0.4, 2, 6.0, 2.0)
    show_dhudmessage(iPlayers[i], "WIN")
    client_cmd(iPlayers[i], "mp3 play ^"sound/mix/win.mp3^"")
    client_print(iPlayers[i], print_chat, "win!")
    }
    
    new iPlayers2[32], iNum2, id2
    get_players(iPlayers2, iNum2, "aceh", "TERRORIST")
    for(new i2=0;i2<iNum2;i2++) {
    set_dhudmessage(0, 255, 0, -1.0, 0.4, 2, 6.0, 2.0)
    show_dhudmessage(iPlayers[i2], "Loose!")
    client_cmd(iPlayers[i2], "mp3 play ^"sound/mix/loose.mp3^"")
    client_print(iPlayers[i2], print_chat, "LOOSE!")
    }
}

Last edited by omgdpcwtf; 11-15-2014 at 14:37.
omgdpcwtf 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 17:34.


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