Advertisement
Guest User

Interior Houses - Guide EN

a guest
Mar 8th, 2012
752
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 6.03 KB | None | 0 0
  1. /*                       Zenon City Role Play.
  2. -----------------------------------------------------------------------------
  3. FS Interior Houses - English version                                        -
  4. -----------------------------------------------------------------------------
  5. Credits:                                                                    -
  6.         * Thiadmer - PAWN.                                                  -
  7.         * Kye/Kalcor - SA:MP.                                               -
  8.         * SA:MP Team.                                                       -
  9.         * Junkbuster - FilterScript [IH] (Interior Houses).                 -
  10. -----------------------------------------------------------------------------
  11. Note:                                                                       -
  12.         * This is a guide for most houses interiors of GTA SA.              -
  13. -----------------------------------------------------------------------------
  14. Instalation:                                                                -
  15.                                                                             -
  16.         1. Compile the file and get GuideHouses.amx                         -
  17.         2. Open server.cfg                                                  -
  18.         3. In filterscripts line, add GuideHouses                           -
  19.         4. Execute samp-server                                              -
  20.                                                                             -
  21.         Note: You can load the FS from the server, In game:                 -
  22.                                                                             -
  23.         * /rcon login ***** = Your pass                                     -
  24.         * /rcon loadfs GuideHouses                                          -
  25. -----------------------------------------------------------------------------
  26. Commands:                                                                   -
  27.         /inthouses                                                          -
  28. -----------------------------------------------------------------------------
  29. Created on Friday, February 10, 2012.                                       -
  30. Released on Sunday February 27, 2012.                                       -
  31. -----------------------------------------------------------------------------
  32. */
  33.  
  34. #include <a_samp>
  35.  
  36. #define COLOR_WHITE 0xFFFFFFAA
  37. #define HOUSES0 9900
  38. #define HOUSES 9800
  39. #define INT 38 // Interiors
  40.  
  41. new selection[MAX_PLAYERS];
  42.  
  43. enum IntHouses{
  44.     interior,
  45.     Float:PosX,
  46.     Float:PosY,
  47.     Float:PosZ,
  48.     interiorname[24]
  49. }
  50.  
  51. new Houses[INT][IntHouses] = {
  52. {0,1479.2269,-1699.7888,14.0469,"Los Santos"},
  53. {2,2447.8704,-1704.4509,1013.5078,"Ryder´s House"},
  54. {3,2496.0549,-1695.1749,1014.7422,"Johnson´s House"},
  55. {5,1267.8407,-776.9587,1091.9063,"MaddDog Mansion"},
  56. {5,2233.6919,-1112.8107,1050.8828,"Safe House 1"},
  57. {6,2194.7900,-1204.3500,1049.0234,"Safe House 2"},
  58. {9,2319.1272,-1023.9562,1050.2109,"Safe House 3"},
  59. {10,2261.0977,-1137.8833,1050.6328,"Safe House 4"},
  60. {3,234.6087,1187.8195,1080.2578,"Burglary X1"},
  61. {2,225.5707,1240.0643,1082.1406,"Burglary X2"},
  62. {1,224.288,1289.1907,1082.1406,"Burglary X3"},
  63. {5,239.2819,1114.1991,1080.9922,"Burglary X4"},
  64. {15,295.1391,1473.3719,1080.2578,"Burglary Houses"},
  65. {12,446.3247,509.9662,1001.4195,"Motel Room"},
  66. {2,446.626,1397.738,1084.3047,"Pair Burglary"},
  67. {5,227.7559,1114.3844,1080.9922,"Burglary X11"},
  68. {4,261.1165,1287.2197,1080.2578,"Burglary  X12"},
  69. {4,306.1966,307.819,1003.3047,"Michelle's Love Nest"},
  70. {10,24.3769,1341.1829,1084.375,"Burglary X14"},
  71. {4,221.6766,1142.4962,1082.6094,"Burglary X13"},
  72. {12,2323.7063,-1147.6509,1050.7101,"Unused House"},
  73. {6,344.9984,307.1824,999.1557,"Millie's Room"},
  74. {4,-262.1759,1456.6158,1084.3672,"Burglary X15"},
  75. {5,22.861,1404.9165,1084.4297,"Burglary X16"},
  76. {5,140.3679,1367.8837,1083.8621,"Burglary X17"},
  77. {6,234.2826,1065.229,1084.2101,"House X18"},
  78. {6,-68.5145,1353.8485,1080.2109,"House X19"},
  79. {15,-285.2511,1471.197,1084.375,"House X20"},
  80. {8,2807.3604,-1171.7048,1025.5703,"Colonel Furhberger"},
  81. {1,2216.1282,-1076.3052,1050.4844,"The Camel's Safehouse"},
  82. {8,2365.1089,-1133.0795,1050.875,"Verdant Bluffs House"},
  83. {8,-42.5267,1408.23,1084.4297,"Burglary X21"},
  84. {11,2282.9099,-1138.2900,1050.8984,"Willowfield House"},
  85. {9,84.9244,1324.2983,1083.8594,"Burglary X22"},
  86. {9,260.7421,1238.2261,1084.2578,"Burglary X23"},
  87. {2,269.6405,305.9512,999.1484,"Katie's Lovenest"},
  88. {5,322.5014,303.6906,999.1484,"Barbara's Love nest"},
  89. {1,245.2307,304.7632,999.1484,"Denise's Bedroom"}
  90. };
  91.  
  92. public OnFilterScriptInit(){
  93.     print("\n--------------------------------------");
  94.     print(" Loading . . . FS Interior Houses By Junkbuster");
  95.     print("--------------------------------------\n");
  96.     return 1;
  97. }
  98.  
  99. public OnFilterScriptExit(){
  100.     print("\n--------------------------------------");
  101.     print(" Finishing FS Interior Houses ....");
  102.     print("--------------------------------------\n");
  103.     return 1;
  104. }
  105.  
  106.  
  107. public OnPlayerCommandText(playerid, cmdtext[]){
  108.     if(strcmp("/inthouses", cmdtext, true, 10) == 0){
  109.         new text[] = "In the next list, select where to go.";
  110.         return ShowPlayerDialog(playerid, HOUSES0, DIALOG_STYLE_MSGBOX, "Interior Houses", text, "Continue", "Cancel");
  111.     }
  112.     return 0;
  113. }
  114.  
  115. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){
  116.     switch(dialogid){
  117.         case HOUSES0:{
  118.             if(response){
  119.                 selection[playerid] = listitem;
  120.                 new text[1024];
  121.                 for(new x;x<sizeof(Houses);x++){
  122.                     format(text, sizeof(text), "%s%s || (%d)\n", text, Houses[x][interiorname], Houses[x][interior]);
  123.                 }
  124.                 ShowPlayerDialog(playerid, HOUSES, DIALOG_STYLE_LIST, "Interior Name || Interior ID", text, "Go!", "Exit");
  125.             }
  126.         }
  127.         case HOUSES:{
  128.             if(response){
  129.                 new text[25];
  130.                 SetPlayerPos(playerid, Houses[listitem][PosX], Houses[listitem][PosY], Houses[listitem][PosZ]);
  131.                 SetPlayerInterior(playerid, Houses[listitem][interior]);
  132.                 SetPlayerVirtualWorld(playerid, 0);
  133.                 format(text, sizeof(text), "%s", Houses[listitem][interiorname]);
  134.                 SendClientMessage(playerid, COLOR_WHITE, text);
  135.             }
  136.         }
  137.     }
  138.     return 1;
  139. }
  140. /*--------------------------------------------------------------------------------------------------------------------------------*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement