Raised This Month: $ Target: $400
 0% 

Knife, c4, and hegrenade only


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 03-03-2006 , 16:35   Knife, c4, and hegrenade only
Reply With Quote #1

Can someone help me with this please?

this is from team06

Code:
register_event("CurWeapon","knife","b" "1=1")   public knife(id) {     if(whateverhere)     {         new wpID = read_data(2)         if(wpID != CSW_KNIFE && wpID != CSW_C4)         {             engclient_cmd(id, "weapon_knife")         } }

If I did this:
Code:
register_event("CurWeapon","knife","b" "1=1")   public knife(id) {     if(whateverhere)     {         new wpID = read_data(2)         if(wpID != CSW_KNIFE && wpID != CSW_C4 && wpID != CSW_HEGRENADE)         {             engclient_cmd(id, "weapon_knife")         } }

Would it work? Or would I have to change some things around/differently? Thanks in advance for any help. I have tried this, but it wont let me plant the bomb...idk "newb". Or if someone could show me how to find if the weapon is not one of those three. Thanks again.
organizedKaoS is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-03-2006 , 16:39  
Reply With Quote #2

Should work.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 03-04-2006 , 00:12  
Reply With Quote #3

Thanks Hawk..it does.

The reason why i couldnt plant the bomb was because i put engclient_cmd before the wpID statement organizedKaoS noob
not denying im a noob
Thanks again
organizedKaoS 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 20:13.


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