20.04.2012, 17:10
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.
How i can reset the class selection(to case 0 if reached case 2)?
Thanks Admigo
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; }
Thanks Admigo