Approved Press Button Info

Gameplay Addons
User avatar
sam_bhosale4
Mod Tester
Mod Tester
India
Posts: 109
Joined: 2 Years Ago
Location: INDIA
Has thanked: 5 times
Been thanked: 2 times
Age: 21
Contact:

Press Button Info

#1

Post by sam_bhosale4 » 2 Years Ago

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:
Last edited by sam_bhosale4 on 05 Jun 2017, 09:38, edited 3 times in total.
These users thanked the author sam_bhosale4 for the post:
Raheem (2 Years Ago)
-=SeRious-GaminG|Zombie Escape[Alien vs. Predator]|Asia=-
206.189.132.169:40000
Image

johnnysins2000
Veteran Member
Veteran Member
Pakistan
Posts: 672
Joined: 2 Years Ago
Location: Lahore
Has thanked: 11 times
Been thanked: 10 times
Age: 22
Contact:

#2

Post by johnnysins2000 » 2 Years Ago

U mean if the person press the door button it will also show who pressed it ?
Nobody Is That Busy If They Make Time :roll:

User avatar
sam_bhosale4
Mod Tester
Mod Tester
India
Posts: 109
Joined: 2 Years Ago
Location: INDIA
Has thanked: 5 times
Been thanked: 2 times
Age: 21
Contact:

#3

Post by sam_bhosale4 » 2 Years Ago

johnnysins2000 wrote:
2 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! :)
-=SeRious-GaminG|Zombie Escape[Alien vs. Predator]|Asia=-
206.189.132.169:40000
Image

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1793
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 89 times
Age: 21
Contact:

#4

Post by Raheem » 2 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.
These users thanked the author Raheem for the post:
sam_bhosale4 (2 Years Ago)
You don't know? Learn and you will know.

User avatar
sam_bhosale4
Mod Tester
Mod Tester
India
Posts: 109
Joined: 2 Years Ago
Location: INDIA
Has thanked: 5 times
Been thanked: 2 times
Age: 21
Contact:

#5

Post by sam_bhosale4 » 2 Years Ago

Raheem wrote:
2 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!
-=SeRious-GaminG|Zombie Escape[Alien vs. Predator]|Asia=-
206.189.132.169:40000
Image

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1793
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 89 times
Age: 21
Contact:

#6

Post by Raheem » 2 Years Ago

No problem man, Do these things when you get time.
You don't know? Learn and you will know.

User avatar
sam_bhosale4
Mod Tester
Mod Tester
India
Posts: 109
Joined: 2 Years Ago
Location: INDIA
Has thanked: 5 times
Been thanked: 2 times
Age: 21
Contact:

#7

Post by sam_bhosale4 » 2 Years Ago

Raheem wrote:
2 Years Ago
No problem man, Do these things when you get time.
Done! Please check and approve! :)
-=SeRious-GaminG|Zombie Escape[Alien vs. Predator]|Asia=-
206.189.132.169:40000
Image

johnnysins2000
Veteran Member
Veteran Member
Pakistan
Posts: 672
Joined: 2 Years Ago
Location: Lahore
Has thanked: 11 times
Been thanked: 10 times
Age: 22
Contact:

#8

Post by johnnysins2000 » 2 Years Ago

Nice Plugin
Nobody Is That Busy If They Make Time :roll:

User avatar
sam_bhosale4
Mod Tester
Mod Tester
India
Posts: 109
Joined: 2 Years Ago
Location: INDIA
Has thanked: 5 times
Been thanked: 2 times
Age: 21
Contact:

#9

Post by sam_bhosale4 » 2 Years Ago

johnnysins2000 wrote:
2 Years Ago
Nice Plugin
Thanks johny! :)
-=SeRious-GaminG|Zombie Escape[Alien vs. Predator]|Asia=-
206.189.132.169:40000
Image

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1793
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 89 times
Age: 21
Contact:

#10

Post by Raheem » 2 Years Ago

Nice you make great style : )
You don't know? Learn and you will know.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests