AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Round End HUD (https://forums.alliedmods.net/showthread.php?t=118330)

shuttle_wave 02-10-2010 00:13

Round End HUD
 
i just made a quick round end hud. but i want to replace round draw, hostage resurce with no one wins and remove game comecing

PHP Code:

#include <amxmodx>
#include <amxmisc>
new const VERSION[] = "1.0"
public plugin_init() {
    
register_plugin("Round End Hud"VERSION"Shuttle_Wave")
    
register_message(get_user_msgid("TextMsg") ,"message_TextMsg")
}
public 
message_TextMsg( const MsgId, const MsgDest, const MsgEntity )
{    
    static 
message[32]
    
get_msg_arg_string(2messagecharsmax(message))
    
    if(
equal(message"#Terrorists_Win"))
    {
  
set_hudmessage20000, -1.00.4043.08.00.00.010);
  
show_hudmessage(0"Prisoners Win!^nAll Guards were killed in action.")  
    }
    else if(
equal(message"#CTs_Win"))
    {
  
set_hudmessage00200, -1.00.4043.08.00.00.010);
  
show_hudmessage(0"Guards Win!^nAll Prisoners were defeated."
    }
 else
 {
        
set_hudmessage(02550, -1.0, -1.000.03.02.01.0, -1);
        
show_hudmessage(0"No one won.");
 }




All times are GMT -4. The time now is 07:20.

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