Raised This Month: $95 Target: $400
 23% 

Player Button Spy [0.7.1]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Hawk552 (427)
shine771
Senior Member
Join Date: Jun 2007
Location: Latvia
Old 05-02-2009 , 12:46   Player Button Spy [0.7.1]
Reply With Quote #1

Player Button Spy
[0.7.1]


- Description -

Basically all players are able to spy on other player buttons. It's useful for KZ. It'll help players to learn how to jump(strafe jump, long jump etc.). It's not just limited to KZ, you can use it for Soccerjam to learn tricks, for Surfing to learn how to surf etc. You can use this to make your Kreedz tutorial videos.

- Cvars -
Quote:
amx_pbspy_normal_color < 1 - 3 > < Color for buttons who aren't pressed > < Def: 1 >
amx_pbspy_pressed_color < 1 - 3 > < Color for buttons who're pressed. Both cvars must be different or you wont see any buttons pressed. > < Def: 3 >

/*
Colors:
1 - White - \w
2 - Yellow - \y
3 - Red - \r
*/
- Commands -
Quote:
amx_spy < name / userid > < Spy player. By changing the .sma you can limit this command to ADMINS ONLY >
amx_hltv_spy < name / userid > < Makes all HLTV spy on a player. By default user has to be an admin with ban flags to use this command. >

say /spy - Opens a menu with players you can choose to spy on.
- Notes -

[E] button was meant for soccerjam, but imo it won't bother you spying players in KZ/Surf or other mods.

- Screen Shots -

[IMG]http://img15.**************/img15/5462/buttonspy1.th.jpg[/IMG]

- Change Log -


Code:
0.7.0
* Initial Release
0.7.1
* Fixed the bug when 2 players are spying one player, if the spied player disconnects then the first one who started to spy would still have the Spymenu.
* Added a menu for players. It's accessable by typing /spy in chat.
* Added a new console command - amx_hltv_spy. It makes all HTLV's spy on a player.
Attached Files
File Type: sma Get Plugin or Get Source (player_button_spy.sma - 1678 views - 10.0 KB)
__________________

Last edited by shine771; 06-25-2009 at 09:26.
shine771 is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 05-02-2009 , 12:49   Re: Player Button Spy
Reply With Quote #2

Cool
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Simax
Member
Join Date: Apr 2009
Old 05-02-2009 , 12:58   Re: Player Button Spy
Reply With Quote #3

Nice job
Simax is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 05-02-2009 , 13:08   Re: Player Button Spy
Reply With Quote #4

this is awesome. GJ
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Racoon
Senior Member
Join Date: Mar 2008
Location: Ukraine
Old 05-02-2009 , 13:22   Re: Player Button Spy
Reply With Quote #5

Does this work on any server? I mean not only on kz and soccerjam.
Racoon is offline
Send a message via ICQ to Racoon
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 05-02-2009 , 13:29   Re: Player Button Spy
Reply With Quote #6

Quote:
Originally Posted by Racoon View Post
Does this work on any server? I mean not only on kz and soccerjam.
yea
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-02-2009 , 13:44   Re: Player Button Spy
Reply With Quote #7

CTRL -> DUCK
SPACE -> JUMP
would be better becuase someone jumping from mwheel and ducking ;)
__________________
xPaw is offline
shine771
Senior Member
Join Date: Jun 2007
Location: Latvia
Old 05-02-2009 , 13:59   Re: Player Button Spy
Reply With Quote #8

I thought of that making this. Still players like button names more than their names of actions they do pressing them. If there is going to be an 0.7.1 version, i will change that.
__________________
shine771 is offline
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 05-02-2009 , 14:24   Re: Player Button Spy
Reply With Quote #9

#define HANDLER_THINK_TIME 0.01
prethink is also called 100times per second but is more cpu friendly than a task.

i like your menu to display although you should test whats faster, a hudmessage or a menu.
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-02-2009 , 14:28   Re: Player Button Spy
Reply With Quote #10

Quote:
Originally Posted by SchlumPF* View Post
#define HANDLER_THINK_TIME 0.01
prethink is also called 100times per second but is more cpu friendly than a task.
This is not a task but a thinking ent.

You could alter the info_target classname and use register_think ;) (i agree the entity index check is not a big deal though)
__________________
- tired and retired -
ConnorMcLeod is offline
Reply


Thread Tools
Display Modes

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 14:36.


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