Approved Time Presents

Gameplay Addons
Post Reply
User avatar
Mohamed Alaa
Mod Developer
Mod Developer
Egypt
Posts: 626
Joined: 2 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 48 times
Age: 19
Contact:

Time Presents

#1

Post by Mohamed Alaa » 2 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 web projects.
CS 1.6 hosting: powergamingtech.com

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1972
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 22
Contact:

#2

Post by Raheem » 2 Years Ago

Nice one :D.
You don't know? Learn and you will know.

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 633
Joined: 2 Years Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 7 times
Age: 19
Contact:

#3

Post by Spir0x » 2 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.
I trynna make money, not friends.

johnnysins2000
Veteran Member
Veteran Member
Pakistan
Posts: 672
Joined: 2 Years Ago
Location: Lahore
Has thanked: 11 times
Been thanked: 10 times
Age: 22
Contact:

#4

Post by johnnysins2000 » 2 Years Ago

Spir0x wrote:
2 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: 633
Joined: 2 Years Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 7 times
Age: 19
Contact:

#5

Post by Spir0x » 2 Years Ago

okey :/ i'll try to compile it again
I trynna make money, not friends.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1972
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 22
Contact:

#6

Post by Raheem » 2 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. }
You don't know? Learn and you will know.

User avatar
Mohamed Alaa
Mod Developer
Mod Developer
Egypt
Posts: 626
Joined: 2 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 48 times
Age: 19
Contact:

#7

Post by Mohamed Alaa » 2 Years Ago

Thread updated. :D
Fixed the plugin timer.
Want your own mod edition? PM me.
Accepting web projects.
CS 1.6 hosting: powergamingtech.com

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 633
Joined: 2 Years Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 7 times
Age: 19
Contact:

#8

Post by Spir0x » 2 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.
I trynna make money, not friends.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest