Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
[rezolvat]Cerere plugin INVIS
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
Author
Message
1415
CraZzy - 7Up
[CrazzyRO]
Status: Offline
(since 20-12-2018 20:01)
Joined: 26 Jun 2013
Posts: 605
,
Topics: 36
Location:
Severin .
Reputation:
150
Votes
: 23
Posted: 02-02-2015, 22:56:05
| Translate post to:
... (
Click for more languages
)
Am nevoie de un plugin care , daca scrii /invis pe chat sa iti apara un meniu ca sa faci playerii invizibili , pentru a creste FPS-ul .
Meniul sa arate asa :
Code:
Meniu invizibilitate ( Mareste FPS-ul ) :
1,Playeri vizibili
2.Playeri invizibili
Pluginul este pentru DRX.Freakz.RO
0
0
Back to top
EDUTz
[HardcoreAmxxScripter]
Status: Offline
(since 15-08-2021 16:34)
Joined: 27 Dec 2010
Posts: 4306
,
Topics: 244
Location:
Jud. Miserupia, sat Bagadanc
Reputation:
4085
Votes
: 179
Posted: 02-02-2015, 23:10:26
| Translate post to:
... (
Click for more languages
)
Ceva detalii ca nu prea se intelege .. ce playeri invizibili ? coechipierii, toti jucatorii ?? nu inteleg ce vrei sa atingi cu pluginul asta ...
Pentru pluginuri complicate le fac cu $$ pe paypal/psc. PM
0
0
Back to top
CraZzy - 7Up
[CrazzyRO]
Status: Offline
(since 20-12-2018 20:01)
Joined: 26 Jun 2013
Posts: 605
,
Topics: 36
Location:
Severin .
Reputation:
150
Votes
: 23
Posted: 02-02-2015, 23:15:40
| Translate post to:
... (
Click for more languages
)
Daca esti ct , sa faca toti coechipierii invizibili dar Teroristul sa se vada , daca esti t sa poti vedea ct.
Este un plugin pentru modul deathrun , pentru playerii cu pc mai slab sa ii ajute la FPS.
0
0
Back to top
GoguSM
[.: ZMGO.FREAKZ.RO :.]
Status: Offline
(since 16-03-2022 00:38)
Joined: 24 Aug 2013
Posts: 1516
,
Topics: 71
Location:
Brasov
Reputation:
1144
Votes
: 95
Posted: 02-02-2015, 23:43:01
| Translate post to:
... (
Click for more languages
)
Cred ca la asta, te referi:
Spoiler:
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
#define MAX_ENTITYS 900+15*32 // (900+15*SERVER_SLOTS) is the calculation cs uses but it can be bypassed by the "-num_edicts <x>"-parameter
new bool:g_bPlayerInvisible[33];
new bool:g_bWaterInvisible[33];
new bool:g_bWaterEntity[MAX_ENTITYS];
new bool:g_bWaterFound;
new g_iSpectatedId[33];
new const g_szForum[ ] = "DRX.Freakz.RO";
public plugin_init( )
{
register_plugin( "Invis", "2.0", "SchlumPF" );
register_clcmd( "say /invis", "menuInvisDisplay" );
register_menucmd( register_menuid( "\r[FPS] - \wInvizibilitate^n^n" ), 1023, "menuInvisAction" );
register_forward( FM_AddToFullPack, "fwdAddToFullPack_Post", 1 );
RegisterHam( Ham_Spawn, "player", "hamSpawnPlayer_Post", 1 );
register_event( "SpecHealth2", "eventSpecHealth2", "bd" );
}
public plugin_cfg( )
{
new ent = -1;
while( ( ent = find_ent_by_class( ent, "func_water" ) ) != 0 )
{
// pev( ent, pev_skin ) == CONTENTS_WATER is also true on func_water entities
if( !g_bWaterFound )
{
g_bWaterFound = true;
}
g_bWaterEntity[ent] = true;
}
// thanks to connor for finding the following two detections
ent = -1;
while( ( ent = find_ent_by_class( ent, "func_illusionary" ) ) != 0 )
{
if( pev( ent, pev_skin ) == CONTENTS_WATER )
{
if( !g_bWaterFound )
{
g_bWaterFound = true;
}
g_bWaterEntity[ent] = true;
}
}
ent = -1;
while( ( ent = find_ent_by_class( ent, "func_conveyor" ) ) != 0 )
{
if( pev( ent, pev_spawnflags ) == 3 )
{
if( !g_bWaterFound )
{
g_bWaterFound = true;
}
g_bWaterEntity[ent] = true;
}
}
}
public fwdAddToFullPack_Post( es_handle, e, ent, host, hostflags, player, pset )
{
if( player && g_bPlayerInvisible[host] && host != ent && ent != g_iSpectatedId[host] && get_user_team(host) == get_user_team(ent) )
{
static const Float:corner[8][3] =
{
{ -4096.0, -4096.0, -4096.0 },
{ -4096.0, -4096.0, 4096.0 },
{ -4096.0, 4096.0, -4096.0 },
{ -4096.0, 4096.0, 4096.0 },
{ 4096.0, -4096.0, -4096.0 },
{ 4096.0, -4096.0, 4096.0 },
{ 4096.0, 4096.0, -4096.0 },
{ 4096.0, 4096.0, 4096.0 }
};
// rounded; distance from the map's center to the corners; sqrt( 4096^2 + 4096^2 + 4096^2 )
static const Float:map_distance = 7094.480108;
static Float:origin[3];
get_es( es_handle, ES_Origin, origin );
static i;
while( get_distance_f( origin, corner[i] ) > map_distance )
{
if( ++i >= sizeof( corner ) )
{
// better to nullify the varibale now then doing it each time before the loop
i = 0;
}
}
set_es( es_handle, ES_Origin, corner[i] );
set_es( es_handle, ES_Effects, get_es( es_handle, ES_Effects ) | EF_NODRAW );
}
else if( g_bWaterInvisible[host] && g_bWaterEntity[ent])
{
set_es( es_handle, ES_Effects, get_es( es_handle, ES_Effects ) | EF_NODRAW );
}
}
public hamSpawnPlayer_Post( id )
{
g_iSpectatedId[id] = 0;
}
// thanks to xPaw who told me about this event
public eventSpecHealth2( id )
{
g_iSpectatedId[id] = read_data( 2 );
}
public menuInvisDisplay( id )
{
static menu[256];
new len = formatex( menu, 255, "\r[FPS] - \wInvizibilitate^n^n" );
len += formatex( menu[len], 255 - len, "\r1. \wCoechipierii: \y%s^n", g_bPlayerInvisible[id] ? "Invizibili" : "Vizibili" );
if( g_bWaterFound )
{
len += formatex( menu[len], 255 - len, "\r2. \wApa: \y%s^n", g_bWaterInvisible[id] ? "Invizibila" : "Vizibila" );
}
else
{
len += formatex( menu[len], 255 - len, "\r2. \wApa: \yNu exista apa pe harta!^n" );
}
len += formatex( menu[len], 255 - len, "^n\r0. \wIesire" );
len += formatex( menu[len], 255 - len, "^n\r%s", g_szForum );
show_menu( id, ( 1<<0 | 1<<1 | 1<<9 ), menu, -1 );
return PLUGIN_HANDLED;
}
public menuInvisAction( id, key )
{
switch( key )
{
case 0:
{
g_bPlayerInvisible[id] = !g_bPlayerInvisible[id];
menuInvisDisplay( id );
}
case 1:
{
if( g_bWaterFound )
{
g_bWaterInvisible[id] = !g_bWaterInvisible[id];
}
menuInvisDisplay( id );
}
case 9: show_menu( id, 0, "" );
}
}
public client_connect( id )
{
g_bPlayerInvisible[id] = false;
g_bWaterInvisible[id] = false;
g_iSpectatedId[id] = 0;
}
public client_putinserver( id )
{
set_task( 5.0, "menuInvisDisplay", id );
}
0
0
Back to top
CraZzy - 7Up
[CrazzyRO]
Status: Offline
(since 20-12-2018 20:01)
Joined: 26 Jun 2013
Posts: 605
,
Topics: 36
Location:
Severin .
Reputation:
150
Votes
: 23
Posted: 02-02-2015, 23:55:28
| Translate post to:
... (
Click for more languages
)
TheVipera , poti sa il modifici sa nu te mai intrebe la fiecare inceput de runda ? Decat daca scrii /invis ?
0
0
Back to top
EDUTz
[HardcoreAmxxScripter]
Status: Offline
(since 15-08-2021 16:34)
Joined: 27 Dec 2010
Posts: 4306
,
Topics: 244
Location:
Jud. Miserupia, sat Bagadanc
Reputation:
4085
Votes
: 179
Posted: 03-02-2015, 08:32:15
| Translate post to:
... (
Click for more languages
)
CraZzy - 7Up wrote:
TheVipera , poti sa il modifici sa nu te mai intrebe la fiecare inceput de runda ? Decat daca scrii /invis ?
Spoiler:
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
#define MAX_ENTITYS 900+15*32 // (900+15*SERVER_SLOTS) is the calculation cs uses but it can be bypassed by the "-num_edicts <x>"-parameter
new bool:g_bPlayerInvisible[33];
new bool:g_bWaterInvisible[33];
new bool:g_bWaterEntity[MAX_ENTITYS];
new bool:g_bWaterFound;
new g_iSpectatedId[33];
new const g_szForum[ ] = "DRX.Freakz.RO";
public plugin_init( )
{
register_plugin( "Invis", "2.0", "SchlumPF" );
register_clcmd( "say /invis", "menuInvisDisplay" );
register_menucmd( register_menuid( "\r[FPS] - \wInvizibilitate^n^n" ), 1023, "menuInvisAction" );
register_forward( FM_AddToFullPack, "fwdAddToFullPack_Post", 1 );
RegisterHam( Ham_Spawn, "player", "hamSpawnPlayer_Post", 1 );
register_event( "SpecHealth2", "eventSpecHealth2", "bd" );
}
public plugin_cfg( )
{
new ent = -1;
while( ( ent = find_ent_by_class( ent, "func_water" ) ) != 0 )
{
// pev( ent, pev_skin ) == CONTENTS_WATER is also true on func_water entities
if( !g_bWaterFound )
{
g_bWaterFound = true;
}
g_bWaterEntity[ent] = true;
}
// thanks to connor for finding the following two detections
ent = -1;
while( ( ent = find_ent_by_class( ent, "func_illusionary" ) ) != 0 )
{
if( pev( ent, pev_skin ) == CONTENTS_WATER )
{
if( !g_bWaterFound )
{
g_bWaterFound = true;
}
g_bWaterEntity[ent] = true;
}
}
ent = -1;
while( ( ent = find_ent_by_class( ent, "func_conveyor" ) ) != 0 )
{
if( pev( ent, pev_spawnflags ) == 3 )
{
if( !g_bWaterFound )
{
g_bWaterFound = true;
}
g_bWaterEntity[ent] = true;
}
}
}
public fwdAddToFullPack_Post( es_handle, e, ent, host, hostflags, player, pset )
{
if( player && g_bPlayerInvisible[host] && host != ent && ent != g_iSpectatedId[host] && get_user_team(host) == get_user_team(ent) )
{
static const Float:corner[8][3] =
{
{ -4096.0, -4096.0, -4096.0 },
{ -4096.0, -4096.0, 4096.0 },
{ -4096.0, 4096.0, -4096.0 },
{ -4096.0, 4096.0, 4096.0 },
{ 4096.0, -4096.0, -4096.0 },
{ 4096.0, -4096.0, 4096.0 },
{ 4096.0, 4096.0, -4096.0 },
{ 4096.0, 4096.0, 4096.0 }
};
// rounded; distance from the map's center to the corners; sqrt( 4096^2 + 4096^2 + 4096^2 )
static const Float:map_distance = 7094.480108;
static Float:origin[3];
get_es( es_handle, ES_Origin, origin );
static i;
while( get_distance_f( origin, corner[i] ) > map_distance )
{
if( ++i >= sizeof( corner ) )
{
// better to nullify the varibale now then doing it each time before the loop
i = 0;
}
}
set_es( es_handle, ES_Origin, corner[i] );
set_es( es_handle, ES_Effects, get_es( es_handle, ES_Effects ) | EF_NODRAW );
}
else if( g_bWaterInvisible[host] && g_bWaterEntity[ent])
{
set_es( es_handle, ES_Effects, get_es( es_handle, ES_Effects ) | EF_NODRAW );
}
}
public hamSpawnPlayer_Post( id )
{
g_iSpectatedId[id] = 0;
}
// thanks to xPaw who told me about this event
public eventSpecHealth2( id )
{
g_iSpectatedId[id] = read_data( 2 );
}
public menuInvisDisplay( id )
{
static menu[256];
new len = formatex( menu, 255, "\r[FPS] - \wInvizibilitate^n^n" );
len += formatex( menu[len], 255 - len, "\r1. \wCoechipierii: \y%s^n", g_bPlayerInvisible[id] ? "Invizibili" : "Vizibili" );
if( g_bWaterFound )
{
len += formatex( menu[len], 255 - len, "\r2. \wApa: \y%s^n", g_bWaterInvisible[id] ? "Invizibila" : "Vizibila" );
}
else
{
len += formatex( menu[len], 255 - len, "\r2. \wApa: \yNu exista apa pe harta!^n" );
}
len += formatex( menu[len], 255 - len, "^n\r0. \wIesire" );
len += formatex( menu[len], 255 - len, "^n\r%s", g_szForum );
show_menu( id, ( 1<<0 | 1<<1 | 1<<9 ), menu, -1 );
return PLUGIN_HANDLED;
}
public menuInvisAction( id, key )
{
switch( key )
{
case 0:
{
g_bPlayerInvisible[id] = !g_bPlayerInvisible[id];
menuInvisDisplay( id );
}
case 1:
{
if( g_bWaterFound )
{
g_bWaterInvisible[id] = !g_bWaterInvisible[id];
}
menuInvisDisplay( id );
}
case 9: show_menu( id, 0, "" );
}
}
public client_connect( id )
{
g_bPlayerInvisible[id] = false;
g_bWaterInvisible[id] = false;
g_iSpectatedId[id] = 0;
}
Nu il baga in fiecare runda, il arata doar cand intri pe server, dar am scos-o eu.
Pentru pluginuri complicate le fac cu $$ pe paypal/psc. PM
0
0
Back to top
lemonEZAH
[Licensed to kill]
Status: Offline
(since 04-11-2019 15:30)
Joined: 28 Dec 2013
Posts: 7058
,
Topics: 351
Location:
England
Reputation:
99.3
Votes
: 483
Posted: 03-02-2015, 12:48:51
| Translate post to:
... (
Click for more languages
)
Spoiler:
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
#define MAX_ENTITYS 900+15*32 // (900+15*SERVER_SLOTS) is the calculation cs uses but it can be bypassed by the "-num_edicts <x>"-parameter
new bool:g_bPlayerInvisible[33];
new g_iSpectatedId[33];
public plugin_init( )
{
register_plugin( "Invis", "1.0", "author" );
register_clcmd( "say /invis", "menuInvisDisplay" );
register_menucmd( register_menuid( "\rMeniu Invi\w( faci jucatorii invizibili )^n^n" ), 1023, "menuInvisAction" );
register_forward( FM_AddToFullPack, "fwdAddToFullPack_Post", 1 );
RegisterHam( Ham_Spawn, "player", "hamSpawnPlayer_Post", 1 );
register_event( "SpecHealth2", "eventSpecHealth2", "bd" );
}
public fwdAddToFullPack_Post( es_handle, e, ent, host, hostflags, player, pset )
{
if( player && g_bPlayerInvisible[host] && host != ent && ent != g_iSpectatedId[host] && get_user_team(host) == get_user_team(ent) )
{
static const Float:corner[8][3] =
{
{ -4096.0, -4096.0, -4096.0 },
{ -4096.0, -4096.0, 4096.0 },
{ -4096.0, 4096.0, -4096.0 },
{ -4096.0, 4096.0, 4096.0 },
{ 4096.0, -4096.0, -4096.0 },
{ 4096.0, -4096.0, 4096.0 },
{ 4096.0, 4096.0, -4096.0 },
{ 4096.0, 4096.0, 4096.0 }
};
// rounded; distance from the map's center to the corners; sqrt( 4096^2 + 4096^2 + 4096^2 )
static const Float:map_distance = 7094.480108;
static Float:origin[3];
get_es( es_handle, ES_Origin, origin );
static i;
while( get_distance_f( origin, corner[i] ) > map_distance )
{
if( ++i >= sizeof( corner ) )
{
// better to nullify the varibale now then doing it each time before the loop
i = 0;
}
}
set_es( es_handle, ES_Origin, corner[i] );
set_es( es_handle, ES_Effects, get_es( es_handle, ES_Effects ) | EF_NODRAW );
}
}
public hamSpawnPlayer_Post( id )
{
g_iSpectatedId[id] = 0;
}
// thanks to xPaw who told me about this event
public eventSpecHealth2( id )
{
g_iSpectatedId[id] = read_data( 2 );
}
public menuInvisDisplay( id )
{
static menu[256];
new len = formatex( menu, 255, "\rMeniu Invi\w( faci jucatorii invizibili )^n^n" );
len += formatex( menu[len], 255 - len, "\r1. \wJucatori: %s^n", g_bPlayerInvisible[id] ? "Invizibili" : "Vizibili" );
len += formatex( menu[len], 255 - len, "^n\r0. \wIesire" );
show_menu( id, ( 1<<0 | 1<<9 ), menu, -1 );
return PLUGIN_HANDLED;
}
public menuInvisAction( id, key )
{
switch( key )
{
case 0:
{
g_bPlayerInvisible[id] = !g_bPlayerInvisible[id];
menuInvisDisplay( id );
}
case 9: show_menu( id, 0, "" );
}
}
public client_connect( id )
{
g_bPlayerInvisible[id] = false;
g_iSpectatedId[id] = 0;
}
Baftã
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Locked by
TwisTer
, 16 March 2015 13:52
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
The time now is 15-04-2025, 07:17:51
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details