Plug-ins compatibility with Zombie Escape 1.x only!
-
Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#1
Post
by Night Fury » 7 years ago
Hi, everyone.
Description:
- This plugin will give the newly players escape coins like a gift/present when he stays certain amount of time.
You can edit it as whatever you want.
Edit awards from here:
#define SMALL 50
#define AVERAGE 100
#define LARGE 150
Code:
#include <zombie_escape>
#define SMALL 50
#define AVERAGE 100
#define LARGE 150
public plugin_init()
{
register_plugin("[ZE] Addons: Time Presents", "1.0", "Jack GamePlay")
}
public client_putinserver(id)
{
set_task(300.0, "small_present", id)
}
public client_disconnect(id)
{
if(task_exists(id))
remove_task(id)
}
public small_present(id)
{
ze_set_escape_coins(id, ze_get_escape_coins(id) + SMALL)
ze_colored_print(id, "!gYou got!y[!t%d!y] escape coins for playing on this server for !y[!t5!y] !gminutes!y.", AVERAGE)
set_task(300.0, "average_present", id)
}
public average_present(id)
{
ze_set_escape_coins(id, ze_get_escape_coins(id) + AVERAGE)
ze_colored_print(id, "!gYou got!y[!t%d!y] escape coins for playing on this server for !y[!t10!y] !gminutes!y.", AVERAGE)
set_task(600.0, "large_present", id)
}
public large_present(id)
{
ze_set_escape_coins(id, ze_get_escape_coins(id) + LARGE)
ze_colored_print(id, "!gYou got!y[!t%d!y] escape coins for playing on this server for !y[!t20!y] !gminutes!y.", LARGE)
}
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
-
Raheem
- Mod Developer
- Posts: 2214
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#2
Post
by Raheem » 7 years ago
Nice one
.
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
#3
Post
by Spir0x » 6 years ago
Look at this i think ur cod is bugged
[Zombie Escape] You got 100 Nscape Coins, Oor that play on this server for ` minutes.
on my server.
-
johnnysins2000
- Veteran Member
- Posts: 678
- Joined: 7 years ago
- Location: Paraguay
-
Contact:
-
Quote
-
0
login to like this post
#4
Post
by johnnysins2000 » 6 years ago
Spir0x wrote: ↑6 years ago
Look at this i think ur cod is bugged
[Zombie Escape] You got 100 Nscape Coins, Oor that play on this server for ` minutes.
on my server.
It is not bug... it is just message :p
U can edit the sma and Write there whatever u think is correct for this
I think correct will be
You have got %d coins for Playing %s minutes in the server
Nobody Is That Busy If They Make Time
-
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
okey :/ i'll try to compile it again
-
Raheem
- Mod Developer
- Posts: 2214
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#6
Post
by Raheem » 6 years ago
For some reasons solution is to replace:
^x04
with !g
^x03
with !t
^x01
with !y
And it will show right things. Or another thing to leave space in
^x035
to
^x03 5
or if you do it like ^x035 the compiler think this whole is hexadecimal number ^x035.
03 = 0000 0011
035 = 0000 0011 0101
As you see different things....
Example of what i speak about:
public small_present(id)
{
ze_set_escape_coins(id, ze_get_escape_coins(id) + SMALL)
ze_colored_print(id, "^x04You got ^x03%d ^x04Escape Coins^x01, ^x04for that play on this server for ^x035 minutes^x01.", SMALL)
}
TO
public small_present(id)
{
ze_set_escape_coins(id, ze_get_escape_coins(id) + SMALL)
ze_colored_print(id, "^x04You got ^x03%d^x04 Escape Coins^x01,^x04 for that play on this server for^x03 5 minutes^x01.", SMALL)
}
He who fails to plan is planning to fail
-
Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#7
Post
by Night Fury » 6 years ago
Thread updated.
Fixed the plugin timer.
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
-
Spir0x
- Veteran Member
- Posts: 641
- Joined: 7 years ago
- Location: Tunisia
-
Contact:
-
Quote
-
0
login to like this post
#8
Post
by Spir0x » 6 years ago
Nice Jack
now it's very good
i'm using this : !gYou got!y[!t%d!y] !gescape coins for playing !y[!t20!y] !gminutes here!y.
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 0 guests