Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Change stat points and level up global message.


Mr.LLoyd
 Share

Recommended Posts

Ok so in this tutorial i will simply show how to change the amout of stat points you get per lvl and how to change the player lvl up global message to only a player message.This is only useful if you dont want to spam the chat box who leveld up.Ok so lets get started.

So in the server go to modPlayer
and find
```
Call SetPlayerPOINTS(Index, GetPlayerPOINTS(Index) + 3)
```Chnage the "3" with the amout of stat points you want to get per lvl
for example
```
Call SetPlayerPOINTS(Index, GetPlayerPOINTS(Index) + 1)
```This will give the player only 1 stat point per lvl.

Ok now for the global message when a player levels up.
In the same sub find
       ```
GlobalMsg GetPlayerName(Index) & " has gained " & level_count & " level!", Brown
```And replace the both codes with
         ```
Call PlayerMsg(Index, "You have leveled up!", BrightGreen)
```Thats all.
Ok so how the code works

```
Call PlayerMsg
```is a message type that only the user sees.
```
"You have leveled up!"
```is the message the player sees.
```
BrightGreen
```is the message color.

Notes:Im just starting to learn Visual Basic so thats why the edit is so simply and this is my first tutorial but i hope i helped someone :]
And sorry for my bad english it's not my native language.
Link to comment
Share on other sites

Hadn't thought of this :)

These sort of tutorials are good for newbies to coding as you dont have to add and edit miles of code its just changing a couple of numbers. I might do some simple ones like this at some point as I work things out myself.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...