Plug-ins compatibility with Zombie Escape 1.x only!
-
Raheem
- Mod Developer
- Posts: 2214
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#1
Post
by Raheem » 7 years ago
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:
He who fails to plan is planning to fail
-
johnnysins2000
- Veteran Member
- Posts: 678
- Joined: 7 years ago
- Location: Paraguay
-
Contact:
-
Quote
-
0
login to like this post
#2
Post
by johnnysins2000 » 7 years ago
Thanks Very Useful Plugin !
Nobody Is That Busy If They Make Time
-
Raheem
- Mod Developer
- Posts: 2214
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#3
Post
by Raheem » 7 years ago
Nice hope this helps
He who fails to plan is planning to fail
-
Spir0x
- Veteran Member
- Posts: 641
- Joined: 7 years ago
- Location: Tunisia
-
Contact:
-
Quote
-
0
login to like this post
#4
Post
by Spir0x » 6 years ago
this plugin cannot be updated ?
simple example:
!tADMIN !g%s !tHas gived !g%d !tEscape Coins to Player !g%s!y.
-
Spir0x
- Veteran Member
- Posts: 641
- Joined: 7 years ago
- Location: Tunisia
-
Contact:
-
Quote
-
0
login to like this post
#5
Post
by Spir0x » 6 years ago
[mention]Raheem[/mention] look here.
-
Raheem
- Mod Developer
- Posts: 2214
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#6
Post
by Raheem » 5 years ago
#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
}
He who fails to plan is planning to fail
-
Spir0x
- Veteran Member
- Posts: 641
- Joined: 7 years ago
- Location: Tunisia
-
Contact:
-
Quote
-
0
login to like this post
#7
Post
by Spir0x » 5 years ago
What you did on this new code bro ?
-
Spir0x
- Veteran Member
- Posts: 641
- Joined: 7 years ago
- Location: Tunisia
-
Contact:
-
Quote
-
0
login to like this post
#8
Post
by Spir0x » 5 years ago
where's the chat message ?
-
imSpartan
- Member
- Posts: 22
- Joined: 4 years ago
-
Contact:
-
Quote
-
0
login to like this post
#9
Post
by imSpartan » 4 years ago
WIll this work with steamid instead of name?
Can this plugin execute with rcon, like hlsw?
-
Raheem
- Mod Developer
- Posts: 2214
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#10
Post
by Raheem » 4 years ago
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.
He who fails to plan is planning to fail
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute
Register
Sign in
Users browsing this forum: No registered users and 1 guest