Raised This Month: $51 Target: $400
 12% 

[ZE] Call button message


Post New Thread Reply   
 
Thread Tools Display Modes
r0ck
Senior Member
Join Date: Jun 2011
Location: India
Old 06-22-2014 , 12:02   Re: [ZE] Call button message
Reply With Quote #21

All have different target names so like Kia said we have to make a file and write the map name with its target name and load accordingly.. but the problem is not everyone knows how to check target name so we have to write of the map / thier target names..

If anyone willing to help find all target names in most of ze maps i'll make that
__________________
Preparing to release my plugins..
r0ck is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 06-22-2014 , 12:17   Re: [ZE] Call button message
Reply With Quote #22

I would also make it, the question was someone to find аs many as possible button names.
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
Mikado
Senior Member
Join Date: Nov 2012
Location: don't know where :/
Old 06-22-2014 , 17:41   Re: [ZE] Call button message
Reply With Quote #23

I wanna help, but you must show me how to get targets names
Mikado is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 06-22-2014 , 17:44   Re: [ZE] Call button message
Reply With Quote #24

Well, Kia provided some curious picture, which is unknown for me. If he is willing to share with use his method of getting buttons' names, it will be good So some guy with enthusiasm can spent some time getting names on the maps.
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
ArabicMan
Veteran Member
Join Date: Feb 2014
Location: مصر
Old 06-22-2014 , 18:39   Re: [ZE] Call button message
Reply With Quote #25

Quote:
Originally Posted by Flick3rR View Post
Well, Kia provided some curious picture, which is unknown for me. If he is willing to share with use his method of getting buttons' names, it will be good So some guy with enthusiasm can spent some time getting names on the maps.
Quote:
Originally Posted by Kia View Post
This makes it even easier since we can look at the Button Name via BSPViewer and then hook that button.
This easy way to know the name of button.
ArabicMan is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 06-23-2014 , 00:41   Re: [ZE] Call button message
Reply With Quote #26

Just open the Map with BSPViewer and click on the button.
__________________
Kia is offline
ArabicMan
Veteran Member
Join Date: Feb 2014
Location: مصر
Old 06-23-2014 , 07:43   Re: [ZE] Call button message
Reply With Quote #27

Map name --- Button name
ze_area51_lg --- tren_escape
ze_assault_escape_lg --- heli
ze_amazonas_beta --- rescate_amazonas
ze_blackmesa_final --- msilo
ze_chaka_escape ---gemoroy
ze_egypt_two_lg --- a1
ze_escapetrain --- trem_ati
ze_hospital_lg --- heli_escape
ze_ice4cap_lg --- llamado_escape
ze_jungla_lg --- heli1
ze_jurassickpark2_lg --- heli
ze_jurassickpark3_lg --- heli
ze_JurassicPark4 --- rescate_jp
ze_jurassicpark_v2 --- final
ze_mario_tower_lg --- mario_escape_final_001
ze_maya_god_final --- ttt
ze_osnapitzari_lg --- ascensor_escape
ze_parkour_fabi --- multi (I'am not sure)
ze_pueblo_v3_fix --- tren
ze_thelost_lg --- escape_final
ArabicMan is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 06-23-2014 , 08:10   Re: [ZE] Call button message
Reply With Quote #28

Wowww, really thanks!! Okay, now I've made the code like this:
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <colorchat>


/*
    MAIN INFO
    
MAP                  ---     BUTTON NAME

ze_area51_lg        ---     tren_escape
ze_assault_escape_lg     ---     heli
ze_amazonas_beta     ---     rescate_amazonas
ze_blackmesa_final     ---     msilo
ze_chaka_escape     ---    gemoroy
ze_egypt_two_lg     ---     a1
ze_escapetrain        ---     trem_ati
ze_hospital_lg         ---     heli_escape
ze_ice4cap_lg         ---     llamado_escape
ze_jungla_lg         ---     heli1
ze_jurassickpark2_lg     ---     heli
ze_jurassickpark3_lg     ---     heli
ze_JurassicPark4     ---     rescate_jp
ze_jurassicpark_v2     ---     final
ze_mario_tower_lg     ---     mario_escape_final_001
ze_maya_god_final     ---     ttt
ze_osnapitzari_lg     ---     ascensor_escape
ze_parkour_fabi     ---     multi
ze_pueblo_v3_fix     ---     tren
ze_thelost_lg         ---     escape_final
                            */


new const names[][]=
{
    
"heli",
    
"escape",
    
"cake",
    
"tren_escape",
    
"rescate_amazonas",
    
"msilo",
    
"gemoroy",
    
"a1",
    
"trem_ati",
    
"heli_escape",
    
"llamado_escape",
    
"heli1",
    
"rescate_jp",
    
"mario_escape_final_001",
    
"final",
    
"ttt",
    
"ascensor_escape",
    
"multi",
    
"escape_final",
    
"tren"
}

public 
plugin_init()
{
    
register_plugin("Heli Call Color Message""1.0""r0ck")
    
    for(new 
0sizeof namesi++)
    {
        if(
engfunc(EngFunc_FindEntityByString, -"target"names[i]))
        {
            
RegisterHam(Ham_Use"func_button""UsedButton")
            break
        }
        
//set_fail_state("[ZE] Zombie Escape Button not found.") //- Removed this
    
}
}
public 
UsedButton(entcaller)
{
    new 
szTargetname[10], szName[32
    
get_user_name(callerszNamecharsmax(szName))
    
pev(entpev_targetszTargetnamecharsmax(szTargetname))
 
    for(new 
0sizeof namesi++)
    {
        if(
equali(szTargetnamenames[i]))
        {
            
ColorChat(0GREEN"[ZE]^3 %s^1 has called the helicopter^4!"szName)
            break
        }
    }

Everyone who wants may add new callbutton names in the constant, it will be good to add and the main info, too.
__________________

Last edited by Flick3rR; 06-23-2014 at 08:11.
Flick3rR is offline
Send a message via Skype™ to Flick3rR
GinNNy
Senior Member
Join Date: Mar 2014
Old 06-23-2014 , 08:58   Re: [ZE] Call button message
Reply With Quote #29

some maps dont use helicopters
GinNNy is offline
ArabicMan
Veteran Member
Join Date: Feb 2014
Location: مصر
Old 06-23-2014 , 11:01   Re: [ZE] Call button message
Reply With Quote #30

Quote:
Originally Posted by Flick3rR View Post
Wowww, really thanks!! Okay, now I've made the code like this:
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <colorchat>


/*
    MAIN INFO
    
MAP                  ---     BUTTON NAME

ze_area51_lg        ---     tren_escape
ze_assault_escape_lg     ---     heli
ze_amazonas_beta     ---     rescate_amazonas
ze_blackmesa_final     ---     msilo
ze_chaka_escape     ---    gemoroy
ze_egypt_two_lg     ---     a1
ze_escapetrain        ---     trem_ati
ze_hospital_lg         ---     heli_escape
ze_ice4cap_lg         ---     llamado_escape
ze_jungla_lg         ---     heli1
ze_jurassickpark2_lg     ---     heli
ze_jurassickpark3_lg     ---     heli
ze_JurassicPark4     ---     rescate_jp
ze_jurassicpark_v2     ---     final
ze_mario_tower_lg     ---     mario_escape_final_001
ze_maya_god_final     ---     ttt
ze_osnapitzari_lg     ---     ascensor_escape
ze_parkour_fabi     ---     multi
ze_pueblo_v3_fix     ---     tren
ze_thelost_lg         ---     escape_final
                            */


new const names[][]=
{
    
"heli",
    
"escape",
    
"cake",
    
"tren_escape",
    
"rescate_amazonas",
    
"msilo",
    
"gemoroy",
    
"a1",
    
"trem_ati",
    
"heli_escape",
    
"llamado_escape",
    
"heli1",
    
"rescate_jp",
    
"mario_escape_final_001",
    
"final",
    
"ttt",
    
"ascensor_escape",
    
"multi",
    
"escape_final",
    
"tren"
}

public 
plugin_init()
{
    
register_plugin("Heli Call Color Message""1.0""r0ck")
    
    for(new 
0sizeof namesi++)
    {
        if(
engfunc(EngFunc_FindEntityByString, -"target"names[i]))
        {
            
RegisterHam(Ham_Use"func_button""UsedButton")
            break
        }
        
//set_fail_state("[ZE] Zombie Escape Button not found.") //- Removed this
    
}
}
public 
UsedButton(entcaller)
{
    new 
szTargetname[10], szName[32
    
get_user_name(callerszNamecharsmax(szName))
    
pev(entpev_targetszTargetnamecharsmax(szTargetname))
 
    for(new 
0sizeof namesi++)
    {
        if(
equali(szTargetnamenames[i]))
        {
            
ColorChat(0GREEN"[ZE]^3 %s^1 has called the helicopter^4!"szName)
            break
        }
    }

Everyone who wants may add new callbutton names in the constant, it will be good to add and the main info, too.
Not work.
ArabicMan is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode