Modificari necesare ale pluginurilor
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
Babica
- Membru, skill 0
- Posts: 83
- Joined: 09 Sep 2009, 14:32
- Detinator Steam: Da
- CS Status: Citesc forumul eXtreamCS.com!
- Has thanked: 4 times
- Been thanked: 11 times
22 Aug 2010, 02: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, 08: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
-
Ciprian
- Fost administrator
- Posts: 5172
- Joined: 10 May 2008, 21: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: 177 times
- Been thanked: 405 times
22 Aug 2010, 12: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!
-
Users browsing this forum: No registered users and 21 guests