Help public OnPlayerRequestClass(playerid, classid)
#6

You have to order your classes then have to add each line a specific code.

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;
}
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)