Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new PlayerText:Escolha[MAX_PLAYERS][6];
- public OnGameModeInit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- Escolha[playerid][0] = CreatePlayerTextDraw(playerid, 209.000000, 142.000000, "__");
- PlayerTextDrawBackgroundColor(playerid, Escolha[playerid][0], 255);
- PlayerTextDrawFont(playerid, Escolha[playerid][0], 1);
- PlayerTextDrawLetterSize(playerid, Escolha[playerid][0], 0.500000, 10.000000);
- PlayerTextDrawColor(playerid, Escolha[playerid][0], -1);
- PlayerTextDrawSetOutline(playerid, Escolha[playerid][0], 0);
- PlayerTextDrawSetProportional(playerid, Escolha[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, Escolha[playerid][0], 1);
- PlayerTextDrawUseBox(playerid, Escolha[playerid][0], 1);
- PlayerTextDrawBoxColor(playerid, Escolha[playerid][0], 2038004218);
- PlayerTextDrawTextSize(playerid, Escolha[playerid][0], 78.000000, 6.000000);
- Escolha[playerid][1] = CreatePlayerTextDraw(playerid, 379.000000, 142.000000, "__");
- PlayerTextDrawBackgroundColor(playerid, Escolha[playerid][1], 255);
- PlayerTextDrawFont(playerid, Escolha[playerid][1], 1);
- PlayerTextDrawLetterSize(playerid, Escolha[playerid][1], 0.500000, 10.000000);
- PlayerTextDrawColor(playerid, Escolha[playerid][1], -1);
- PlayerTextDrawSetOutline(playerid, Escolha[playerid][1], 0);
- PlayerTextDrawSetProportional(playerid, Escolha[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, Escolha[playerid][1], 1);
- PlayerTextDrawUseBox(playerid, Escolha[playerid][1], 1);
- PlayerTextDrawBoxColor(playerid, Escolha[playerid][1], 2038004223);
- PlayerTextDrawTextSize(playerid, Escolha[playerid][1], 247.000000, 6.000000);
- Escolha[playerid][2] = CreatePlayerTextDraw(playerid, 542.000000, 142.000000, "__");
- PlayerTextDrawBackgroundColor(playerid, Escolha[playerid][2], 255);
- PlayerTextDrawFont(playerid, Escolha[playerid][2], 1);
- PlayerTextDrawLetterSize(playerid, Escolha[playerid][2], 0.500000, 10.000000);
- PlayerTextDrawColor(playerid, Escolha[playerid][2], -1);
- PlayerTextDrawSetOutline(playerid, Escolha[playerid][2], 0);
- PlayerTextDrawSetProportional(playerid, Escolha[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid, Escolha[playerid][2], 1);
- PlayerTextDrawUseBox(playerid, Escolha[playerid][2], 1);
- PlayerTextDrawBoxColor(playerid, Escolha[playerid][2], 1869574143);
- PlayerTextDrawTextSize(playerid, Escolha[playerid][2], 413.000000, 6.000000);
- Escolha[playerid][3] = CreatePlayerTextDraw(playerid, 209.000000, 265.000000, "__");
- PlayerTextDrawBackgroundColor(playerid, Escolha[playerid][3], 255);
- PlayerTextDrawFont(playerid, Escolha[playerid][3], 1);
- PlayerTextDrawLetterSize(playerid, Escolha[playerid][3], 0.500000, 10.000000);
- PlayerTextDrawColor(playerid, Escolha[playerid][3], -1);
- PlayerTextDrawSetOutline(playerid, Escolha[playerid][3], 0);
- PlayerTextDrawSetProportional(playerid, Escolha[playerid][3], 1);
- PlayerTextDrawSetShadow(playerid, Escolha[playerid][3], 1);
- PlayerTextDrawUseBox(playerid, Escolha[playerid][3], 1);
- PlayerTextDrawBoxColor(playerid, Escolha[playerid][3], 2038004218);
- PlayerTextDrawTextSize(playerid, Escolha[playerid][3], 78.000000, 6.000000);
- Escolha[playerid][4] = CreatePlayerTextDraw(playerid, 379.000000, 265.000000, "__");
- PlayerTextDrawBackgroundColor(playerid, Escolha[playerid][4], 255);
- PlayerTextDrawFont(playerid, Escolha[playerid][4], 1);
- PlayerTextDrawLetterSize(playerid, Escolha[playerid][4], 0.500000, 10.000000);
- PlayerTextDrawColor(playerid, Escolha[playerid][4], -1);
- PlayerTextDrawSetOutline(playerid, Escolha[playerid][4], 0);
- PlayerTextDrawSetProportional(playerid, Escolha[playerid][4], 1);
- PlayerTextDrawSetShadow(playerid, Escolha[playerid][4], 1);
- PlayerTextDrawUseBox(playerid, Escolha[playerid][4], 1);
- PlayerTextDrawBoxColor(playerid, Escolha[playerid][4], 2038004223);
- PlayerTextDrawTextSize(playerid, Escolha[playerid][4], 247.000000, 6.000000);
- Escolha[playerid][5] = CreatePlayerTextDraw(playerid, 542.000000, 265.000000, "__");
- PlayerTextDrawBackgroundColor(playerid, Escolha[playerid][5], 255);
- PlayerTextDrawFont(playerid, Escolha[playerid][5], 1);
- PlayerTextDrawLetterSize(playerid, Escolha[playerid][5], 0.500000, 10.000000);
- PlayerTextDrawColor(playerid, Escolha[playerid][5], -1);
- PlayerTextDrawSetOutline(playerid, Escolha[playerid][5], 0);
- PlayerTextDrawSetProportional(playerid, Escolha[playerid][5], 1);
- PlayerTextDrawSetShadow(playerid, Escolha[playerid][5], 1);
- PlayerTextDrawUseBox(playerid, Escolha[playerid][5], 1);
- PlayerTextDrawBoxColor(playerid, Escolha[playerid][5], 1869574143);
- PlayerTextDrawTextSize(playerid, Escolha[playerid][5], 413.000000, 6.000000);
- PlayerTextDrawSetSelectable(playerid, Escolha[playerid][0], 1);
- PlayerTextDrawSetSelectable(playerid, Escolha[playerid][1], 1);
- PlayerTextDrawSetSelectable(playerid, Escolha[playerid][2], 1);
- //PlayerTextDrawSetSelectable(playerid, Escolha[playerid][3], 1);
- //PlayerTextDrawSetSelectable(playerid, Escolha[playerid][4], 1);
- //PlayerTextDrawSetSelectable(playerid, Escolha[playerid][5], 1);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- InterpolateCameraPos(playerid, -2328.572021, 1456.048095, 141.509216, -2928.397460, 1388.436035, 164.589508, 15000);
- InterpolateCameraLookAt(playerid, -2332.968994, 1457.633422, 139.733627, -2924.312500, 1390.837646, 162.994110, 15000);
- SelectTextDraw(playerid, 0x00EEEEFF);
- for(new i = 0; i < sizeof(Escolha); i++)
- {
- PlayerTextDrawShow(playerid, Escolha[playerid][i]);
- }
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(newkeys == KEY_SUBMISSION)
- {
- SelectTextDraw(playerid, 0xFF4040AA);
- }
- return 1;
- }
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- if(playertextid == Escolha[playerid][0])
- {
- SetPlayerPos(playerid, 319.29999, 1027.2, 1943.2);
- }
- if(playertextid == Escolha[playerid][1])
- {
- SetPlayerPos(playerid, 368.39999, 160.5, 1026.59998);
- }
- if(playertextid == Escolha[playerid][2])
- {
- SetPlayerPos(playerid, 1479.09998, -693.90002, 96.5);
- }
- if(clickedid == Escolha[playerid][3])
- {
- SetPlayerPos(playerid, 319.29999, 319.29999, 323.2);
- }
- if(clickedid == Escolha[playerid][4])
- {
- SetPlayerPos(playerid, 319.23399, 342.2343, 23.3);
- }
- if(clickedid == Escolha[playerid][6])
- {
- SetPlayerPos(playerid, 232.2132, 123.2133, 32.3);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement