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

amxx and Aquaman hero


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dolphin_Shadow
Junior Member
Join Date: Mar 2007
Old 05-22-2008 , 06:46   amxx and Aquaman hero
Reply With Quote #1

I wanna plugin thats can set players ability to breathe underwater(as in heromod) but i can't transform hero plugin to amxx. Can you do this?

code is :
Code:
if( is_user_alive( id ) && entity_get_int( id, EV_INT_waterlevel ) == 3 )
            entity_set_float( id, EV_FL_air_finished, entity_get_float( id, EV_FL_air_finished ) + 1.0 )
so this - amx_uw lol 1/0 will hook this code.

Last edited by Dolphin_Shadow; 05-22-2008 at 06:53. Reason: added a cmd
Dolphin_Shadow is offline
Old 05-24-2008, 02:55
Dolphin_Shadow
This message has been deleted by YamiKaitou. Reason: bump
Old 05-28-2008, 12:55
Dolphin_Shadow
This message has been deleted by YamiKaitou. Reason: bump
hazard1337
Senior Member
Join Date: Sep 2006
Old 05-28-2008 , 13:16   Re: amxx and Aquaman hero
Reply With Quote #2

PHP Code:
/* Include File generated by Pawn Studio */

#include <amxmodx>
#include <engine>

new uw_on

public plugin_init()
{
    
register_plugin("Underwater Breathing","1.0","NeoHazard")
    
uw_on register_cvar("amx_uw","1")
}
public 
Client_preThink(id)
{
if( 
is_user_aliveid ) && entity_get_intidEV_INT_waterlevel ) == && uw_on == 1)
            
entity_set_floatidEV_FL_air_finishedentity_get_floatidEV_FL_air_finished ) + 1.0 )
    } 
amx_uw 1/0 - turns it on or off

Not tested BTW

Edit: If you want a fakemeta version of this you'd need to post the fakemeta code for it...i don't feel like doing that right now

EditEdit: Didn't see you wanted it on a specific person one second

Editx3: Heres the one you wanted
PHP Code:
/* Include File generated by Pawn Studio */

#include <amxmodx>
#include <engine>

new boolg_underwater

public plugin_init()
{
    
register_plugin("Underwater Breathing","1.0","NeoHazard")
    
register_concmd("amx_uw","uw_onoff")
}

public 
uw_onoff(id,on)
if(
on == 1)
    {
    
g_underwater true
    
}
    else
    {
        
g_underwater false
    
}
public 
Client_preThink(id)
if(
g_underwater == true)
{
    if( 
is_user_aliveid ) && entity_get_intidEV_INT_waterlevel ) == 3)
            
entity_set_floatidEV_FL_air_finishedentity_get_floatidEV_FL_air_finished ) + 1.0 )
}
public 
client_disconnect(id)
    
g_underwater false
public client_connect(id)
    
g_underwater false 
Editx4: Yami his last bump was valid, i think
__________________
[IMG]http://img139.**************/img139/1530/2sejaewg1.gif[/IMG]
If you +/- my K, leave your name.
I do not take requests VIA PM
Click on this before requesting/suggesting
This is your best friend

Last edited by hazard1337; 05-28-2008 at 13:25.
hazard1337 is offline
Send a message via Skype™ to hazard1337
Dolphin_Shadow
Junior Member
Join Date: Mar 2007
Old 05-28-2008 , 13:38   Re: amxx and Aquaman hero
Reply With Quote #3

oh big THANKS!

i +karma

edit: how can i use name?

this command dont work - amx_uw #1 1
what i do wrong?

Last edited by Dolphin_Shadow; 05-28-2008 at 14:05.
Dolphin_Shadow is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-28-2008 , 14:05   Re: amxx and Aquaman hero
Reply With Quote #4

Quote:
Originally Posted by hazard1337 View Post
Editx4: Yami his last bump was valid, i think
It would of been a week since his original post, but I went off of the previous post, which was 5 days ago. So, both bumps were invalid (rules state 2 weeks)
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
hazard1337
Senior Member
Join Date: Sep 2006
Old 05-28-2008 , 14:19   Re: amxx and Aquaman hero
Reply With Quote #5

Well it looks like the command doesn't work..lemme look at it
__________________
[IMG]http://img139.**************/img139/1530/2sejaewg1.gif[/IMG]
If you +/- my K, leave your name.
I do not take requests VIA PM
Click on this before requesting/suggesting
This is your best friend
hazard1337 is offline
Send a message via Skype™ to hazard1337
Dolphin_Shadow
Junior Member
Join Date: Mar 2007
Old 05-30-2008 , 08:12   Re: amxx and Aquaman hero
Reply With Quote #6

so? you look?
Dolphin_Shadow 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 14:17.


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