Page 1 of 1
Beacon Effect
Posted: 21 Apr 2017, 19:46
by Raheem
Beacon Effect
Description:
- This plugin will allow admins to give any player a special effect it's circle around him. Also admin can remove it from the player.
Commands:
amx_beacon "Player Name"
Add the circle effect to the player.
amx_remove_beacon "Player Name"
Remove the circle from the player.
Installation & Instructions:
- Simply install it like any plugin.
- You can change the admin access from this line:
#define ACCESS ADMIN_BAN
and you will need to recompile the plugin again.
- Human circle color is Blue and Zombies circle color is Red. You can change the RGB Color from from these lines:
// For Humans
write_byte(0) // red
write_byte(0) // green
write_byte(250) // blue
// For Zombies
write_byte(250) // red
write_byte(0) // green
write_byte(0) // blue
Changelog:
Spoiler!
Version: 1.0
Version: 1.1
- Fixed: When player die or round end the circle effect will be removed.
Version: 1.2 [
Current Version]
- Fixed: When player disconnect from server the circle effect will be removed.
- Added sound for the effect. It appear every time the circle comes.
Screenshots:
Downloads:
Re: Beacon Effect
Posted: 22 Apr 2017, 06:44
by johnnysins2000
I see so this is Beacon . Nice And Users Can Now Change Color as Well from it like We Change COlors of Hud messages
Nice Plugin
Re: Beacon Effect
Posted: 22 Apr 2017, 08:09
by kair
Something like this , Im not sure what but a kinda beeping sound.
(speed x2)
https://www.youtube.com/watch?v=GVm8pFDxUjU&t=248s
Also can u make it if u give someone beacon end of round it disappears ?
Nice work bro, love your work.
Re: Beacon Effect
Posted: 22 Apr 2017, 08:48
by johnnysins2000
I see So u want this beeping sound As well when that Round Circle beacon things Come
Download This Beeping Sound from anywhere and Provide The File in.mp3 or .wav to Raheem
Then he will add this sound As well
Re: Beacon Effect
Posted: 22 Apr 2017, 08:49
by johnnysins2000
And Raheem u know This Beacon effect U could give it to escape leader as Well It will be Nice Idea
Re: Beacon Effect
Posted: 22 Apr 2017, 14:16
by Raheem
I made new version 1.1 see the changelog. And about sound give me it in .wav format and it should be 1 or 2 seconds only.
johnnysins2000 wrote: ↑7 years ago
And Raheem u know This Beacon effect U could give it to escape leader as Well It will be Nice Idea
Will be added in the next Release for the mod. It will be there is cvar you can enable it only or enable glow only or enable the two at same time.
Re: Beacon Effect
Posted: 23 Apr 2017, 19:23
by kair
Re: Beacon Effect
Posted: 23 Apr 2017, 19:56
by Raheem
Ok added, Now current version: 1.2
Re: Beacon Effect
Posted: 31 Jul 2019, 14:00
by Templaso
Invalid player id 0
[AMXX] Displaying debug trace (plugin "ze_beacon_effect.amxx", version "1.2")
[AMXX] Run time error 10: native error (native "get_user_origin")
[AMXX] [0] ze_beacon_effect.sma::Beacon (line 119)
[AMXX] [1] ze_beacon_effect.sma::Beacon_AddCmd (line 39)
someone fix this and if i say in console "amx_beacon Player" then appear this "Unknown command amx_beacon" same with amx_remove_beacon
Re: Beacon Effect
Posted: 31 Jul 2019, 14:16
by Raheem
Mystic Viper wrote: ↑4 years ago
Invalid player id 0
[AMXX] Displaying debug trace (plugin "ze_beacon_effect.amxx", version "1.2")
[AMXX] Run time error 10: native error (native "get_user_origin")
[AMXX] [0] ze_beacon_effect.sma::Beacon (line 119)
[AMXX] [1] ze_beacon_effect.sma::Beacon_AddCmd (line 39)
someone fix this and if i say in console "amx_beacon Player" then appear this "Unknown command amx_beacon" same with amx_remove_beacon
#include <zombie_escape>
#define ACCESS ADMIN_BAN
new g_iBeaconSprite
new const g_szSound[] = "zombie_escape/blip1.wav"
public plugin_init()
{
register_plugin("[ZE] Beacon Effect", "1.2", "Raheem")
// Hook Chains
RegisterHookChain(RG_CBasePlayer_Killed, "Fw_PlayerKilled_Post", 1)
// Commands
register_concmd("amx_beacon", "Beacon_AddCmd")
register_concmd("amx_remove_beacon", "Beacon_RemoveCmd")
}
public plugin_precache()
{
g_iBeaconSprite = precache_model("sprites/shockwave.spr")
precache_sound(g_szSound)
}
public Beacon_AddCmd(id, level, cid)
{
if (!(get_user_flags(id) & ACCESS))
{
ze_colored_print(id, "!tYou have no access to that command!y.")
return PLUGIN_HANDLED
}
new szName[32]
read_argv(1, szName , 31)
new iIndex = get_user_index(szName)
if (!is_user_connected(id))
return PLUGIN_HANDLED
Beacon(iIndex)
return PLUGIN_HANDLED
}
public Beacon_RemoveCmd(id, level, cid)
{
if (!(get_user_flags(id) & ACCESS))
{
ze_colored_print(id, "!tYou have no access to that command!y.")
return PLUGIN_HANDLED
}
new szName[32]
read_argv(1, szName , 31)
new iIndex = get_user_index(szName)
remove_task(iIndex)
return PLUGIN_HANDLED
}
public ze_roundend(WinTeam)
{
for (new i = 0; i <= 32; i++)
{
if (!is_user_alive(i) || !task_exists(i, 0))
continue
remove_task(i)
}
}
public client_disconnect(id)
{
if (task_exists(id, 0))
{
remove_task(id)
}
}
public Fw_PlayerKilled_Post(id)
{
if (task_exists(id, 0))
{
remove_task(id)
}
}
public Beacon(id)
{
if (!is_user_connected(id))
return
if(get_member(id, m_iTeam) == TEAM_CT)
{
static origin[3]
get_user_origin(id, origin)
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(TE_BEAMCYLINDER) // TE id
write_coord(origin[0]) // x
write_coord(origin[1]) // y
write_coord(origin[2]-20) // z
write_coord(origin[0]) // x axis
write_coord(origin[1]) // y axis
write_coord(origin[2]+200) // z axis
write_short(g_iBeaconSprite) // sprite
write_byte(0) // startframe
write_byte(1) // framerate
write_byte(6) // life
write_byte(4) // width
write_byte(1) // noise
write_byte(0) // red
write_byte(0) // green
write_byte(250) // blue
write_byte(200) // brightness
write_byte(0) // speed
message_end()
}
else
{
static origin[3]
get_user_origin(id, origin)
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(TE_BEAMCYLINDER) // TE id
write_coord(origin[0]) // x
write_coord(origin[1]) // y
write_coord(origin[2]-20) // z
write_coord(origin[0]) // x axis
write_coord(origin[1]) // y axis
write_coord(origin[2]+200) // z axis
write_short(g_iBeaconSprite) // sprite
write_byte(0) // startframe
write_byte(1) // framerate
write_byte(6) // life
write_byte(4) // width
write_byte(1) // noise
write_byte(250) // red
write_byte(0) // green
write_byte(0) // blue
write_byte(200) // brightness
write_byte(0) // speed
message_end()
}
set_task(1.0, "Beacon", id)
emit_sound(id, CHAN_BODY, g_szSound, VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
}
Re: Beacon Effect
Posted: 31 Jul 2019, 16:16
by Templaso
Invalid player id 0
[AMXX] Displaying debug trace (plugin "ze_beacon_effect.amxx", version "1.2")
[AMXX] Run time error 10: native error (native "get_user_origin")
[AMXX] [0] ze_beacon_effect.sma::Beacon (line 122)
[AMXX] [1] ze_beacon_effect.sma::Beacon_AddCmd (line 42)
not working bro
Re: Beacon Effect
Posted: 31 Jul 2019, 16:37
by Raheem
Re: Beacon Effect
Posted: 31 Jul 2019, 16:55
by Templaso
Fixed