Rescue Button Message
Description:
This add-on was created by the Raheem in Zombie Escape 1.x section, so I made another new for Zombie Escape Rebuild 1.x and improved add-on. In the old add-on, a message was appearing in a chat by mistake. This is because Mappers use the same value as the “target” key in their maps, but in this add-on you can add the map name and class name, target , model in a file and so on will indicate a particular button in the map as the call/rescue button. This add-on is print a message on chat for all players when someone press call/rescue button.
Screenshots:
Installations && Instructions:
Compile .sma with AMX Mod X 1.10.0.5467 or Newer.
Add translation keys does not exist in zombie_escape.txt
in section [en]
Translation Keys:
- CMD_NOT_ACCESS = "You have no access!"
- MSG_RESCUE_BUTTON = "!g%s !tHAS PRESSED RESCUE BUTTON, !yGo Go Go !t!"
Console Variables:
- ze_rescue_button_msg 1 // Print escape button message in chat (1 = Enabled | 0 = Disabled).
Commands:
ze_ent_i
• Get class name , target , model of entity (ADMIN RCON only).
ze_rbm_reload
• Re-load all data from ze_rescue_button.ini
, NOTE: Send this command once time, When you add new button in file .ini
, If you don't want restart the server (ADMIN RCON only).
Changes Log:
- [Version 1.0]
- - First release (Made by Raheem).
- [Version 1.1]
- - Optimize code with ReAPI functions.
- - Add new method to detect Rescue Button.
- - Add API's (Native / Forward).
- [Version 1.2] ; Current.
- - Prevent execute Ham_Use while ReturnStatus is HAM_SUPERCEDE.
Tutorial - How to add new call/rescue button in ze_rescue_button.ini
:
1. Put your Aim
on call/rescue button.
2. Send command ze_ent_i
in your console than you will get this:
3. Paste it in ze_rescue_button.ini
and save.
Downloads: