Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Because some people don't believe
- #include <a_samp>
- #include <zcmd>
- main() {}
- new PlayerText:A;
- new PlayerText:B;
- new PlayerText:C;
- public OnPlayerConnect(playerid)
- {
- if(playerid == 0)
- {
- // This time we create A first
- A = CreatePlayerTextDraw(playerid, 20.000000, 190.000000, "A");
- PlayerTextDrawAlignment(playerid, A, 2);
- PlayerTextDrawBackgroundColor(playerid, A, 255);
- PlayerTextDrawFont(playerid, A, 2);
- PlayerTextDrawLetterSize(playerid, A, 0.460000, 2.000000);
- PlayerTextDrawColor(playerid, A, -1);
- PlayerTextDrawSetOutline(playerid, A, 1);
- PlayerTextDrawSetProportional(playerid, A, 1);
- PlayerTextDrawUseBox(playerid, A, 1);
- PlayerTextDrawBoxColor(playerid, A, 255);
- PlayerTextDrawTextSize(playerid, A, 0.000000, 20.000000);
- B = CreatePlayerTextDraw(playerid, 60.000000, 190.000000, "B");
- PlayerTextDrawAlignment(playerid, B, 2);
- PlayerTextDrawBackgroundColor(playerid, B, 255);
- PlayerTextDrawFont(playerid, B, 2);
- PlayerTextDrawLetterSize(playerid, B, 0.460000, 2.000000);
- PlayerTextDrawColor(playerid, B, -1);
- PlayerTextDrawSetOutline(playerid, B, 1);
- PlayerTextDrawSetProportional(playerid, B, 1);
- PlayerTextDrawUseBox(playerid, B, 1);
- PlayerTextDrawBoxColor(playerid, B, 255);
- PlayerTextDrawTextSize(playerid, B, 0.000000, 20.000000);
- C = CreatePlayerTextDraw(playerid, 100.000000, 190.000000, "C");
- PlayerTextDrawAlignment(playerid, C, 2);
- PlayerTextDrawBackgroundColor(playerid, C, 255);
- PlayerTextDrawFont(playerid, C, 2);
- PlayerTextDrawLetterSize(playerid, C, 0.460000, 2.000000);
- PlayerTextDrawColor(playerid, C, -1);
- PlayerTextDrawSetOutline(playerid, C, 1);
- PlayerTextDrawSetProportional(playerid, C, 1);
- PlayerTextDrawUseBox(playerid, C, 1);
- PlayerTextDrawBoxColor(playerid, C, 255);
- PlayerTextDrawTextSize(playerid, C, 0.000000, 20.000000);
- }
- else
- {
- // This time we create C first
- C = CreatePlayerTextDraw(playerid, 100.000000, 190.000000, "C");
- PlayerTextDrawAlignment(playerid, C, 2);
- PlayerTextDrawBackgroundColor(playerid, C, 255);
- PlayerTextDrawFont(playerid, C, 2);
- PlayerTextDrawLetterSize(playerid, C, 0.460000, 2.000000);
- PlayerTextDrawColor(playerid, C, -1);
- PlayerTextDrawSetOutline(playerid, C, 1);
- PlayerTextDrawSetProportional(playerid, C, 1);
- PlayerTextDrawUseBox(playerid, C, 1);
- PlayerTextDrawBoxColor(playerid, C, 255);
- PlayerTextDrawTextSize(playerid, C, 0.000000, 20.000000);
- A = CreatePlayerTextDraw(playerid, 20.000000, 190.000000, "A");
- PlayerTextDrawAlignment(playerid, A, 2);
- PlayerTextDrawBackgroundColor(playerid, A, 255);
- PlayerTextDrawFont(playerid, A, 2);
- PlayerTextDrawLetterSize(playerid, A, 0.460000, 2.000000);
- PlayerTextDrawColor(playerid, A, -1);
- PlayerTextDrawSetOutline(playerid, A, 1);
- PlayerTextDrawSetProportional(playerid, A, 1);
- PlayerTextDrawUseBox(playerid, A, 1);
- PlayerTextDrawBoxColor(playerid, A, 255);
- PlayerTextDrawTextSize(playerid, A, 0.000000, 20.000000);
- B = CreatePlayerTextDraw(playerid, 60.000000, 190.000000, "B");
- PlayerTextDrawAlignment(playerid, B, 2);
- PlayerTextDrawBackgroundColor(playerid, B, 255);
- PlayerTextDrawFont(playerid, B, 2);
- PlayerTextDrawLetterSize(playerid, B, 0.460000, 2.000000);
- PlayerTextDrawColor(playerid, B, -1);
- PlayerTextDrawSetOutline(playerid, B, 1);
- PlayerTextDrawSetProportional(playerid, B, 1);
- PlayerTextDrawUseBox(playerid, B, 1);
- PlayerTextDrawBoxColor(playerid, B, 255);
- PlayerTextDrawTextSize(playerid, B, 0.000000, 20.000000);
- }
- new szLuls[64];
- format(szLuls, 64, "A: %i B: %i C: %i", _:A, _:B, _:C);
- SendClientMessage(playerid, -1, szLuls);
- PlayerTextDrawShow(playerid, A);
- PlayerTextDrawShow(playerid, B);
- PlayerTextDrawShow(playerid, C);
- return 1;
- }
- CMD:delb(playerid, params[])
- {
- PlayerTextDrawDestroy(playerid, B);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment