05.07.2011, 13:26
You have to order your classes then have to add each line a specific code.
May or may not work, I just wrote this without my PAWNO opened lol
Remember: Classid's work on the order of classes created on the gamemode init callback.
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0: { GameTextForPlayer( playerid, "Class 0", 7000, 3 ); }
case 1: { GameTextForPlayer( playerid, "Class 1", 7000, 3 ); }
default: { GameTextForPlayer( playerid, "Civilian", 7000, 3 ); }
}
return 1;
}
Remember: Classid's work on the order of classes created on the gamemode init callback.