Raised This Month: $ Target: $400
 0% 

2 team together


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-16-2014 , 04:57   Re: 2 team together
Reply With Quote #1

Quote:
Change "new id2" to "new i2".Bam! Code working!
Please don't give bad advices. Look into the for, he already do <new i2>

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

Last edited by HamletEagle; 11-16-2014 at 04:57.
HamletEagle is offline
omgdpcwtf
Member
Join Date: Apr 2011
Old 11-16-2014 , 05:10   Re: 2 team together
Reply With Quote #2

it doesnt work...If Im T and CTs win I still dont see message..., I think problem will be maybe in flags "aceh"?

Last edited by omgdpcwtf; 11-16-2014 at 05:10.
omgdpcwtf 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 17:34.


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