Raised This Month: $ Target: $400
 0% 

scripting help..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Salepate
Junior Member
Join Date: Jan 2007
Old 01-07-2007 , 05:16   Re: scripting help..
Reply With Quote #2

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)

Last edited by Salepate; 01-07-2007 at 05:19.
Salepate 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 22:19.


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