Approved Escape Button Message

Gameplay Addons
User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1958
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 21
Contact:

Escape Button Message

#1

Post by Raheem » 2 Years Ago

Escape Button Message

Description:
  • Simple plugin that will print a message when the player Press the Escape Button, This message will tell who pressed it. This is new edition coded for our mod and it will never tell anything wrong.
Installation & Instructions:
  • You can use Escape Button Detector to Detect the escape button name after you get it you can open zombie_escape.ini and find:
      1. [Escape Button Message]
      2. Button Names = grescate_amazonas , tren_escape , escape_assault , tetikleme , gemoroy , a1 , llamado_escape , carrex , manager , rescate_jp , mario_escape_final_001 , ascensor_escape , multi , escape_final , heli , msilo , trem_ati , heli_escape , heli1 , final , tren
    Then add the new name simply at the end or anywhere the arrange not needed so it's like:
      1. [Escape Button Message]
      2. Button Names = grescate_amazonas , tren_escape , escape_assault , tetikleme , gemoroy , a1 , llamado_escape , carrex , manager , rescate_jp , mario_escape_final_001 , ascensor_escape , multi , escape_final , heli , msilo , trem_ati , heli_escape , heli1 , final , tren , new_map_here
  • Make sure not to repeat any name. If you find two maps have same name just put one only enough.
  • If you get some button names for some maps please be helpful and share them here so i support them in the main code :).
Changelog:
  • Spoiler!
    Version: 1.0
    • First Release.
    Version: 1.1 [Current Version]
    • New easy way now used. Only button name (Target) will be needed.
Screenshots:
  • ImageImage
Downloads:
You don't know? Learn and you will know.

User avatar
Jack GamePlay
Mod Developer
Mod Developer
Egypt
Posts: 581
Joined: 2 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 48 times
Age: 19
Contact:

#2

Post by Jack GamePlay » 2 Years Ago

You should make that in .ini file.
It'll be better.
Not interested in CS/Pawn anymore.
Accepting web projects.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1958
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 21
Contact:

#3

Post by Raheem » 2 Years Ago

Ja[C]k GamePlay wrote:
2 Years Ago
You should make that in .ini file.
It'll be better.
This is nice idea. I have do it so now you don't need to Re-Compile again, Just add the new map info in your zombie_escape.ini file and you done.
You don't know? Learn and you will know.

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:

#4

Post by johnnysins2000 » 2 Years Ago

Raheem I Remember your Old Zombie Escape button message plugin when u made zombie escape v2.3

in that we didn't need to define every map it worked on all maps ?

Where is that nice plugin ?
Nobody Is That Busy If They Make Time :roll:

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1958
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 21
Contact:

#5

Post by Raheem » 2 Years Ago

Johnny, The old version of this plugin which works in some maps and some no not need to define and i'am not the Author of it. It was made by someone in AlliedModders for someone who request it. And as i said it works in some maps and some others Not work. The best solution for these cases is to define the Button so it will never tell anything wrong. So this version will give you correct things always this is why i coded it.
You don't know? Learn and you will know.

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:

#6

Post by johnnysins2000 » 2 Years Ago

Oo ok bro

I will use this then but i will also need to use the other plugin which tells us what is the number of the escape button

Well this is going to take time ahahaaha But I will get to it and when i do i will Post your same sma with some other maps in it too
Nobody Is That Busy If They Make Time :roll:

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1958
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 21
Contact:

#7

Post by Raheem » 2 Years Ago

You only need to get the number one time for the new map you add. So it won't take time. And after you get it, It will be nice idea if you share it here so others save thier time.
You don't know? Learn and you will know.

User avatar
Jack GamePlay
Mod Developer
Mod Developer
Egypt
Posts: 581
Joined: 2 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 48 times
Age: 19
Contact:

#8

Post by Jack GamePlay » 2 Years Ago

Errors :P :

Code: Select all

L 05/15/2017 - 06:06:37: [AMXX] Invalid Index 1. (count 1)
L 05/15/2017 - 06:06:37: [AMXX] Displaying debug trace (plugin "ze_escape_button_message.amxx", version "1.0")
L 05/15/2017 - 06:06:37: [AMXX] Run time error 10: native error (native "ArrayGetString")
L 05/15/2017 - 06:06:37: [AMXX]    [0] ze_escape_button_message.sma::Fw_ButtonUsed_Post (line 100)
You should check if the map is added in .ini or no, if not, it should get from default list..What if the map isn't added neither in default list nor .ini? :lol:
Errors. :D

Edit: Why do you check if it's lower & equal?!

Code: Select all

for (new iIndex = 0; iIndex <= ArraySize(g_iButtonNumber); iIndex++)
It should be

Code: Select all

for (new iIndex = 0; iIndex < ArraySize(g_iButtonNumber); iIndex++)
Not interested in CS/Pawn anymore.
Accepting web projects.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1958
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 21
Contact:

#9

Post by Raheem » 2 Years Ago

LOL, Nice i'll edit it i forget to remove =
Also i don't suppose that maybe the map is not there. OK next version will be fixed.
You don't know? Learn and you will know.

User avatar
Jack GamePlay
Mod Developer
Mod Developer
Egypt
Posts: 581
Joined: 2 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 48 times
Age: 19
Contact:

#10

Post by Jack GamePlay » 2 Years Ago

I've updated sma file.
Redownload fixed sma.
Not interested in CS/Pawn anymore.
Accepting web projects.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest