Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- FS feito por João Guilherme Büttenbender - GuiButt
- */
- #include <a_samp>
- new Text:Box1;
- new Text:Box2;
- new Text:Box3;
- new Text:Box4;
- new PlayerText:Dinheiro[MAX_PLAYERS];
- new PlayerText:Estrelas[MAX_PLAYERS];
- public OnPlayerConnect(playerid)
- {
- Box1 = TextDrawCreate (613.888793, 79.083328, "usebox");
- TextDrawLetterSize(Box1, 0.000000, 5.277024);
- TextDrawTextSize(Box1, 494.163787, 0.000000);
- TextDrawAlignment(Box1, 1);
- TextDrawColor(Box1, 0);
- TextDrawUseBox(Box1, true);
- TextDrawBoxColor(Box1, 255);
- TextDrawSetShadow(Box1, 0);
- TextDrawSetOutline(Box1, 0);
- TextDrawFont(Box1, 0);
- Box2 = TextDrawCreate (612.014587, 80.833335, "usebox");
- TextDrawLetterSize(Box2, 0.000000, 4.868518);
- TextDrawTextSize(Box2, 496.038085, 0.000000);
- TextDrawAlignment(Box2, 1);
- TextDrawColor(Box2, 84214783);
- TextDrawUseBox(Box2, true);
- TextDrawBoxColor(Box2, 84214783);
- TextDrawSetShadow(Box2, 0);
- TextDrawSetOutline(Box2, 0);
- TextDrawFont(Box2, 0);
- Box3 = TextDrawCreate (500.849487, 81.083282, "R$");
- TextDrawLetterSize(Box3, 0.456000, 2.000000);
- TextDrawAlignment(Box3, 1);
- TextDrawColor(Box3, 205259007);
- TextDrawSetShadow(Box3, 0);
- TextDrawSetOutline(Box3, 1);
- TextDrawBackgroundColor(Box3, 255);
- TextDrawFont(Box3, 3);
- TextDrawSetProportional(Box3, 1);
- Box4 = TextDrawCreate (500.849212, 103.833312, "estrelas");
- TextDrawLetterSize(Box4, 0.456000, 2.000000);
- TextDrawAlignment(Box4, 1);
- TextDrawColor(Box4, 2085617919);
- TextDrawUseBox(Box4, true);
- TextDrawBoxColor(Box4, 0);
- TextDrawSetShadow(Box4, 0);
- TextDrawSetOutline(Box4, 1);
- TextDrawBackgroundColor(Box4, 255);
- TextDrawFont(Box4, 3);
- TextDrawSetProportional(Box4, 1);
- Dinheiro[playerid] = CreatePlayerTextDraw ( playerid, 522.784057, 81.083328, "000000000");
- PlayerTextDrawLetterSize(playerid, Dinheiro[playerid], 0.456000, 2.000000);
- PlayerTextDrawAlignment(playerid, Dinheiro[playerid], 1);
- PlayerTextDrawColor(playerid, Dinheiro[playerid], 205259007);
- PlayerTextDrawUseBox(playerid, Dinheiro[playerid], true);
- PlayerTextDrawBoxColor(playerid, Dinheiro[playerid], 0);
- PlayerTextDrawSetShadow(playerid, Dinheiro[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Dinheiro[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Dinheiro[playerid], 255);
- PlayerTextDrawFont(playerid, Dinheiro[playerid], 3);
- PlayerTextDrawSetProportional(playerid, Dinheiro[playerid], 1);
- Estrelas[playerid] = CreatePlayerTextDraw ( playerid, 580.497802, 103.833335, "000");
- PlayerTextDrawLetterSize(playerid, Estrelas[playerid], 0.456000, 2.000000);
- PlayerTextDrawAlignment(playerid, Estrelas[playerid], 1);
- PlayerTextDrawColor(playerid, Estrelas[playerid], 2085617919);
- PlayerTextDrawUseBox(playerid, Estrelas[playerid], true);
- PlayerTextDrawBoxColor(playerid, Estrelas[playerid], 0);
- PlayerTextDrawSetShadow(playerid, Estrelas[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Estrelas[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Estrelas[playerid], 255);
- PlayerTextDrawFont(playerid, Estrelas[playerid], 3);
- PlayerTextDrawSetProportional(playerid, Estrelas[playerid], 1);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- TextDrawShowForAll(Box1);
- TextDrawShowForAll(Box2);
- TextDrawShowForAll(Box3);
- TextDrawShowForAll(Box4);
- PlayerTextDrawShow(playerid, Dinheiro[playerid]);
- PlayerTextDrawShow(playerid, Estrelas[playerid]);
- return 1;
- }
- public OnPlayerRequestClass(playerid)
- {
- TextDrawHideForAll(Box1);
- TextDrawHideForAll(Box2);
- TextDrawHideForAll(Box3);
- TextDrawHideForAll(Box4);
- PlayerTextDrawHide(playerid, Dinheiro[playerid]);
- PlayerTextDrawHide(playerid, Estrelas[playerid]);
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- new string[32];
- format(string, sizeof(string), "%09d", GetPlayerMoney(playerid));
- PlayerTextDrawSetString(playerid, Dinheiro[playerid] ,string );
- format(string, sizeof(string), "%d", GetPlayerWantedLevel(playerid));
- PlayerTextDrawSetString(playerid, Estrelas[playerid] ,string );
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement