Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.22 KB | None | 0 0
  1. //At the top of script
  2. new Text:ClassSection[MAX_PLAYERS];
  3.  
  4.  
  5. //OnGameModeInit
  6.  
  7.     //Class Section
  8.     for(new i = 0; i<MAX_PLAYERS; i++){
  9.     ClassSection[i] = TextDrawCreate(000.000000,000.000000," ");//The position is correct i just made it 000 :P
  10.     TextDrawAlignment(ClassSection[i],0);
  11.     TextDrawBackgroundColor(ClassSection[0],color);
  12.     TextDrawFont(ClassSection[i],3);
  13.     TextDrawLetterSize(ClassSection[i],0.399999,1.600000);
  14.     TextDrawColor(ClassSection[i], clolr);
  15.     TextDrawSetOutline(ClassSection[i],1);
  16.     TextDrawSetProportional(ClassSection[i],1);}
  17.  
  18. public OnPlayerRequestClass(playerid, classid)
  19. {
  20.     TextDrawShowForPlayer(playerid, ClassSection[playerid]);
  21.  
  22.     switch (classid) {
  23.     case 0..3:  {
  24.     TextDrawSetString(ClassSection[playerid], "Team");}
  25.     case 4..7:  {
  26.         TextDrawSetString(ClassSection[playerid], "Team");}
  27.     case 8..10: {
  28.     TextDrawSetString(ClassSection[playerid], "Team");}
  29.     case 11..14:{
  30.         TextDrawSetString(ClassSection[playerid], "Team");}
  31.     case 15..21:{
  32.         TextDrawSetString(ClassSection[playerid], "Team");}}
  33.     return 1;
  34. }
  35.  
  36. public OnPlayerSpawn(playerid)
  37. {
  38.     TextDrawHideForPlayer(playerid,  ClassSection[playerid]);
  39.     return 1;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement