Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- #define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- #define Yellow 0xFFFF00AA = {FFFF00}
- #define Red 0x9D000096 = {9D0000}
- #define COLOR_WHITE1 0xFFFFFFFF = {FFFFFF}
- #define COLOR_WHITE 0xFFFFFFFF
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" City Teleports Dialog by wizzi");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" City Teleports Dialog by wizzi");
- print("----------------------------------\n");
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/teleports", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"{9D0000}Te{FFFFFF}le{9D0000}po{FFFFFF}rt{9D0000}'s","{FFFF00}Los {FFFFFF}Santos\n{FFFF00}San {FFFFFF}Fierro\n{FFFF00}Las {FFFFFF}Venturas","Select","Cancel");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch(dialogid)
- {
- case 1:
- {
- if(!response)
- {
- SendClientMessage(playerid, 0xFF0000FF, "You cancelled.");
- return 1; // We processed it
- }
- switch(listitem)
- {
- case 0:
- {
- SetPlayerPos(playerid,1529.6,-1691.2,13.3);
- SendClientMessage(playerid,COLOR_WHITE,"Welcome to {88AA88}Los Santos");
- }
- case 1:
- {
- SetPlayerPos(playerid,-1417.0,-295.8,14.1);
- SendClientMessage(playerid,COLOR_WHITE,"Welcome to {88AA88}San Fierro");
- }
- case 2:
- {
- SetPlayerPos(playerid,1699.2,1435.1, 10.7);
- SendClientMessage(playerid,COLOR_WHITE,"Welcome to {88AA88}Las Venturas");
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment