AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=43)
-   -   SH show lvl (https://forums.alliedmods.net/showthread.php?t=259381)

Z0om 03-06-2015 07:39

SH show lvl
 
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?

Z0om 03-06-2015 12:06

Re: SH show lvl
 
Someone?


All times are GMT -4. The time now is 20:09.

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