Raised This Month: $ Target: $400
 0% 

Repair plugin


Post New Thread Reply   
 
Thread Tools Display Modes
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
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-26-2008 , 07:05   Re: Repair plugin
Reply With Quote #2

Color are bytes.

write_byte(0);
write_byte(0);
write_byte(0);
__________________
Arkshine is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 08-26-2008 , 07:22   Re: Repair plugin
Reply With Quote #3

Moved from "Sugggestions/Requests" to "Scripting Help".
Brad is offline
PoSiTiOn Of PoWeR
BANNED
Join Date: May 2008
Location: RO
Old 08-26-2008 , 07:24   Re: Repair plugin
Reply With Quote #4

do not work

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_byte(0);
      
write_byte(0);
      
write_byte(0);  
      
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));

PoSiTiOn Of PoWeR is offline
Send a message via Yahoo to PoSiTiOn Of PoWeR
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-26-2008 , 07:27   Re: Repair plugin
Reply With Quote #5

This time you forgot the alpha.

Code:
      write_byte(255);
http://wiki.amxmodx.org/Half-Life_1_...nts#ScreenFade
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 15:26.


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