Raised This Month: $12 Target: $400
 3% 

[TF2] OnPlayerRunCmd and detecting action item use key


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Oshizu
Veteran Member
Join Date: Nov 2012
Location: Warsaw
Old 02-21-2014 , 19:10   [TF2] OnPlayerRunCmd and detecting action item use key
Reply With Quote #1

Hi guys i've got a question?
Is it possible to use OnPlayerRunCmd to detect player using action item?

Help would be really great
- Thanks
__________________
...
Oshizu is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 02-21-2014 , 19:16   Re: [TF2] OnPlayerRunCmd and detecting action item use key
Reply With Quote #2

No.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Oshizu
Veteran Member
Join Date: Nov 2012
Location: Warsaw
Old 02-21-2014 , 19:23   Re: [TF2] OnPlayerRunCmd and detecting action item use key
Reply With Quote #3

Oh okay, thanks
__________________
...
Oshizu is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 02-21-2014 , 19:43   Re: [TF2] OnPlayerRunCmd and detecting action item use key
Reply With Quote #4

Quote:
Originally Posted by Oshizu View Post
Oh okay, thanks
If you're wondering why I linked to ActionProtect, it's because you apparently need an extension to hook this now.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Oshizu
Veteran Member
Join Date: Nov 2012
Location: Warsaw
Old 02-21-2014 , 19:56   Re: [TF2] OnPlayerRunCmd and detecting action item use key
Reply With Quote #5

I've finished modifying actionprotect

I was trying to achieve clients to use command "use tf_weapon_spellbook" everytime they press H
Manualy spawned spellbooks didn't seemd to hook H key

Now i hope it's going to work

Edit:

Getting spam in console
Error, bad console command sm_use_spell 7, sm_use_spell 14, sm_use_spell 2 etc.

Any ideas what it means?
Also command is created by plugin while extension uses ServerCommand() to command it

Edit 2: Nevermind that i've added \n on end and it works fine now
__________________
...

Last edited by Oshizu; 02-21-2014 at 20:24.
Oshizu 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 13:26.


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