08.04.2012, 14:33
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;
}