Raised This Month: $ Target: $400
 0% 

scripting help..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 01-07-2007 , 15:24   Re: scripting help..
Reply With Quote #3

Quote:
Originally Posted by Salepate View Post
If you mean :
player is walking Or jumping but in any case with a HE in hand. I guess it would be :
Code:
if ( (pev(id,pev_button) & IN_JUMP) || (pev(id,pev_button) & IN_FORWARD) ) { new temp1,temp2; if ( get_user_weapon(id,temp1,temp2) == 4 ) { // Your Code } }

Identity of the He Grenade is 4.
So it check if wearer is wearing a weapon with 4 as an id.
(in my case i'm only checking if the user is jumping or walking forward)
Make sure he knows its in client prethink next time..
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
 



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 22:19.


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