Raised This Month: $12 Target: $400
 3% 

SH show lvl


Post New Thread Reply   
 
Thread Tools Display Modes
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
Z0om
New Member
Join Date: Dec 2013
Location: 93.123.18.7:27015
Old 03-06-2015 , 12:06   Re: SH show lvl
Reply With Quote #2

Someone?
Z0om is offline
Send a message via ICQ to Z0om
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode