Cerere modificare plugin!

Modificari necesare ale pluginurilor

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
Babica
Membru, skill 0
Membru, skill 0
Posts: 83
Joined: 09 Sep 2009, 13:32
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com!
Has thanked: 4 times
Been thanked: 11 times

22 Aug 2010, 01:43

| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <hamsandwich>

#pragma semicolon 1

new const g_version[] = "0.2"; 

new const g_Flags[ 3 ][] =   {
   "abcdefghijklmnopqrstu",
   "abcdefijklmnopqrst",
   "bcdefijkmnopqrst"
   
};

new const g_Render[3][3]= {
   {255, 0, 0},
   {255, 0, 0},
   {0, 255, 0}
  
};

public plugin_init() {
   register_plugin( "Admins glow", g_version, "compaq & exe" );
   RegisterHam( Ham_Spawn, "player", "CBase_HamForwardHookSpw", 1 );
}

public CBase_HamForwardHookSpw( const i_Index ) {
   if ( !is_user_connected( i_Index ) || !is_user_alive( i_Index ) ) {
      return HAM_SUPERCEDE;
   }

   for(new i=0 ; i<11 ;i++) {
      if( get_user_flags( i_Index ) == read_flags( g_Flags[ i ] ) )
      {
         set_user_rendering( i_Index, kRenderFxGlowShell, g_Render[0],g_Render[1],g_Render[2], kRenderNormal, 25 );
      }
   }

   return HAM_IGNORED;
}


Folosesca acest Adminglow facut de execution&Compaq, numai ca e o problema.. adminii au glow dar de la departare se vede glow`ul foarte putin.. cum fac ca el sa fie IMBRACAT tot in rosu/verde , ce culoare este selectata.. adica sa fie permaent rosu.. abia sa se vada modelu CT..
SaByUtZa VaSy ;x

22 Aug 2010, 07:33

modifici aici:

set_user_rendering( i_Index, kRenderFxGlowShell, g_Render[0],g_Render[1],g_Render[2], kRenderNormal, 25 );

In loc de 25 pui ce numar vrei tu.Cu cat e mai mare cu atat e mai ingrosat cred
User avatar
Ciprian
Fost administrator
Fost administrator
Posts: 5172
Joined: 10 May 2008, 20:29
Detinator Steam: Da
CS Status: ^^
SteamID: crazycipry
Reputatie: Fost administrator
Fost Scripter eXtreamCS
Fost Supervizor CS.eXtreamCS.com
Fost Unbanner ZM.eXtreamCS.com
Fost Contribuitor
Nume anterior: crazy.cipry
Location: Baia Mare
Has thanked: 176 times
Been thanked: 401 times
Contact:

22 Aug 2010, 11:48

| Afiseaza codul
[code=php]
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <hamsandwich>

#pragma semicolon 1

new const g_version[] = "0.2"; 

new const g_Flags[ 3 ][] =   {
   "abcdefghijklmnopqrstu",
   "abcdefijklmnopqrst",
   "bcdefijkmnopqrst"
   
};

new const g_Render[3][3]= {
   {255, 0, 0},
   {255, 0, 0},
   {0, 255, 0}
  
};

public plugin_init() {
   register_plugin( "Admins glow", g_version, "compaq & exe" );
   RegisterHam( Ham_Spawn, "player", "CBase_HamForwardHookSpw", 1 );
}

public CBase_HamForwardHookSpw( const i_Index ) {
   if ( !is_user_connected( i_Index ) || !is_user_alive( i_Index ) ) {
      return HAM_SUPERCEDE;
   }

   for(new i=0 ; i<11 ;i++) {
      if( get_user_flags( i_Index ) == read_flags( g_Flags[ i ] ) )
      {
         set_user_rendering( i_Index, kRenderFxGlowShell, g_Render[0],g_Render[1],g_Render[2], kRenderNormal, 90 );
      }
   }

   return HAM_IGNORED;
}
 [/code]


Mutat in Programare CS - Pluginuri!
Post Reply

Return to “Modificari pluginuri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests