Class Selection Without AddPlayerClass?
#1

Heey all,

I made a class selection without AddPlayerClass.
But how can i make if the player reached the max case(last class skin) it will be switched to case 0(first class skin).
For Test i made 3 classes.
Код:
public OnPlayerRequestClass(playerid, classid)
{
	
 	switch(classid)
	{
		case 0://1 needs to be 0
		{
			SetPlayerSkin(playerid,0);
		}
		case 1:
		{
			SetPlayerSkin(playerid,1);
		}
		case 2:
		{
			SetPlayerSkin(playerid,2);
		}
	}
	return 1;
}
How i can reset the class selection(to case 0 if reached case 2)?

Thanks Admigo
Reply


Messages In This Thread
Class Selection Without AddPlayerClass? - by Admigo - 20.04.2012, 17:10
Re: Class Selection Without AddPlayerClass? - by aRoach - 20.04.2012, 17:15
Re: Class Selection Without AddPlayerClass? - by Admigo - 20.04.2012, 17:17
Re: Class Selection Without AddPlayerClass? - by Admigo - 20.04.2012, 18:03

Forum Jump:


Users browsing this thread: 1 Guest(s)