Any way to shorten this?
#1

I am making this rank up system which is kinda annoying

Code:
	if(GetPlayerPoints(playerid) == 500)
	{
	    SendClientMessage(playerid,ORANGE,"You have been PROMOTED! You are now Rank 2");
		PlayerInfo[playerid][PLevel] = 2;
		return 1;
	}
	if(GetPlayerPoints(playerid) == 1000)
	{
	    SendClientMessage(playerid,ORANGE,"You have been PROMOTED! You are now Rank 3");
		PlayerInfo[playerid][PLevel] = 3;
		return 1;
	}
	if(GetPlayerPoints(playerid) == 1500)
	{
	    SendClientMessage(playerid,ORANGE,"You have been PROMOTED! You are now Rank 4");
		PlayerInfo[playerid][PLevel] = 4;
		return 1;
	}
instead of making them go up to level 100
is there a way that i can go like
every 500 points the player gets he goes up a level instead of ading every single one
Reply


Messages In This Thread
Any way to shorten this? - by mrcoolballs - 25.08.2010, 11:49
Re: Any way to shorten this? - by RSX - 25.08.2010, 11:54
Re: Any way to shorten this? - by mrcoolballs - 25.08.2010, 12:03
Re: Any way to shorten this? - by Claude - 25.08.2010, 12:05
Re: Any way to shorten this? - by RSX - 25.08.2010, 13:08
Re: Any way to shorten this? - by playbox12 - 25.08.2010, 18:12
Re: Any way to shorten this? - by Kalcor - 25.08.2010, 18:24
Re: Any way to shorten this? - by playbox12 - 25.08.2010, 19:34
Re: Any way to shorten this? - by wups - 25.08.2010, 20:16
Re: Any way to shorten this? - by mrcoolballs - 26.08.2010, 00:27

Forum Jump:


Users browsing this thread: 1 Guest(s)