Raised This Month: $ Target: $400
 0% 

Repair plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
PoSiTiOn Of PoWeR
BANNED
Join Date: May 2008
Location: RO
Old 08-26-2008 , 07:01   Repair plugin
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN_NAME   "New AMXX Plugin"
#define PLUGIN_AUTHOR   "SAMURAI"
#define PLUGIN_VERSION   "0.1"

new bool:g_bl_Firstround false;

public 
plugin_init()
{
   
register_plugin(PLUGIN_NAMEPLUGIN_AUTHORPLUGIN_VERSION);
   
register_event("HLTV","event_new_round","a","1=0","2=0");
   
}

public 
event_new_round()
{
   if(
g_bl_Firstround)
      return;
   
   static 
players[32],inum,i;
   
get_players(players,inum);
   for(
0inumi++)
   {
      if(!
is_user_connected(players[i]))
         continue;
      
      
message_begin(MSG_ONE,get_user_msgid("ScreenFade"), {0,0,0}, players[i]);
      
write_short(fade_units_to_seconds(10));
      
write_short(fade_units_to_seconds(10));
      
write_short(0x0001);
      
write_short(0);
      
write_short(0);
      
write_short(0);
      
write_byte(255);   
      
message_end();
      
      
set_hudmessage();
      
show_hudmessage(0,"Wait 10 seconds to start the game!");
      
   }
   
   
g_bl_Firstround true;
}

stock fade_units_to_seconds(num)
{
   return ((
1<<12) * (num));

Error:

PoSiTiOn Of PoWeR is offline
Send a message via Yahoo to PoSiTiOn Of PoWeR
 



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 03:02.


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