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

Last Players on Radar


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
red_bull2oo6
Senior Member
Join Date: Mar 2012
Location: Braila, Romania
Old 09-04-2013 , 06:57   Last Players on Radar
Reply With Quote #1

Last Players on Radar
version 0.2.2 by
Askhanar


Introduction

Well i got this idea while playing on a HNS server, i was CT and the hider just hide himself and i couldn't find him. This means that he won the round because i have no idea where on the map he was.
This plugins allows you to let one team or both teams to see 'last players' on their radar.
By 'last players' i mean you set via cvars the max alive CTs and max alive Terorrists count for players to start seeing enemies on radar. It is like x CT vs y T ( cvars values ).

Conclusion:
When there are x alive CTs vs y alive Terrorists( equal or less[ <= ] ), the team set in lpor_enableto cvar starts seeing enemies on its radar and a message pops up once:

|AMXX: There are now %i CT vs %i T, watch your radar!


CVars:

  • lpor_maxt <maxt> Max alive Terorrists . ( Default: 3 )
  • lpor_maxct <maxct> Max alive CTs. ( Default: 3 )
  • lpor_enableto <team> Which team can see enemies on radar.| 0: disabled, 1: only Terorrists, 2: only CTs, 3: Both |/ ( Default: 3 )
  • lpor_enablemsg <?> [Dis/En]able the chat message. | 0: disabled, 1: enabled | ( Default: 1 )
  • lpor_tag <tag> The tag shown in the chat message. ( Default: "|AMXX:" )

Required modules:
  • fakemeta
  • hamsandwich

Instalation:


Instal this plugin just like any other plugin.
Put lpor.amxx into plugins folder.
Add lpor.amxx line to plugins.ini.


Credits:

joaquimandrade

ChangeLog:

Code:
0.1.0  -  First plugin release.
0.1.5  -  Code optimized thanks to tonykaram1993
0.1.7  -  Added cvar to [dis/en]able chat message.
         -  Added cvar tag for chat message
0.2.0  -  Plugin optimized.
         -  Added Multilingual.
         -  Removed cvar caching.
         -  The plugin uses now 1.0 second task instead of 0.5.
         -  Added/changed few checks.
0.2.1  -  Once again, fixed/changed things thanks to hamleteagle.
0.2.2  -  Added origin checks, that way we make sure HostagePos message it's not spamming.



Notes:
  • This plugin uses a 1.0 second task which check all players and all the stuff.
Attached Files
File Type: txt lpor.txt (146 Bytes, 336 views)
File Type: sma Get Plugin or Get Source (lpor.sma - 1170 views - 4.5 KB)

Last edited by red_bull2oo6; 09-10-2015 at 18:16. Reason: new version again xD
red_bull2oo6 is offline
roymor
Senior Member
Join Date: Apr 2012
Old 09-04-2013 , 06:59   Re: Last Players on Radar
Reply With Quote #2

nice idea but i everyone has their tactics while playing hns if someone chooses to camp rather then "parkour" then its his choice imo
roymor is offline
red_bull2oo6
Senior Member
Join Date: Mar 2012
Location: Braila, Romania
Old 09-04-2013 , 07:03   Re: Last Players on Radar
Reply With Quote #3

wow that was a quick reply

for example on the server i played.. hiding its forbidden.
players gameplay depends on server's owner too. what rules he impose.

btw its not for HNS only..
red_bull2oo6 is offline
BlackSHot
Junior Member
Join Date: Aug 2012
Old 09-04-2013 , 07:46   Re: Last Players on Radar
Reply With Quote #4

Nice plugin thanks
BlackSHot is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 09-04-2013 , 08:39   Re: Last Players on Radar
Reply With Quote #5

Why are you using global variables, when some of those variables are only being used in 1 function? I think you should change them to 'static' inside their responding function (for ex: g_iAliveTerorristsIds, g_iAliveCTsIds, ... etc)

You retrieving the pcvar value each 0.5 seconds in the task (for ex: get_pcvar_num( g_iCvarLastCTs ) ). Since you already have NewRound hooked, I think you should cache the value in a global variable inside NewRound. That way it is better.

Other than that, I think you made a good job.
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
red_bull2oo6
Senior Member
Join Date: Mar 2012
Location: Braila, Romania
Old 09-04-2013 , 09:23   Re: Last Players on Radar
Reply With Quote #6

@tonykaram1993 thanks, updated.
v0.1.5 read 1st post.
red_bull2oo6 is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 09-04-2013 , 14:26   Re: Last Players on Radar
Reply With Quote #7

I also think you should make the PLUGIN_TAG a cvar. Easier for people who don't know how to compile a plugin (yes some people still don't know how). It would make their lives easier.

PHP Code:
//Is this needed here too:-?
    
g_iMaxTerorrists get_pcvar_numg_iCvarLastTerorrists );
    
g_iMaxCTs get_pcvar_numg_iCvarLastCTs );
    
g_iEnableTo get_pcvar_numg_iCvarVisibility ); 
Yes, this is needed here. Why? Because at the very first time the server starts, the first round will not trigger HLTV event.
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
red_bull2oo6
Senior Member
Join Date: Mar 2012
Location: Braila, Romania
Old 09-04-2013 , 15:53   Re: Last Players on Radar
Reply With Quote #8

done. read changelog
thanks for your implication, any other improvements are welcomed.
red_bull2oo6 is offline
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 09-04-2013 , 16:04   Re: Last Players on Radar
Reply With Quote #9

PHP Code:
    register_pluginPLUGIN_NAMEPLUGIN_VERSION"Askhanar" ); 
you?
sami_spt is offline
red_bull2oo6
Senior Member
Join Date: Mar 2012
Location: Braila, Romania
Old 09-04-2013 , 16:19   Re: Last Players on Radar
Reply With Quote #10

yes it's me, i`m Askhanar( Askhanar is my cs nickname, but i did my account according to mail ).
have u thought i released other guy's plugin ?

i was expecting an opinion btw
red_bull2oo6 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 05:45.


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