05.01.2010, 01:09
i need some function like this SetPlayerClassId(playerid,classid); this for what? your ask, well i want make a classelection divide by gender and my code is this.
mm the classid and skinid is not the same thing! if you say put this in your code SetPlayerSkin() -.- no, because is a diferent thing.
some can help me or say me "are you crazy this is imposible" u.u
pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
switch (PlayerInfo[playerid][gender])
{
case -1: return 0;
case 0: SetupPlayerForClassSelectionM(playerid);
case 1: SetupPlayerForClassSelectionW(playerid);
}
if (PlayerInfo[playerid][gender] == 1 && classid < 194)
{
SetPlayerClassId(playerid,194); //and the class 194 is a women
}
return 1;
}
some can help me or say me "are you crazy this is imposible" u.u