only certain people can gain levels

Read log files for errors! If this fails, come here for help

Moderator: Forum Moderator

Post Reply
whosyourdaddy
Spell Breaker
Posts: 398
Joined: Sun Apr 27, 2008 10:11 pm

only certain people can gain levels

Post by whosyourdaddy » Wed Jul 23, 2008 8:46 pm

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
Image

whosyourdaddy
Spell Breaker
Posts: 398
Joined: Sun Apr 27, 2008 10:11 pm

Re: only certain people can gain levels

Post by whosyourdaddy » Thu Jul 24, 2008 5:24 pm

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
}
Image

whosyourdaddy
Spell Breaker
Posts: 398
Joined: Sun Apr 27, 2008 10:11 pm

Re: only certain people can gain levels

Post by whosyourdaddy » Mon Jul 28, 2008 6:22 pm

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
Image

Post Reply