Page 1 of 2

Press Button Info

Posted: 04 Jun 2017, 07:13
by sam_bhosale4
Push Button Info

Description:
  • A simple and basic plugin for zombie escape.
  • It will display the player name/button user who presses any of the button in the map.
  • Buttons like for e.g- Door Button,Bridge explosive button etc.
  • Display Message e.g- [Zombie Escape] SeRious_SaM Has Pressed The BUTTON!
Installation & Instructions:
  • Simply install it like any other plugin nothing new.
  • Insert button_info.amxx into plugins folder.
  • Insert button_info.sma into scripting folder.
  • Add "button_info.amxx" in plugins.ini.
  • Enjoy!
Changelog:
  • Spoiler!
    Version: 1.0
    • First Release.
Screenshots:
  • bttn1.jpg
  • bttn 2.jpg
Downloads:

Re: Press Button Info

Posted: 04 Jun 2017, 08:13
by johnnysins2000
U mean if the person press the door button it will also show who pressed it ?

Re: Press Button Info

Posted: 04 Jun 2017, 09:00
by sam_bhosale4
johnnysins2000 wrote: 6 years ago U mean if the person press the door button it will also show who pressed it ?
Yes it will show his name as shown in screenshot! :)

Re: Press Button Info

Posted: 04 Jun 2017, 15:31
by Raheem
Hmm, Good job. But somethings to do so i approve this topic:

1-To use good style in posting the plugin
2-Some optimization:
  • You need to use ze_colored_print() native rather than using stock and remove this variable new bool:HasUsedButton; so the code become:
    • Code: Select all

      #include <zombie_escape>
      
      #define PLUGIN    "Button Info"
      #define AUTHOR    "SeRious_SaM"
      #define VERSION    "1.0"
      
      public plugin_init()
      {
      	register_plugin(PLUGIN, VERSION, AUTHOR)
      	RegisterHam(Ham_Use,"func_button","fwButtonUsed",1)
      }
      
      public fwButtonUsed( ent, idcaller )
      {
      	new szName[33];
      	get_user_name( idcaller, szName, charsmax( szName ) );
      	ze_colored_print( 0, "!y[!gZombie Escape!y]!t %s !gPressed the BUTTON!y!", szName );
      }
  • Finally make the message like: %s Pressed a Button.

Re: Press Button Info

Posted: 04 Jun 2017, 15:36
by sam_bhosale4
Raheem wrote: 6 years ago Hmm, Good job. But somethings to do so i approve this topic:

1-To use good style in posting the plugin
2-Some optimization:
  • You need to use ze_colored_print() native rather than using stock and remove this variable new bool:HasUsedButton; so the code become:
    • Code: Select all

      #include <zombie_escape>
      
      #define PLUGIN    "Button Info"
      #define AUTHOR    "SeRious_SaM"
      #define VERSION    "1.0"
      
      public plugin_init()
      {
      	register_plugin(PLUGIN, VERSION, AUTHOR)
      	RegisterHam(Ham_Use,"func_button","fwButtonUsed",1)
      }
      
      public fwButtonUsed( ent, idcaller )
      {
      	new szName[33];
      	get_user_name( idcaller, szName, charsmax( szName ) );
      	ze_colored_print( 0, "!y[!gZombie Escape!y]!t %s !gPressed the BUTTON!y!", szName );
      }
  • Finally make the message like: %s Pressed a Button.
ahh ok! It was my 1st plugin post :v ill update!

Re: Press Button Info

Posted: 04 Jun 2017, 15:38
by Raheem
No problem man, Do these things when you get time.

Re: Press Button Info

Posted: 04 Jun 2017, 15:48
by sam_bhosale4
Raheem wrote: 6 years ago No problem man, Do these things when you get time.
Done! Please check and approve! :)

Re: Press Button Info

Posted: 04 Jun 2017, 16:01
by johnnysins2000
Nice Plugin

Re: Press Button Info

Posted: 05 Jun 2017, 04:55
by sam_bhosale4
johnnysins2000 wrote: 6 years ago Nice Plugin
Thanks johny! :)

Re: Press Button Info

Posted: 05 Jun 2017, 17:39
by Raheem
Nice you make great style : )

Re: Press Button Info

Posted: 05 Jun 2017, 17:51
by sam_bhosale4
Raheem wrote: 6 years ago Nice you make great style : )
Thanks Raheem!

Re: Press Button Info

Posted: 05 Jun 2017, 18:06
by monk
Set task, because it's make flood in chat.

Re: Press Button Info

Posted: 05 Jun 2017, 19:01
by johnnysins2000
monk wrote: 6 years ago Set task, because it's make flood in chat.
Which thing ?

the message that this person has press the button?

Re: Press Button Info

Posted: 05 Jun 2017, 20:46
by Raheem
+Like sam. And it may cause some spam so we may make it appear for admins only.

Re: Press Button Info

Posted: 06 Jun 2017, 00:26
by sam_bhosale4
monk wrote: 6 years ago Set task, because it's make flood in chat.
Yeah it can be flood...Umm I'll check with it..

Re: Press Button Info

Posted: 06 Jun 2017, 00:27
by sam_bhosale4
Raheem wrote: 6 years ago +Like sam. And it may cause some spam so we may make it appear for admins only.
Good idea Raheem! I'll update soon!Thanks!

Re: Press Button Info

Posted: 06 Jun 2017, 00:29
by Raheem
Nice sam will wait your update.

Re: Press Button Info

Posted: 23 Jun 2017, 02:23
by Spir0x
bro u can recompile it without pressing doors,explosive button,anything remove this just let the escape button!

Re: Press Button Info

Posted: 23 Jun 2017, 04:44
by sam_bhosale4
Spir0x wrote: 6 years ago bro u can recompile it without pressing doors,explosive button,anything remove this just let the escape button!
the escape button plugin is already made you can check and download it from gameplay section!
and read full discription of plugin before you post irrelated kind of post.. :)

Re: Press Button Info

Posted: 23 Jun 2017, 14:06
by Spir0x
the other won't work for me.