only certain people can gain levels
Moderator: Forum Moderator
-
- Spell Breaker
- Posts: 398
- Joined: Sun Apr 27, 2008 10:11 pm
only certain people can gain levels
well im making a lvl 17 mod and i was wondering if theres a way i can put a word pad or something where if there name or steam id is in the file they can level from 10-17

-
- Spell Breaker
- Posts: 398
- Joined: Sun Apr 27, 2008 10:11 pm
Re: only certain people can gain levels
ok well i got everything written but does any1 know the script command that wont let people pass level x if there name isnt in the file... like if there name is not in the file it will set there max level to 10
is there a way i can do an if state and have it do something like this
is there a way i can do an if state and have it do something like this
Code: Select all
if(blah blah blah)
{
#define MAX_LEVELS 11
}

-
- Spell Breaker
- Posts: 398
- Joined: Sun Apr 27, 2008 10:11 pm
Re: only certain people can gain levels
yama or geesu would this work if i have it reading from a file
if not how can i get the xp and how can i set the xp of a person this is just an example 2
Code: Select all
if(MAX_LEVEL == 14 && p_data[id][P_XP] > 1)
{
p_data[id][P_XP]= 1
}
