Page 1 of 1

only certain people can gain levels

Posted: Wed Jul 23, 2008 8:46 pm
by whosyourdaddy
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

Re: only certain people can gain levels

Posted: Thu Jul 24, 2008 5:24 pm
by whosyourdaddy
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

Code: Select all

if(blah blah blah)
{
#define MAX_LEVELS					11
}

Re: only certain people can gain levels

Posted: Mon Jul 28, 2008 6:22 pm
by whosyourdaddy
yama or geesu would this work if i have it reading from a file

Code: Select all

if(MAX_LEVEL == 14 && p_data[id][P_XP] > 1)
{
	p_data[id][P_XP]= 1
}
if not how can i get the xp and how can i set the xp of a person this is just an example 2