Raised This Month: $ Target: $400
 0% 

Planting : Announces when human players start planting the bomb


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
aviaryan
Junior Member
Join Date: Aug 2015
Location: India
Old 08-19-2015 , 01:13   Planting : Announces when human players start planting the bomb
Reply With Quote #1

Planting

Description

This plugin will team_say and speak "Planting" on behalf of a human player when he starts to plant the bomb. It is the same behavior that is seen in bots. Like this all team members will know where and when you are planting the bomb.


Cvars
  • planting - Set it to 0 to disable the plugin
Attached Files
File Type: sma Get Plugin or Get Source (planting.sma - 724 views - 1.0 KB)

Last edited by aviaryan; 08-19-2015 at 01:13. Reason: formatting
aviaryan is offline
Old 08-19-2015, 01:15
tousif
This message has been deleted by tousif. Reason: nvm
aviaryan
Junior Member
Join Date: Aug 2015
Location: India
Old 08-19-2015 , 01:16   Re: Planting : Announces when human players start planting the bomb
Reply With Quote #2

Quote:
Originally Posted by tousif View Post
i think its not needed
Is there a setting to do so ?
aviaryan is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-19-2015 , 03:56   Re: Planting : Announces when human players start planting the bomb
Reply With Quote #3

Please, release plugins when you will know what you are doing. Also, the ideea is useless, you just print a message to the one who is planting, I'm pretty sure that he knows that he started planting the bomb.

Pointing some mistakes for you:
1.pause the plugin when the cvar is 0, this will avoid unneeded calls.
2.You don't even use this(also it will do nothing). + Don't hardcode a string size, use charsmax to get it.
PHP Code:
new b[24];
read_data(2b23); // planting 
3.If you loop it will make sense to loop only players from TERO team(flag e, TERRORIST, in get_ players). Also, you don't need to check for bots, look at get_players flags on the api. Use flag "c" in order to exclude bots. Another thing, do not re-index arrays.
4. But looping at all does not make sense, because the event give you the player index(so bombPlanting(id)). Use directly that index.
5. returning does not make sense.
6. Use only one style, in some places you use HN(hungarian notation, "i/g/sz/f/etc" and in some places not. Please be consistent.
__________________

Last edited by HamletEagle; 08-19-2015 at 04:00.
HamletEagle is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 08-19-2015 , 15:27   Re: Planting : Announces when human players start planting the bomb
Reply With Quote #4

That's already included in AMXX.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-01-2015 , 13:42   Re: Planting : Announces when human players start planting the bomb
Reply With Quote #5

Plugin is missing the sound resource, it's poorly coded, shows that you do not understand what you are doing. Also, it does not do what you are saying in the first post.

Unapproved, please learn more before releasing plugins.
__________________
HamletEagle 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 03:28.


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