Approved Press Button Info

Plug-ins compatibility with Zombie Escape 1.x only!


User avatar
sam_bhosale4
Mod Tester
Mod Tester
India
Posts: 109
Joined: 7 years ago
Location: INDIA
Contact:

Press Button Info

#1

Post by sam_bhosale4 » 6 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 6 years ago, edited 3 times in total.
-=SeRious-GaminG|Zombie Escape[Alien vs. Predator]|Asia=-
206.189.132.169:40000
Image

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#2

Post by johnnysins2000 » 6 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: 7 years ago
Location: INDIA
Contact:

#3

Post by sam_bhosale4 » 6 years ago

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

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#4

Post by Raheem » 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.
He who fails to plan is planning to fail

User avatar
sam_bhosale4
Mod Tester
Mod Tester
India
Posts: 109
Joined: 7 years ago
Location: INDIA
Contact:

#5

Post by sam_bhosale4 » 6 years ago

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

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#6

Post by Raheem » 6 years ago

No problem man, Do these things when you get time.
He who fails to plan is planning to fail

User avatar
sam_bhosale4
Mod Tester
Mod Tester
India
Posts: 109
Joined: 7 years ago
Location: INDIA
Contact:

#7

Post by sam_bhosale4 » 6 years ago

Raheem wrote: 6 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
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#8

Post by johnnysins2000 » 6 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: 7 years ago
Location: INDIA
Contact:

#9

Post by sam_bhosale4 » 6 years ago

johnnysins2000 wrote: 6 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
Posts: 2214
Joined: 7 years ago
Contact:

#10

Post by Raheem » 6 years ago

Nice you make great style : )
He who fails to plan is planning to fail

User avatar
sam_bhosale4
Mod Tester
Mod Tester
India
Posts: 109
Joined: 7 years ago
Location: INDIA
Contact:

#11

Post by sam_bhosale4 » 6 years ago

Raheem wrote: 6 years ago Nice you make great style : )
Thanks Raheem!
-=SeRious-GaminG|Zombie Escape[Alien vs. Predator]|Asia=-
206.189.132.169:40000
Image

monk
Member
Member
Bulgaria
Posts: 13
Joined: 6 years ago
Contact:

#12

Post by monk » 6 years ago

Set task, because it's make flood in chat.

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#13

Post by johnnysins2000 » 6 years ago

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?
Nobody Is That Busy If They Make Time :roll:

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#14

Post by Raheem » 6 years ago

+Like sam. And it may cause some spam so we may make it appear for admins only.
He who fails to plan is planning to fail

User avatar
sam_bhosale4
Mod Tester
Mod Tester
India
Posts: 109
Joined: 7 years ago
Location: INDIA
Contact:

#15

Post by sam_bhosale4 » 6 years ago

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

User avatar
sam_bhosale4
Mod Tester
Mod Tester
India
Posts: 109
Joined: 7 years ago
Location: INDIA
Contact:

#16

Post by sam_bhosale4 » 6 years ago

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

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#17

Post by Raheem » 6 years ago

Nice sam will wait your update.
He who fails to plan is planning to fail

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#18

Post by Spir0x » 6 years ago

bro u can recompile it without pressing doors,explosive button,anything remove this just let the escape button!

User avatar
sam_bhosale4
Mod Tester
Mod Tester
India
Posts: 109
Joined: 7 years ago
Location: INDIA
Contact:

#19

Post by sam_bhosale4 » 6 years ago

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

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#20

Post by Spir0x » 6 years ago

the other won't work for me.

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Who is online

Users browsing this forum: Bing [Bot] and 0 guests