Time Presents
Posted: 26 Feb 2017, 00:41
Hi, everyone.
Description:
Edit awards from here:
Code:
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)
- }