Raised This Month: $ Target: $400
 0% 

[SOLVED] Function client_impulse


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 10-10-2010 , 23:25   Re: Function client_impulse
Reply With Quote #2

Its a forward for when player types in console "impulse <number>"
Like for example flashlight.I know theres some impulse for nightvision idk how does this optimise the game engine by having impulses but it has its purpouse and with that forward u can hook them.
You can hook ur own impulse numbers there so say if a player enters impulse 1337 he gets 100% hp back u can do that like this:
PHP Code:
public client_impulse idimpulse )
{
    switch(
impulse)
    {
        case 
1337set_user_health(id100.0);
        case default: return 
PLUGIN_HANDLED;
    }


Last edited by ARES[ro]; 10-10-2010 at 23:28.
ARES[ro] is offline
 



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 10:29.


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