Creating a Textdraw on PlayerRequestClass
#2

I suggest you use GameTextForPlayer instead of textdraws. It's easier and you don't have to create anything. Here's an example:

pawn Code:
public OnPlayerRequestClass(playerid, classid)
{
    switch(classid)
    {
        case 1, 2, 3: GameTextForPlayer(playerid, "~w~Civilan", 3000, 4);
        case 4, 5, 6: GameTextForPlayer(playerid, "~b~Police", 3000, 4);
        case 6, 7, 8: GameTextForPlayer(playerid, "~r~Mafia", 3000, 4);
    }
    //The class id will depend on the order you add the classes under OnGameModeInit.
    //The first AddPlayerClass will have the classid 0 the second will have the classid 1 and so on.
    return 1;
}
Reply


Messages In This Thread
Creating a Textdraw on PlayerRequestClass - by HazardGaming - 08.04.2012, 14:26
Re: Creating a Textdraw on PlayerRequestClass - by SpiritEvil - 08.04.2012, 14:33
Re: Creating a Textdraw on PlayerRequestClass - by [DOG]irinel1996 - 08.04.2012, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)