Advertisement
Parix

Punteggio

Sep 21st, 2014
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.07 KB | None | 0 0
  1. /* in cima */
  2. new Text:Punteggio[MAX_PLAYERS];
  3.  
  4. public OnGameModeInit()
  5. {
  6.     new score[128];
  7.     new playerid;
  8.     SetGameModeText("iParix");
  9.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  10.    
  11.     format(score, sizeof(score), "Punteggio: %d",GetPlayerScore(playerid));
  12.     Punteggio[playerid] = TextDrawCreate(500.000000, 100.000000, score);
  13.     TextDrawBackgroundColor(Punteggio[playerid], 255);
  14.     TextDrawFont(Punteggio[playerid], 1);
  15.     TextDrawLetterSize(Punteggio[playerid], 0.500000, 1.000000);
  16.     TextDrawColor(Punteggio[playerid], 65535);
  17.     TextDrawSetOutline(Punteggio[playerid], 0);
  18.     TextDrawSetProportional(Punteggio[playerid], 1);
  19.     TextDrawSetShadow(Punteggio[playerid], 1);
  20.     TextDrawUseBox(Punteggio[playerid], 1);
  21.     TextDrawBoxColor(Punteggio[playerid], -65281);
  22.     TextDrawTextSize(Punteggio[playerid], 620.000000, 0.000000);
  23.     return 1;
  24. }
  25.  
  26.  
  27. public OnPlayerDisconnect(playerid, reason)
  28. {
  29.     TextDrawDestroy(Punteggio[playerid]);
  30.     return 1;
  31. }
  32.  
  33. public OnPlayerSpawn(playerid)
  34. {
  35.     TextDrawShowForPlayer(playerid, Punteggio[playerid]);
  36.     return 1;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement