Page 1 of 1
Give Escape Coins
Posted: 02 Mar 2017, 18:36
by Raheem
Give Escape Coins
Description:
- Plugin for admins, So they can give players Escape Coins just by using simple console command.
Installation & Instructions:
- Simply install it like any plugin.
- Usage: ze_giveec "name" "amount"
Example: ze_giveec "Raheem" 50
This will give raheem 50 Escape Coins.
You can change the admin flag from the plugin and then Re-Compile the plugin again: #define ACCESS ADMIN_RCON
Downloads:
Re: Give Escape Coins
Posted: 03 Mar 2017, 09:36
by johnnysins2000
Thanks Very Useful Plugin !
Re: Give Escape Coins
Posted: 03 Mar 2017, 09:42
by Raheem
Nice hope this helps
Re: Give Escape Coins
Posted: 30 Jan 2018, 19:23
by Spir0x
this plugin cannot be updated ?
simple example:
!tADMIN !g%s !tHas gived !g%d !tEscape Coins to Player !g%s!y.
Re: Give Escape Coins
Posted: 01 Feb 2018, 19:35
by Spir0x
[mention]Raheem[/mention] look here.
Re: Give Escape Coins
Posted: 22 Jul 2018, 14:51
by Raheem
#include <zombie_escape>
#define ACCESS ADMIN_RCON
public plugin_init ()
{
register_plugin("[ZE] Give Escape Coins", "1.0", "Raheem")
register_clcmd("ze_giveec", "Cmd_GiveEC", ACCESS, "- ze_giveec <name> <amount>")
}
public Cmd_GiveEC(id)
{
if (!(get_user_flags(id) & ACCESS))
{
client_print(id, print_console, "You have no access to that command")
return PLUGIN_HANDLED
}
new szName[32], szAmount[10]
read_argv (1, szName, charsmax (szName))
read_argv (2, szAmount, charsmax (szAmount))
new iTargetIndex = get_user_index(szName)
if (!iTargetIndex)
{
client_print(id, print_console, "[ZE] Player not found!")
return PLUGIN_HANDLED
}
if (!is_user_connected(iTargetIndex))
return PLUGIN_HANDLED
new iECAmout = str_to_num (szAmount)
ze_set_escape_coins(iTargetIndex, ze_get_escape_coins(iTargetIndex) + iECAmout)
return PLUGIN_HANDLED
}
Re: Give Escape Coins
Posted: 01 Aug 2018, 18:22
by Spir0x
What you did on this new code bro ?
Re: Give Escape Coins
Posted: 26 Aug 2018, 16:47
by Spir0x
where's the chat message ?
Re: Give Escape Coins
Posted: 01 Aug 2019, 05:44
by imSpartan
WIll this work with steamid instead of name?
Can this plugin execute with rcon, like hlsw?
Re: Give Escape Coins
Posted: 02 Aug 2019, 17:08
by Raheem
imSpartan wrote: ↑4 years ago
WIll this work with steamid instead of name?
Can this plugin execute with rcon, like hlsw?
Give try:
#include <zombie_escape>
#define ACCESS ADMIN_RCON
new g_iMaxPlayers
public plugin_init ()
{
register_plugin("[ZE] Give Escape Coins", "1.0", "Raheem")
register_clcmd("ze_giveec", "Cmd_GiveEC", ACCESS, "- ze_giveec <steamid> <amount>")
g_iMaxPlayers = get_member_game(m_nMaxPlayers)
}
public Cmd_GiveEC(id)
{
if (!(get_user_flags(id) & ACCESS))
{
client_print(id, print_console, "You have no access to that command")
return PLUGIN_HANDLED
}
new szSteamid[32], szAmount[10]
read_argv (1, szSteamid, charsmax (szSteamid))
read_argv (2, szAmount, charsmax (szAmount))
new iTargetIndex = GetPlayerID(szSteamid)
if (!iTargetIndex)
{
client_print(id, print_console, "[ZE] Player not found!")
return PLUGIN_HANDLED
}
if (!is_user_connected(iTargetIndex))
return PLUGIN_HANDLED
new iECAmout = str_to_num (szAmount)
ze_set_escape_coins(iTargetIndex, ze_get_escape_coins(iTargetIndex) + iECAmout)
return PLUGIN_HANDLED
}
stock GetPlayerID(szSteamId[])
{
for(new id = 1; id <= g_iMaxPlayers; id++)
{
if (!is_user_connected(id))
continue
new szPlayerSteam[36]
get_user_authid(id, szPlayerSteam, charsmax(szPlayerSteam))
if (equal(szPlayerSteam, szSteamId))
return id
}
return 0
}
Not sure if this can be executed with rcon from any software like HLSW .. etc, just try it's related to AMXMODX.
Re: Give Escape Coins
Posted: 02 Aug 2019, 18:31
by imSpartan
Thanks raheem it work.