View Single Post
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 12-22-2010 , 06:12   Re: Updated Flyen's EXP Tutorial (Fixed Errors)
Reply With Quote #10

hey could anyone here help with a little problem in my xp base?... I dont want people to choose what class they should be
I want them to change classname after they level up so if the player for exaple is lvl 1 his classname will be "new here"
lvl 3 "Learning"... and so on... what i tried to do now didn't work but I'll show u what i did:

I still made a variable for the classname
Code:
new UserXp, UserLevel, UserClassname[33]
I added the Classnames
Code:
new const Classname[] =
{
	"None",
	"New here",
	"Learning",
	"School Boy",
	"Trainee",
	"Master"
}
Now here is where I need help I,ve tried to add it to the deathmsg like this:
Code:
while(UserXp[attacker] >= LEVELS[UserLevel[attacker]])
	{
		client_print(attacker, print_chat, "[Hxp Mod] Congratulation you have finnally reached level %i %s!");
		UserLevel[attacker] += 1
		
		new UserClassname
		
		if(UserLevel += 1 == 1)
		{
			UserClassname = "New Here"
		}
		
	}
	ShowHud(attacker)
	SaveXp(attacker)
I also have another problem I want all players to get a little more xp if they kill with a hegrenade and dont know what read_data(?) that will be?
Erox902 is offline