Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* in cima */
- new Text:Punteggio[MAX_PLAYERS];
- public OnGameModeInit()
- {
- new score[128];
- new playerid;
- SetGameModeText("iParix");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- format(score, sizeof(score), "Punteggio: %d",GetPlayerScore(playerid));
- Punteggio[playerid] = TextDrawCreate(500.000000, 100.000000, score);
- TextDrawBackgroundColor(Punteggio[playerid], 255);
- TextDrawFont(Punteggio[playerid], 1);
- TextDrawLetterSize(Punteggio[playerid], 0.500000, 1.000000);
- TextDrawColor(Punteggio[playerid], 65535);
- TextDrawSetOutline(Punteggio[playerid], 0);
- TextDrawSetProportional(Punteggio[playerid], 1);
- TextDrawSetShadow(Punteggio[playerid], 1);
- TextDrawUseBox(Punteggio[playerid], 1);
- TextDrawBoxColor(Punteggio[playerid], -65281);
- TextDrawTextSize(Punteggio[playerid], 620.000000, 0.000000);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- TextDrawDestroy(Punteggio[playerid]);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- TextDrawShowForPlayer(playerid, Punteggio[playerid]);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement