Raised This Month: $12 Target: $400
 3% 

others peoples invisible


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mazmaajinsh
Senior Member
Join Date: Apr 2005
Location: Latvia
Old 02-01-2008 , 16:54   others peoples invisible
Reply With Quote #1

hello. could someone make a plugin that will make all peoples invisible for you, so you dont see them, but they can still see you, so on my KZ server you can get better FPS. semiclip is working, so you dont have to "delete" them for server, just make them completely invisible .. Thanks.
__________________
Ahujena
mazmaajinsh is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 02-01-2008 , 17:08   Re: others peoples invisible
Reply With Quote #2

Somehting like

Code:
#include <amxmodx>
#include <fakemeta>
 
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Alka"
 
new bool:gViewInvisible[33];
new bool:gMarkedInvisible[33] = { true, ...};
 
public plugin_init() {
 
 register_plugin(PLUGIN, VERSION, AUTHOR);
 
 register_clcmd("say /invis", "cmdInvisible");
 
 register_forward(FM_AddToFullPack, "Fwd_AddToFullPack", 1);
}
 
public cmdInvisible(id)
{
 if(!gViewInvisible[id])
  gViewInvisible[id] = true;
else
  gViewInvisible[id] = false;
}
 
public Fwd_AddToFullPack(es_handle, e, ent, host, hostflags, player, pSet)
{
 if(!player)
  return FMRES_IGNORED;
 
 if(gMarkedInvisible[ent] && gViewInvisible[host])
 {
  set_es(es_handle, ES_RenderMode, kRenderTransTexture);
  set_es(es_handle, ES_RenderAmt, 0);
 
  //return FMRES_HANDLED;
 }
 return FMRES_IGNORED;
}
Command: /invis
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 02-01-2008 at 17:27.
Alka 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 18:15.


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