Guest User

Untitled

a guest
Feb 18th, 2011
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.03 KB | None | 0 0
  1. }
  2. if(strcmp(cmd, "/exit", true) == 0)
  3. {
  4. if(IsPlayerConnected(playerid))
  5. {
  6. if(PlayerInfo[playerid][pLocal] != 999) //in house
  7. {
  8. if(IsAtHouseExit(playerid))
  9. {
  10. if(PlayerInfo[playerid][pMask] == 1) { sendername = "Stranger"; }
  11. format(string, sizeof(string), "* %s has left the house.", sendername);
  12. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  13. SetPlayerVirtualWorld(playerid, 0);
  14. SetPlayerInterior(playerid,0);
  15. SetPlayerPos(playerid,PlayerInfo[playerid][pHouseExitX],PlayerInfo[playerid][pHouseExitY],PlayerInfo[playerid][pHouseExitZ]);
  16. SetPlayerFacingAngle(playerid, PlayerInfo[playerid][pHouseExitR]-180);
  17. SetCameraBehindPlayer(playerid);
  18. PlayerInfo[playerid][pInt] = 0;
  19. PlayerInfo[playerid][pVirtualWorld] = 0;
  20. PlayerInfo[playerid][pLocal] = 999;
  21. return 1;
  22. }
  23. }
  24. for(new i = 0; i < sizeof(BizzInfo); i++)
  25. {
  26. if(IsPlayerInRangeOfPoint(playerid,3,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ])) //businesses
  27. {
  28. SetPlayerInterior(playerid,0);
  29. PlayerInfo[playerid][pInt] = 0;
  30. SetPlayerPos(playerid,BizzInfo[i][bEntranceX],BizzInfo[i][bEntranceY],BizzInfo[i][bEntranceZ]);
  31. return 1;
  32. }
  33. }
  34. if(PlayerPaintballing[playerid] != 0)
  35. {
  36. SetPlayerWeapons(playerid);
  37. PlayerPaintballing[playerid] = 0;
  38. SetPlayerPos(playerid,BizzInfo[0][bEntranceX],BizzInfo[0][bEntranceY],BizzInfo[0][bEntranceZ]);
  39. TogglePlayerControllable(playerid, 1);
  40. PaintballPlayers --;
  41. return 1;
  42. }
  43. if(IsPlayerInRangeOfPoint(playerid,3.0,246.3711,108.7005,1003.2188)) //FBI HQ
  44. {
  45. SetPlayerInterior(playerid, 0);
  46. SetPlayerPos(playerid, 1774.6836,-1665.9792,14.4277);
  47. PlayerInfo[playerid][pInt] = 0;
  48. SetPlayerFacingAngle(playerid, 125.0000);
  49. SetCameraBehindPlayer(playerid);
  50. }
  51. else if(IsPlayerInRangeOfPoint(playerid,3.0,385.2311,173.8202,1008.3828)) //Brotherhood
  52. {
  53. if(GetPlayerInterior(playerid) == 101)
  54. {
  55. SetPlayerInterior(playerid, 0);
  56. SetPlayerVirtualWorld(playerid, 0);
  57. SetPlayerPos(playerid, 1654.1302,-1655.0974,22.5156);
  58. SetPlayerFacingAngle(playerid, 181.8075);
  59. SetCameraBehindPlayer(playerid);
  60. }
  61. }
  62. else if(IsPlayerInRangeOfPoint(playerid,3.0,2305.5840,-16.0986,26.7496)) //Bank
  63. {
  64. SetPlayerInterior(playerid, 0);
  65. SetPlayerPos(playerid, 1462.5475,-1012.7440,26.8438);
  66. SetPlayerFacingAngle(playerid, 181.8075);
  67. SetCameraBehindPlayer(playerid);
  68. }
  69. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 421.0744,2536.7888,10.0000)) //Renegade Syndicate
  70. {
  71. SetPlayerInterior(playerid, 0);
  72. SetPlayerPos(playerid, 1615.3910,-1783.8541,13.5043);
  73. }
  74. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 414.1622,2536.6467,10.0000)) //Renegade Syndicate
  75. {
  76. SetPlayerInterior(playerid, 0);
  77. SetPlayerPos(playerid, 1620.5050,-1778.2992,13.5420);
  78. }
  79. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2548.7195,-1294.7968,1060.9844)) //Shadow Complex
  80. {
  81. SetPlayerPos(playerid, 1083.0120,-1226.5403,15.8203);
  82. SetPlayerInterior(playerid,0);
  83. }
  84. else if (IsPlayerInRangeOfPoint(playerid, 3.0, 1462.611450,-1012.072937,26.843750)) //Bank
  85. {
  86. SetPlayerPos(playerid, 2305.688964,-16.088100,26.749565);
  87. }
  88. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2145.3159,1597.3687,1003.9677)) //Secret Society(yuris faction)
  89. {
  90. SetPlayerPos(playerid,-49.9580,-272.2011,6.6332);
  91. SetPlayerInterior(playerid, 0);
  92. }
  93. else if(IsPlayerInRangeOfPoint(playerid, 2.5, -228.0731,1401.1146,27.7656)) //Coffee Shop
  94. {
  95. SetPlayerPos(playerid,2501.7598,-1494.6981,24.0000);
  96. SetPlayerVirtualWorld(playerid,0);
  97. SetPlayerInterior(playerid, 0);
  98. }
  99. else if(IsPlayerInRangeOfPoint(playerid, 2.5, 1226.6959,-813.4658,1084.0078))
  100. {
  101. SetPlayerPos(playerid,152.3280,1370.0015,1088.3672);
  102. SetPlayerInterior(playerid, 5);
  103. }
  104. else if(IsPlayerInRangeOfPoint(playerid, 2.5, 239.3269,1084.1855,1084.1875))
  105. {
  106. SetPlayerPos(playerid,2851.8997,-1365.9199,14.1708);
  107. SetPlayerInterior(playerid, 0);
  108. }
  109. else if(IsPlayerInRangeOfPoint(playerid, 2.5, 2003.9025,1017.7690,994.4688))
  110. {
  111. SetPlayerPos(playerid,1270.6495,-1668.1027,19.7344);
  112. SetPlayerInterior(playerid, 0);
  113. }
  114. else if (IsPlayerInRangeOfPoint(playerid, 3.0,387.7978,173.8582,1008.3828))
  115. {
  116. SetPlayerInterior(playerid, 0);
  117. SetPlayerPos(playerid,1481.1178,-1770.9368,18.7958);
  118. }
  119. else if(IsPlayerInRangeOfPoint(playerid, 2.5, 302.180999,300.722991,999.148437))
  120. {
  121. SetPlayerPos(playerid,134.6600,1379.9559,1088.36721);
  122. SetPlayerInterior(playerid, 5);
  123. }
  124. else if (IsPlayerInRangeOfPoint(playerid, 6.0,-1404.5299,-259.0602,1043.6563))
  125. {
  126. SetPlayerInterior(playerid, 0);
  127. SetPlayerPos(playerid,2695.6235,-1704.6960,11.8438);
  128. }
  129. else if (IsPlayerInRangeOfPoint(playerid, 8.0,-1443.0554,-581.1879,1055.0472))
  130. {
  131. SetPlayerInterior(playerid, 0);
  132. SetPlayerPos(playerid,-2111.5686,-443.9720,38.7344);
  133. }
  134. else if(IsPlayerInRangeOfPoint(playerid, 2.5, 367.1499,162.3410,1019.9844)) //FIRE DEPARTMENT HQ
  135. {
  136. SetPlayerInterior(playerid, 0);
  137. SetPlayerPos(playerid, 1499.5010,-2182.5254,13.9437);
  138. PlayerInfo[playerid][pInt] = 0;
  139. SetPlayerFacingAngle(playerid, 270.0);
  140. SetCameraBehindPlayer(playerid);
  141. }
  142. /* else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1199.0801, -1366.3083, 1017.8790)) //HOSPITAL GROUND EXIT (NEW)
  143. {
  144. SetPlayerInterior(playerid, 0);
  145. SetPlayerPos(playerid, 1173.7834, -1325.3622, 15.1953);
  146. PlayerInfo[playerid][pInt] = 0;
  147. SetPlayerFacingAngle(playerid, 270.5877);
  148. SetCameraBehindPlayer(playerid);
  149. }
  150. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1216.2145, -1379.2618, 1029.4714)) //HOSPITAL ROOF EXIT (NEW)
  151. {
  152. SetPlayerInterior(playerid, 0);
  153. SetPlayerPos(playerid, 1154.5394, -1344.0690, 26.7013);
  154. PlayerInfo[playerid][pInt] = 0;
  155. SetPlayerFacingAngle(playerid, 181.0622);
  156. SetCameraBehindPlayer(playerid);
  157. }*/
  158. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 246.5112,87.4867,1003.6406)) //LSPD-Garage Exit
  159. {
  160. if(IsACop(playerid))
  161. {
  162. SetPlayerPos(playerid,1568.5718,-1691.0177,5.8906);
  163. SetPlayerFacingAngle(playerid, 180.0000);
  164. SetCameraBehindPlayer(playerid);
  165. SetPlayerInterior(playerid, 0);
  166. PlayerInfo[playerid][pInt] = 0;
  167. }
  168. }
  169. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 242.2760,66.3317,1003.6406)) //LSPD-Roof Exit
  170. {
  171. SetPlayerPos(playerid,1564.8464,-1666.1444,28.3956);
  172. SetPlayerFacingAngle(playerid, 0.0000);
  173. SetCameraBehindPlayer(playerid);
  174. SetPlayerInterior(playerid, 0);
  175. PlayerInfo[playerid][pInt] = 0;
  176. }
  177. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 964.5875,-53.1907,1001.1172)) // Los Santos Confidential
  178. {
  179. if(PlayerInfo[playerid][pVirtualWorld] == 299)
  180. {
  181. SetPlayerPos(playerid,2494.1038,-1463.2928,24.0244);
  182. SetPlayerFacingAngle(playerid, 0.0000);
  183. SetCameraBehindPlayer(playerid);
  184. SetPlayerInterior(playerid, 0);
  185. PlayerInfo[playerid][pInt] = 0;
  186. PlayerInfo[playerid][pVirtualWorld] = 0;
  187. SetPlayerVirtualWorld(playerid, 0);
  188. return 1;
  189. }
  190. return 1;
  191. }
  192. else if(IsPlayerInRangeOfPoint(playerid, 8.0,2.57, 33.14, 1200)) // SHAMAL
  193. {
  194. new
  195. vwcheck = GetPlayerVirtualWorld(playerid),
  196. Float:px,
  197. Float:py,
  198. Float:pz,
  199. Float:za,
  200. Float:vx,
  201. Float:vy,
  202. Float:vz,
  203. vehicle
  204. ;
Advertisement
Add Comment
Please, Sign In to add comment