Raised This Month: $ Target: $400
 0% 

There is anyway tp ->


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NoobInAmxx
Senior Member
Join Date: Mar 2006
Location: Turku Finland
Old 02-12-2007 , 16:32   There is anyway tp ->
Reply With Quote #1

To change water (transparent, invisible)?
If theres anyway i need help with it.
__________________
..Im not smart and im not stupid..
NoobInAmxx is offline
Send a message via MSN to NoobInAmxx
Old 02-12-2007, 19:01
Zenith77
This message has been deleted by sawce the snail. Reason: flaming
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 02-13-2007 , 04:32   Re: There is anyway tp ->
Reply With Quote #3

Moved to scripting help
sawce is offline
Oskar
BANNED
Join Date: Jan 2007
Location: Slöinge, Falkenberg, Hal
Old 02-13-2007 , 05:47   Re: There is anyway tp ->
Reply With Quote #4

Transparent:
set_rendering(water_entity_id,kRenderFxGlowSh ell,0,0,0,kRenderTransAlpha,150)
Invisible:
set_rendering(water_entity_id,kRenderFxGlowSh ell,0,0,0,kRenderTransAlpha,0)
Oskar is offline
Send a message via MSN to Oskar
NoobInAmxx
Senior Member
Join Date: Mar 2006
Location: Turku Finland
Old 02-13-2007 , 10:40   Re: There is anyway tp ->
Reply With Quote #5

Sorry i've must pressed to code snippets by accident, sorry for that.
If i want make it to get user aiming?
Float: get_user_aiming ( index, &id, &body, [ distance ] )
__________________
..Im not smart and im not stupid..
NoobInAmxx is offline
Send a message via MSN to NoobInAmxx
Old 02-14-2007, 06:02
Oskar
This message has been deleted by Oskar. Reason: Code didnt work
NoobInAmxx
Senior Member
Join Date: Mar 2006
Location: Turku Finland
Old 02-14-2007 , 06:41   Re: There is anyway tp ->
Reply With Quote #7

Thanks its cool now
EDIT : It gave me alot of errors / warnings
__________________
..Im not smart and im not stupid..

Last edited by NoobInAmxx; 02-14-2007 at 06:46.
NoobInAmxx is offline
Send a message via MSN to NoobInAmxx
Oskar
BANNED
Join Date: Jan 2007
Location: Slöinge, Falkenberg, Hal
Old 02-14-2007 , 11:10   Re: There is anyway tp ->
Reply With Quote #8

Woopsie!
Try this one instead:
Attached Files
File Type: sma Get Plugin or Get Source (water.sma - 806 views - 979 Bytes)
Oskar is offline
Send a message via MSN to Oskar
NoobInAmxx
Senior Member
Join Date: Mar 2006
Location: Turku Finland
Old 02-15-2007 , 11:32   Re: There is anyway tp ->
Reply With Quote #9

Now its saying unknown command... when i try use those commands
__________________
..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 , 12:57   Re: There is anyway tp ->
Reply With Quote #10

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
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