Thread: SH show lvl
View Single Post
Author Message
Z0om
New Member
Join Date: Dec 2013
Location: 93.123.18.7:27015
Old 03-06-2015 , 07:39   SH show lvl
Reply With Quote #1

Hellow,
I try to make plugin ,which set HUD near radar whit LVL of player /MAX LVL
and on new line XP/xp till next lvl. + hide old showing near chat
I don't think its so hard..
I try whit..
Code:
#include <amxmodx>

public plugin_init()
{
register_plugin("SH show XP","1.0","Alex")

}

public client_connect(id)
{
set_task(9999990.0, "task_suobshtenie", id)
}

public task_suobshtenie(id)
{
    PlayerLevel = sh_get_user_lvl(Player)

	if ( PlayerLevel < ServerMaxLevel ) {
	formatex(temp, charsmax(temp), "/%d", sh_get_lvl_xp(PlayerLevel+1))
	}

	set_hudmessage(NOT SURE WHERE)
	show_hudmessage(id, "[SH] Level: %d/%d  |  XP: %d%s PlayerLevel, ServerMaxLevel, sh_get_user_xp(Player), )
}
Can u help me?

Last edited by Z0om; 03-06-2015 at 07:43.
Z0om is offline
Send a message via ICQ to Z0om