Raised This Month: $ Target: $400
 0% 

translate miniag half life 1


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
eseqiiel
Junior Member
Join Date: Jan 2016
Old 01-09-2016 , 22:25   translate miniag half life 1
Reply With Quote #1

Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#define VERSION "0.2a"

new g_SyncObj1;

public plugin_init()
{
   register_plugin("MiniAG TimerFix", VERSION, "LetiLetiLepestok");
   register_message(SVC_TEMPENTITY, "HookTempentity");
   g_SyncObj1 = CreateHudSyncObj();

}

public HookTempentity()
{
   if (get_msg_arg_int(1) != TE_TEXTMESSAGE)
      return PLUGIN_CONTINUE;

   static szMessage[512];

   
   new x = get_msg_arg_int(3);
   new y = get_msg_arg_int(4);

   if (x == 4096 && y == 81)
      return PLUGIN_HANDLED;

   if (x == 2457 && y == 4096)
   
   {
      get_msg_arg_string(18, szMessage, charsmax(szMessage));
      
      //client_print(0, print_chat, "= %s, [%d] * [%d] * [%d]", szMessage, get_msg_arg_int(14), get_msg_arg_int(15), get_msg_arg_int(16));
      //Modify the message = Match "Player" vs "Player" in "time" seconds!
      set_hudmessage(0, 255, 0, -1.0, 0.45, 0, 6.0, 12.0)

      ShowSyncHudMsg(0, g_SyncObj1, "Duelo entre (%s) versus (%s) en (%s) segundos!!!", szMessage);
      
      return PLUGIN_HANDLED;   
   }

   return PLUGIN_CONTINUE;
}


//Modify the message = Match "Player" vs "Player" in "time" seconds!
eseqiiel 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 09:29.


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