AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Blocking KUNG FU :D (https://forums.alliedmods.net/showthread.php?t=45326)

solidsnake 09-29-2006 13:33

Blocking KUNG FU :D
 
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

stupok 09-29-2006 17:20

Re: Blocking KUNG FU :D
 
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


All times are GMT -4. The time now is 04:59.

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