Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new PlayerText:PhoneTXD[MAX_PLAYERS][6];
- public OnPlayerConnect(playerid)
- {
- //====== Celular
- PhoneTXD[playerid][0] = CreatePlayerTextDraw(playerid, 462.889007, 227.831146, "box");
- PlayerTextDrawLetterSize(playerid, PhoneTXD[playerid][0], 0.000000, 20.000001);
- PlayerTextDrawTextSize(playerid, PhoneTXD[playerid][0], 0.000000, 100.000000);
- PlayerTextDrawAlignment(playerid, PhoneTXD[playerid][0], 2);
- PlayerTextDrawColor(playerid, PhoneTXD[playerid][0], 255);
- PlayerTextDrawUseBox(playerid, PhoneTXD[playerid][0], 1);
- PlayerTextDrawBoxColor(playerid, PhoneTXD[playerid][0], 255);
- PlayerTextDrawSetShadow(playerid, PhoneTXD[playerid][0], 0);
- PlayerTextDrawBackgroundColor(playerid, PhoneTXD[playerid][0], 255);
- PlayerTextDrawFont(playerid, PhoneTXD[playerid][0], 1);
- PlayerTextDrawSetProportional(playerid, PhoneTXD[playerid][0], 1);
- PhoneTXD[playerid][1] = CreatePlayerTextDraw(playerid, 462.889129, 233.804519, "box");
- PlayerTextDrawLetterSize(playerid, PhoneTXD[playerid][1], 0.000000, 16.888872);
- PlayerTextDrawTextSize(playerid, PhoneTXD[playerid][1], 0.000000, 92.000000);
- PlayerTextDrawAlignment(playerid, PhoneTXD[playerid][1], 2);
- PlayerTextDrawColor(playerid, PhoneTXD[playerid][1], -1);
- PlayerTextDrawUseBox(playerid, PhoneTXD[playerid][1], 1);
- PlayerTextDrawBoxColor(playerid, PhoneTXD[playerid][1], -1);
- PlayerTextDrawSetShadow(playerid, PhoneTXD[playerid][1], 0);
- PlayerTextDrawBackgroundColor(playerid, PhoneTXD[playerid][1], 255);
- PlayerTextDrawFont(playerid, PhoneTXD[playerid][1], 1);
- PlayerTextDrawSetProportional(playerid, PhoneTXD[playerid][1], 1);
- PhoneTXD[playerid][2] = CreatePlayerTextDraw(playerid, 462.000122, 391.102111, "O");
- PlayerTextDrawLetterSize(playerid, PhoneTXD[playerid][2], 0.468444, 1.819023);
- PlayerTextDrawTextSize(playerid, PhoneTXD[playerid][2], 0.000000, 20.000000);
- PlayerTextDrawAlignment(playerid, PhoneTXD[playerid][2], 2);
- PlayerTextDrawColor(playerid, PhoneTXD[playerid][2], -1061109505);
- PlayerTextDrawUseBox(playerid, PhoneTXD[playerid][2], 1);
- PlayerTextDrawBoxColor(playerid, PhoneTXD[playerid][2], 0);
- PlayerTextDrawSetShadow(playerid, PhoneTXD[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, PhoneTXD[playerid][2], 1);
- PlayerTextDrawBackgroundColor(playerid, PhoneTXD[playerid][2], -1061109505);
- PlayerTextDrawFont(playerid, PhoneTXD[playerid][2], 1);
- PlayerTextDrawSetProportional(playerid, PhoneTXD[playerid][2], 1);
- PlayerTextDrawSetSelectable(playerid, PhoneTXD[playerid][2], true);
- PhoneTXD[playerid][3] = CreatePlayerTextDraw(playerid, 428.222381, 270.639801, "O");
- PlayerTextDrawLetterSize(playerid, PhoneTXD[playerid][3], 0.400000, 1.600000);
- PlayerTextDrawTextSize(playerid, PhoneTXD[playerid][3], 0.000000, 20.000000);
- PlayerTextDrawAlignment(playerid, PhoneTXD[playerid][3], 2);
- PlayerTextDrawColor(playerid, PhoneTXD[playerid][3], -16776961);
- PlayerTextDrawUseBox(playerid, PhoneTXD[playerid][3], 1);
- PlayerTextDrawBoxColor(playerid, PhoneTXD[playerid][3], 0);
- PlayerTextDrawSetShadow(playerid, PhoneTXD[playerid][3], 0);
- PlayerTextDrawSetOutline(playerid, PhoneTXD[playerid][3], 2);
- PlayerTextDrawBackgroundColor(playerid, PhoneTXD[playerid][3], 255);
- PlayerTextDrawFont(playerid, PhoneTXD[playerid][3], 1);
- PlayerTextDrawSetProportional(playerid, PhoneTXD[playerid][3], 1);
- PlayerTextDrawSetSelectable(playerid, PhoneTXD[playerid][3], true);
- PhoneTXD[playerid][4] = CreatePlayerTextDraw(playerid, 423.333435, 283.582122, "gps");
- PlayerTextDrawLetterSize(playerid, PhoneTXD[playerid][4], 0.180444, 0.848355);
- PlayerTextDrawAlignment(playerid, PhoneTXD[playerid][4], 1);
- PlayerTextDrawColor(playerid, PhoneTXD[playerid][4], 255);
- PlayerTextDrawSetShadow(playerid, PhoneTXD[playerid][4], 0);
- PlayerTextDrawBackgroundColor(playerid, PhoneTXD[playerid][4], 255);
- PlayerTextDrawFont(playerid, PhoneTXD[playerid][4], 1);
- PlayerTextDrawSetProportional(playerid, PhoneTXD[playerid][4], 1);
- PhoneTXD[playerid][5] = CreatePlayerTextDraw(playerid, 460.666748, 217.875473, ".");
- PlayerTextDrawLetterSize(playerid, PhoneTXD[playerid][5], 0.580444, 1.525333);
- PlayerTextDrawAlignment(playerid, PhoneTXD[playerid][5], 1);
- PlayerTextDrawColor(playerid, PhoneTXD[playerid][5], -1);
- PlayerTextDrawSetShadow(playerid, PhoneTXD[playerid][5], 0);
- PlayerTextDrawBackgroundColor(playerid, PhoneTXD[playerid][5], 255);
- PlayerTextDrawFont(playerid, PhoneTXD[playerid][5], 1);
- PlayerTextDrawSetProportional(playerid, PhoneTXD[playerid][5], 1);
- return 1;
- }
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- if(playertextid == PhoneTXD[playerid][4])
- {
- MEGAString[0] = EOS;
- EmDialog[playerid] = 1;
- strcat(MEGAString, "Los Santos\n");
- strcat(MEGAString, "San Fierro\n");
- strcat(MEGAString, "Caixas eletronicos\n");
- strcat(MEGAString, "Desativar\n");
- ShowPlayerDialog(playerid, D_GPSC, DIALOG_STYLE_LIST, "GPS", MEGAString, "Abrir", "Cancelar");
- }
- if(playertextid == PhoneTXD[playerid][3])
- {
- for(new i = 0; i < 6; i++)
- {
- PlayerTextDrawHide(playerid, PhoneTXD[playerid][i]);
- }
- CancelSelectTextDraw(playerid);
- }
- return 1;
- }
- CMD:cel(playerid)
- {
- if(Player[playerid][ipLogado] == false) return 1;
- if(Player[playerid][pAdmin] < 7) return SCM(playerid, -1, "Comando em fase de teste");
- for(new i = 0; i < 19; i++) PlayerTextDrawShow(playerid, PhoneTXD[playerid][i]);
- SelectTextDraw(playerid, Vermelho);
- return 1;
- }
Add Comment
Please, Sign In to add comment