Approved Time Presents

Plug-ins compatibility with Zombie Escape 1.x only!


Post Reply
User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

Time Presents

#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:

Code:
    1. #include <zombie_escape>
    2.  
    3. #define SMALL 50
    4. #define AVERAGE 100
    5. #define LARGE 150
    6.  
    7. public plugin_init()
    8. {
    9.     register_plugin("[ZE] Addons: Time Presents", "1.0", "Jack GamePlay")
    10. }
    11.  
    12. public client_putinserver(id)
    13. {
    14.     set_task(300.0, "small_present", id)
    15. }
    16.  
    17. public client_disconnect(id)
    18. {
    19.     if(task_exists(id))
    20.         remove_task(id)
    21. }
    22.  
    23. public small_present(id)
    24. {
    25.     ze_set_escape_coins(id, ze_get_escape_coins(id) + SMALL)
    26.     ze_colored_print(id, "!gYou got!y[!t%d!y] escape coins for playing on this server for !y[!t5!y] !gminutes!y.", AVERAGE)
    27.     set_task(300.0, "average_present", id)
    28. }
    29.  
    30. public average_present(id)
    31. {
    32.     ze_set_escape_coins(id, ze_get_escape_coins(id) + AVERAGE)
    33.     ze_colored_print(id, "!gYou got!y[!t%d!y] escape coins for playing on this server for !y[!t10!y] !gminutes!y.", AVERAGE)
    34.     set_task(600.0, "large_present", id)
    35. }
    36.  
    37. public large_present(id)
    38. {
    39.     ze_set_escape_coins(id, ze_get_escape_coins(id) + LARGE)
    40.     ze_colored_print(id, "!gYou got!y[!t%d!y] escape coins for playing on this server for !y[!t20!y] !gminutes!y.", LARGE)
    41. }
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#2

Post by Raheem » 7 years ago

Nice one :D.
He who fails to plan is planning to fail

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#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
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#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 :roll:

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#5

Post by Spir0x » 6 years ago

okey :/ i'll try to compile it again

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#6

Post by Raheem » 6 years ago

For some reasons solution is to replace:
  1. ^x04 with !g
  2. ^x03 with !t
  3. ^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:
    1. public small_present(id)
    2. {
    3.     ze_set_escape_coins(id, ze_get_escape_coins(id) + SMALL)
    4.     ze_colored_print(id, "^x04You got ^x03%d ^x04Escape Coins^x01, ^x04for that play on this server for ^x035 minutes^x01.", SMALL)
    5. }
TO
    1. public small_present(id)
    2. {
    3.     ze_set_escape_coins(id, ze_get_escape_coins(id) + SMALL)
    4.     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)
    5. }
He who fails to plan is planning to fail

User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#7

Post by Night Fury » 6 years ago

Thread updated. :D
Fixed the plugin timer.
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#8

Post by Spir0x » 6 years ago

Nice Jack :) now it's very good :D
i'm using this : !gYou got!y[!t%d!y] !gescape coins for playing !y[!t20!y] !gminutes here!y.

Post Reply

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

Who is online

Users browsing this forum: No registered users and 0 guests