Guest User

errors -_-

a guest
May 13th, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.85 KB | None | 0 0
  1. #define FILTERSCRIPT
  2. #define DIALOG_MAIN 1
  3. #define DIALOG_SHOP 2
  4. #define DIALOG_AMU 3
  5. #define DIALOG_HOUSE 4
  6. #define DIALOG_MISSIONS 5
  7. #define DIALOG_SAFE 6
  8. #define DIALOG_FOOD 7
  9. #define DIALOG_CASINO
  10. #define DIALOG_OTHER
  11.  
  12. #include <a_samp>
  13.  
  14. #if defined FILTERSCRIPT
  15.  
  16. public OnFilterScriptInit()
  17. {
  18.     print("\n--------------------------------------");
  19.     print(" An Interior script by thefatshizms");
  20.     print("--------------------------------------\n");
  21.     return 1;
  22. }
  23.  
  24. public OnFilterScriptExit()
  25. {
  26.     return 1;
  27. }
  28. public OnPlayerConnect(playerid)
  29. {
  30.     SendClientMessage(playerid, 0xFF0000, "you have the interior filterscript loaded do /interiors");
  31.     return 1;
  32. }
  33.  
  34. public OnPlayerDisconnect(playerid, reason)
  35. {
  36.     return 1;
  37. }
  38.  
  39. public OnPlayerSpawn(playerid)
  40. {
  41.     return 1;
  42. }
  43.  
  44. public OnPlayerDeath(playerid, killerid, reason)
  45. {
  46.     return 1;
  47. }
  48.  
  49. public OnVehicleSpawn(vehicleid)
  50. {
  51.     return 1;
  52. }
  53.  
  54. public OnVehicleDeath(vehicleid, killerid)
  55. {
  56.     return 1;
  57. }
  58.  
  59. public OnPlayerText(playerid, text[])
  60. {
  61.     return 1;
  62. }
  63.  
  64. public OnPlayerCommandText(playerid, cmdtext[])
  65. {
  66.     if (strcmp("/interiors", cmdtext, true, 10) == 0)
  67.     {
  68.         ShowPlayerDialog(playerid, DIALOG_MAIN, DIALOG_STYLE_LIST, "{FF0000}Interior teleports", "{00FF00}Shops\n{00FF00}Amunations\n{00FF00}Houses\n{00FF00}Mission interior's\n{00FF00}Safe houses\n{00FF00}Food\n{00FF00}Casinos\n{00FF00}Other", "teleport", "cancel");
  69.  
  70.         return 1;
  71.     }
  72.     return 0;
  73. }
  74.  
  75. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  76. {
  77.     return 1;
  78. }
  79.  
  80. public OnPlayerExitVehicle(playerid, vehicleid)
  81. {
  82.     return 1;
  83. }
  84.  
  85. public OnPlayerStateChange(playerid, newstate, oldstate)
  86. {
  87.     return 1;
  88. }
  89.  
  90. public OnPlayerEnterCheckpoint(playerid)
  91. {
  92.     return 1;
  93. }
  94.  
  95. public OnPlayerLeaveCheckpoint(playerid)
  96. {
  97.     return 1;
  98. }
  99.  
  100. public OnPlayerEnterRaceCheckpoint(playerid)
  101. {
  102.     return 1;
  103. }
  104.  
  105. public OnPlayerLeaveRaceCheckpoint(playerid)
  106. {
  107.     return 1;
  108. }
  109.  
  110. public OnRconCommand(cmd[])
  111. {
  112.     return 1;
  113. }
  114.  
  115. public OnPlayerRequestSpawn(playerid)
  116. {
  117.     return 1;
  118. }
  119.  
  120. public OnObjectMoved(objectid)
  121. {
  122.     return 1;
  123. }
  124.  
  125. public OnPlayerObjectMoved(playerid, objectid)
  126. {
  127.     return 1;
  128. }
  129.  
  130. public OnPlayerPickUpPickup(playerid, pickupid)
  131. {
  132.     return 1;
  133. }
  134.  
  135. public OnVehicleMod(playerid, vehicleid, componentid)
  136. {
  137.     return 1;
  138. }
  139.  
  140. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  141. {
  142.     return 1;
  143. }
  144.  
  145. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  146. {
  147.     return 1;
  148. }
  149.  
  150. public OnPlayerSelectedMenuRow(playerid, row)
  151. {
  152.     return 1;
  153. }
  154.  
  155. public OnPlayerExitedMenu(playerid)
  156. {
  157.     return 1;
  158. }
  159.  
  160. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  161. {
  162.     return 1;
  163. }
  164.  
  165. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  166. {
  167.     return 1;
  168. }
  169.  
  170. public OnRconLoginAttempt(ip[], password[], success)
  171. {
  172.     return 1;
  173. }
  174.  
  175. public OnPlayerUpdate(playerid)
  176. {
  177.     return 1;
  178. }
  179.  
  180. public OnPlayerStreamIn(playerid, forplayerid)
  181. {
  182.     return 1;
  183. }
  184.  
  185. public OnPlayerStreamOut(playerid, forplayerid)
  186. {
  187.     return 1;
  188. }
  189.  
  190. public OnVehicleStreamIn(vehicleid, forplayerid)
  191. {
  192.     return 1;
  193. }
  194.  
  195. public OnVehicleStreamOut(vehicleid, forplayerid)
  196. {
  197.     return 1;
  198. }
  199.  
  200. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  201. {
  202.     if(dialogid == DIALOG_MAIN)
  203.     {
  204.         if(!response) return SendClientMessage(playerid, -1, "you have closed the dialog do /interiors to bring it up again");
  205.         if(response)
  206.         {
  207.             switch(listitem)
  208.             {
  209.                 case 0:
  210.                 {
  211.                         ShowPlayerDialog(playerid, DIALOG_SHOP, DIALOG_STYLE_LIST, "{FF0000}Shops", "{00FF00}24/7 1\n{00FF00}24/7 2\n{00F00}24/7 3\n{00FF00}24/7 4\n{00FF00}24/7 5\n{00FF00}24/7 6", "teleport", "cancel");
  212.                         {
  213.  
  214.     return 1;
  215. }
  216. #endif
  217.  
  218. // to the people who tring to help with the code im trying to make a dialog inside dialog thing if u know what i mean like on main dialog if i press shops it will come up with another dialog
Advertisement
Add Comment
Please, Sign In to add comment