Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CMD:telelist(playerid, params[])
  2. {
  3. Debug("ShowCallback(playerid = %d, position_x = %f, position_y = %f, position_z = %f, rotation = %f, interior = %d)", playerid, position_x, position_y, position_z, rotation, interior); Debug("gTeleTeleports(playerid = %d, position_x = %f, position_y = %f, position_z = %f, rotation = %f, interior = %d)", playerid, position_x, position_y, position_z, rotation, interior);
  4.  
  5. inline Response(pid, dialogid, response, listitem, string:inputtext[])
  6. {
  7. #pragma unused pid, dialogid, response, listitem, inputtext
  8.  
  9. TeleportPlayer(playerid, gTeleTeleports[listitem][0], gTeleTeleports[listitem][1], gTeleTeleports[listitem][2]);
  10. MsgTag(playerid, TAG_INFO, "You have teleported to teleport " COLOR_EMBED_LIGHTYELLOW "%d" COLOR_EMBED_WHITE ".", listitem + 1);
  11. }
  12.  
  13. Dialog_ShowCallback(playerid, using inline Response, DIALOG_STYLE_LIST, "Tele list",
  14. "\
  15. /tele 1 - San Fierro Naval Base\n\
  16. /tele 2 - San Fierro Docks\n\
  17. /tele 3 - San Fierro Driving School\n\
  18. /tele 4 - Mount Chiliad\n\
  19. /tele 5 - Grove Street\n\
  20. /tele 6 - Ocean Docks\n\
  21. /tele 7 - Hunter Quarry\n\
  22. /tele 8 - Los Santos Storm Canal\n\
  23. /tele 9 - Glen Park\n\
  24. /tele 10 - Los Santos Shopping Center\n\
  25. /tele 11 - The Sherman Dam\n\
  26. /tele 12 - Las Venturas Police Department\n\
  27. /tele 13 - Los Santos Pier\n\
  28. /tele 14 - Camping Park\n\
  29. /tele 15 - Los Santos Studio\n\
  30. /tele 16 - Area 51\n\
  31. /tele 17 - Four Dragons Casino\n\
  32. /tele 18 - Caligula's Casino\n\
  33. /tele 19 - The Pointy Building\n\
  34. /tele 20 - Star Building\
  35. ", "Teleport", "Cancel");
  36.  
  37. return COMMAND_SUCCESS;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement