Raised This Month: $ Target: $400
 0% 

[CS] Which team won? (get at end of round) *SOVED*


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-27-2009 , 18:44   Re: [CS] Which team won? (get at end of round)
Reply With Quote #4

You can do that with messages (messages are called before the events) and put plugin's name above the custom plugin names in plugins.ini.
Code:
#include <amxmodx>   public plugin_init()         register_message(get_user_msgid("TextMsg"), "TextMsg");   public TextMsg() {         new Text[32];         get_msg_arg_string(2, Text, 31);           if (equal(Text, "#Terrorists_Win"))         {                 // Terrorists have won         }         else if (equal(Text, "#CTs_Win"))         {                 // CTs have won         }         else if (equal(Text, "#Round_Draw")) // Should work         {                 // Round draw         } }
__________________

Last edited by hleV; 07-27-2009 at 18:52.
hleV 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 18:23.


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