Solved How to make a define ze_get_level like ze_get_escape_coins?

Coding Help/Re-API Supported
Post Reply
Obada
Member
Member
Palestine
Posts: 27
Joined: 6 years ago
Contact:

How to make a define ze_get_level like ze_get_escape_coins?

#1

Post by Obada » 6 years ago

Hello all developers,

I'm using latest release of this mod ( not full pack HLDS ) and there is no ze_level_system in it.

So i decide to try to edit one with your help guys, I see in ze_hud_info to get coins value something called "ze_get_escape_coins" to show it on hud. I'm trying to use this fixed of level system for this mod from here http://escapers-zone.net/viewtopic.php?f=15&t=2048, but this plugin not show HUD level so i decide to add it in ze_hud_info.

as i said before in "ze_hud_info.sma" there is something called "ze_get_escape_coins" to get player coins, so now i need to define "ze_get_level" on it anyone have idea to do that?

And thanks in advance.
Last edited by Obada 6 years ago, edited 1 time in total.

Obada
Member
Member
Palestine
Posts: 27
Joined: 6 years ago
Contact:

#2

Post by Obada » 6 years ago

What i need is to call values of those:

Code: Select all

// Variables
new g_iLevel[33], g_iXP[33],
Float:g_fDamage[33],
g_MsgSync
from ze_level to ze_hud_info.

So i can then use

Code: Select all

g_iLevel(ID_SHOWHUD)
in ze_hud_info normally.

Obada
Member
Member
Palestine
Posts: 27
Joined: 6 years ago
Contact:

#3

Post by Obada » 6 years ago

Done guys,

my reference is here:

https://forums.alliedmods.net/showthrea ... 51?t=41251

I defined the native in include files.

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

#4

Post by Raheem » 6 years ago

Right, And you can define them in the plugin you need to use them in also. OK as i understand try to do this: http://escapers-zone.net/viewtopic.php?f=15&t=2048 in original Levels System. What i tells you is that in fact there is no much difference between the two. And if you still speak about losing coins/xp problem so i said many times that the problem not related to saving/loading it's related to resetting variable that contain players xp/coins.. For no reason so till now i don't find solution but i'll try find it next few days.
He who fails to plan is planning to fail

Obada
Member
Member
Palestine
Posts: 27
Joined: 6 years ago
Contact:

#5

Post by Obada » 6 years ago

I wasn't talking about losing levels/xp, i just used that plugin from this guy, and i was need to show levels and xp on ze_hud_info not more, and it solved via adding natives.

And for this request, i putt this request here because i really need to learn how to scrippting in amxmodx i love to do that to know how to customize my server, and big thanks for you again bro. YOU'RE PRO in this.

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

#6

Post by Raheem » 6 years ago

You are welcome brother.
He who fails to plan is planning to fail

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 3 guests