Raised This Month: $ Target: $400
 0% 

There is anyway tp ->


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 02-15-2007 , 12:57   Re: There is anyway tp ->
Reply With Quote #1

Don't use FM and engine.
Code:
#include <amxmodx> #include <fakemeta> new transparency public plugin_init() {     register_plugin("Water shit","1.0","Oskar")     transparency = register_cvar("amx_water_transparency","120")     register_clcmd("amx_water_transparent","cmd_transparent",ADMIN_ADMIN)     register_clcmd("amx_water_invisible","cmd_invisible",ADMIN_ADMIN) } public cmd_transparent(id) {     new ent, body     get_user_aiming(id,ent,body)         if(!pev_valid(ent))         return         new classname[32]     pev(ent,pev_classname,classname,31)         if(!equali(classname,"func_water"))         return         pev(ent, pev_renderfx, kRenderFxGlowShell)     pev(ent, pev_rendercolor, {0,0,0})     pev(ent, pev_rendermode, kRenderTransAlpha)     pev(ent, pev_renderamt, get_pcvar_num(transparency))     // set_rendering(ent,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,get_pcvar_num(transparency)) } public cmd_invisible(id) {     new ent, body     get_user_aiming(id,ent,body)         if(!pev_valid(ent))         return         new classname[32]     pev(ent,pev_classname,classname,31)         if(!equali(classname,"func_water"))         return         pev(ent, pev_renderfx, kRenderFxGlowShell)     pev(ent, pev_rendercolor, {0,0,0})     pev(ent, pev_rendermode, kRenderTransAlpha)     pev(ent, pev_renderamt, 0)     // set_rendering(ent,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,0) }
EDIT: Thank you P34nut

Last edited by [ --<-@ ] Black Rose; 02-15-2007 at 15:13.
[ --<-@ ] Black Rose is offline
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 02-15-2007 , 13:04   Re: There is anyway tp ->
Reply With Quote #2

its the second one
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
NoobInAmxx
Senior Member
Join Date: Mar 2006
Location: Turku Finland
Old 02-15-2007 , 15:43   Re: There is anyway tp ->
Reply With Quote #3

Quote:
Originally Posted by [ --<-@ ] Black Rose View Post
Don't use FM and engine.
Code:
#include <amxmodx> #include <fakemeta> new transparency public plugin_init() {     register_plugin("Water shit","1.0","Oskar")     transparency = register_cvar("amx_water_transparency","120")     register_clcmd("amx_water_transparent","cmd_transparent",ADMIN_ADMIN)     register_clcmd("amx_water_invisible","cmd_invisible",ADMIN_ADMIN) } public cmd_transparent(id) {     new ent, body     get_user_aiming(id,ent,body)         if(!pev_valid(ent))         return         new classname[32]     pev(ent,pev_classname,classname,31)         if(!equali(classname,"func_water"))         return         pev(ent, pev_renderfx, kRenderFxGlowShell)     pev(ent, pev_rendercolor, {0,0,0})     pev(ent, pev_rendermode, kRenderTransAlpha)     pev(ent, pev_renderamt, get_pcvar_num(transparency))     // set_rendering(ent,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,get_pcvar_num(transparency)) } public cmd_invisible(id) {     new ent, body     get_user_aiming(id,ent,body)         if(!pev_valid(ent))         return         new classname[32]     pev(ent,pev_classname,classname,31)         if(!equali(classname,"func_water"))         return         pev(ent, pev_renderfx, kRenderFxGlowShell)     pev(ent, pev_rendercolor, {0,0,0})     pev(ent, pev_rendermode, kRenderTransAlpha)     pev(ent, pev_renderamt, 0)     // set_rendering(ent,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,0) }
EDIT: Thank you P34nut
Stilll unknow command
__________________
..Im not smart and im not stupid..
NoobInAmxx is offline
Send a message via MSN to NoobInAmxx
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 02-15-2007 , 16:30   Re: There is anyway tp ->
Reply With Quote #4

Quote:
Originally Posted by NoobInAmxx View Post
Stilll unknow command
Ignore it. I get it all the time but the command still works. But I've never understood why it does that.
[ --<-@ ] Black Rose is offline
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 02-15-2007 , 16:44   Re: There is anyway tp ->
Reply With Quote #5

Quote:
Originally Posted by [ --<-@ ] Black Rose View Post
Ignore it. I get it all the time but the command still works. But I've never understood why it does that.
Because you never returned PLUGIN_HANDLED on the end of the command
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
NoobInAmxx
Senior Member
Join Date: Mar 2006
Location: Turku Finland
Old 02-15-2007 , 17:04   Re: There is anyway tp ->
Reply With Quote #6

Quote:
Originally Posted by P34nut View Post
Because you never returned PLUGIN_HANDLED on the end of the command
mmkay.. trying..

EDIT: Not working..

it should be here ?
PHP Code:
#include <amxmodx>
#include <fakemeta>

new transparency

public plugin_init() {
    
register_plugin("Waterfx","1.0","author")
    
transparency register_cvar("amx_water_transparency","120")
    
register_clcmd("amx_water_transparent","cmd_transparent",ADMIN_ADMIN)
    
register_clcmd("amx_water_invisible","cmd_invisible",ADMIN_ADMIN)
  
      return 
PLUGIN_HANDLED
    
}

public 
cmd_transparent(id)

//rest code 
Ps : the amx_water_transparency is working
__________________
..Im not smart and im not stupid..

Last edited by NoobInAmxx; 02-15-2007 at 17:41.
NoobInAmxx is offline
Send a message via MSN to NoobInAmxx
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 02-16-2007 , 02:34   Re: There is anyway tp ->
Reply With Quote #7

Code:
#include <amxmodx> #include <fakemeta> new transparency public plugin_init() {     register_plugin("Water shit","1.0","Oskar")     transparency = register_cvar("amx_water_transparency","120")     register_clcmd("amx_water_transparent","cmd_transparent",ADMIN_ADMIN)     register_clcmd("amx_water_invisible","cmd_invisible",ADMIN_ADMIN) } public cmd_transparent(id) {     new ent, body     get_user_aiming(id,ent,body)         if(!pev_valid(ent))         return PLUGIN_HANDLED         new classname[32]     pev(ent,pev_classname,classname,31)         if(!equali(classname,"func_water"))         return PLUGIN_HANDLED         pev(ent, pev_renderfx, kRenderFxGlowShell)     pev(ent, pev_rendercolor, {0,0,0})     pev(ent, pev_rendermode, kRenderTransAlpha)     pev(ent, pev_renderamt, get_pcvar_num(transparency))     return PLUGIN_HANDLED } public cmd_invisible(id) {     new ent, body     get_user_aiming(id,ent,body)         if(!pev_valid(ent))         return PLUGIN_HANDLED         new classname[32]     pev(ent,pev_classname,classname,31)         if(!equali(classname,"func_water"))         return PLUGIN_HANDLED         pev(ent, pev_renderfx, kRenderFxGlowShell)     pev(ent, pev_rendercolor, {0,0,0})     pev(ent, pev_rendermode, kRenderTransAlpha)     pev(ent, pev_renderamt, 0)     return PLUGIN_HANDLED }
[ --<-@ ] Black Rose is offline
NoobInAmxx
Senior Member
Join Date: Mar 2006
Location: Turku Finland
Old 02-16-2007 , 06:00   Re: There is anyway tp ->
Reply With Quote #8

Still unknow command and its not doing anything to water
__________________
..Im not smart and im not stupid..
NoobInAmxx is offline
Send a message via MSN to NoobInAmxx
Old 02-16-2007, 11:05
Oskar
This message has been deleted by Oskar.
NoobInAmxx
Senior Member
Join Date: Mar 2006
Location: Turku Finland
Old 02-16-2007 , 20:45   Re: There is anyway tp ->
Reply With Quote #10

Is there something u can do ?
Have u tested it urself ?
__________________
..Im not smart and im not stupid..
NoobInAmxx is offline
Send a message via MSN to NoobInAmxx
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 00:38.


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