Jump to content
Sign in to follow this  
blazi10

GM message when player reach max level

Recommended Posts

Hello, anyone know how i can add GM notice when a player reach maximum lv? i've searsched in exp_and_level.lua but i can't find it, if anyone can help me i will be gratefull :)

have a nice day!

Share this post


Link to post
Share on other sites
2 hours ago, blazi10 said:

Hello, anyone know how i can add GM notice when a player reach maximum lv? i've searsched in exp_and_level.lua but i can't find it, if anyone can help me i will be gratefull :)

have a nice day!

for gmnotice you need vector exes, and here is how to add gmnotice & track lvl
find script/calculate/AttrCalculate.lua
find:-

 function BsAttrUpgrade( role )

add this
 

if lv ==  NEW_LV_LIMIT then
        GMNotice('Congratulations to '..GetChaDefaultName(role)..' for reaching the max level.');
    end

below 
 

local lv = GetChaAttr ( role , ATTR_LV ) 

where NEW_LV_LIMIT is the variable that equal to the lv you want to track/maxlv.
we will say your server's maxlv is lv100 so NEW_LV_LIMIT  will be:-
NEW_LV_LIMIT = 100

NEW_LV_LIMIT = 100

add it wherever you want. or you can add it into Variable.lua

  • Like 2

Kind regards, AG.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...