Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define <zcmd>
- #define <sscanf2>
- #define Teleport 1
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == Teleport)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerPos(playerid, x, y, z); // ex: SetPlayerPos(playerid, 1529.6, -1691.2, 13.3);
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, x, y, z);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid, x, y, z);
- }
- if(listitem == 3)
- {
- SetPlayerPos(playerid, x, y, z);
- }
- }
- }
- }
- CMD:tp(playerid, params[])
- {
- ShowPlayerDialog(playerid, Teleport, DIALOG_STYLE_LIST, "Teleports", "teleport 1\n teleport 2\n teleport 3",
- "Teleport", "Close");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment