Raised This Month: $ Target: $400
 0% 

Blocking KUNG FU :D


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
solidsnake
Member
Join Date: Jul 2006
Old 09-29-2006 , 13:33   Blocking KUNG FU :D
Reply With Quote #1

Dears Friends !

Another question about TS :

How to block Kung Fu for certain players ?
PLUGIN_HANDLED / PLUGIN_HANDLED_MAIN doesn't work :

Code:
 
if((get_user_button(id)&IN_ATTACK)==IN_ATTACK || (get_user_button(id)&IN_ATTACK2)==IN_ATTACK2)
   {
       return PLUGIN_HANDLED_MAIN
   }
Catch in client_PreThink
solidsnake is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 09-29-2006 , 17:20   Re: Blocking KUNG FU :D
Reply With Quote #2

Block attack: http://forums.alliedmods.net/showthr...ight=IN_ATTACK


check if client's weapon is kungfu:
Code:
if(ts_getuserwpn ( index, &clip, &ammo, &mode, &extra )) == 36)

or
Code:
if(ts_getuserwpn ( index, &clip, &ammo, &mode, &extra )) == TSW_KUNG_FU)

someone check that please, or just try it out and see which one works
stupok 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 04:59.


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