Guest User

Untitled

a guest
Mar 8th, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.69 KB | None | 0 0
  1. public OnPlayerDisconnect(playerid, reason)
  2. {
  3.  
  4. //Admin Account hack fix
  5. if(AdminDuty[playerid]) cmd_aduty(playerid, "");
  6. //
  7.  
  8.  
  9. // Crash Fix
  10. new name[MAX_PLAYER_NAME];
  11. GetPlayerName(playerid, name, sizeof(name));
  12. if(!strcmp(name, "InvalidNick", true)) return 1;
  13. if(!strcmp(name, "BannedPlayer", true)) return 1;
  14. if(playerid == MAX_PLAYERS) return 1;
  15.  
  16. if(pTazer[playerid] == 1) GivePlayerValidWeapon(playerid,pTazerReplace[playerid],60000);
  17. if(GetPVarInt(playerid, "SpeedRadar") == 1) GivePlayerValidWeapon(playerid, GetPVarInt(playerid, "RadarReplacement"), 60000);
  18.  
  19. if(GetPVarInt(playerid, "MovingStretcher") != -1) {
  20. KillTimer(GetPVarInt(playerid, "TickEMSMove"));
  21. DeletePVar(GetPVarInt(playerid, "MovingStretcher"), "OnStretcher");
  22. SetPVarInt(playerid, "MovingStretcher", -1);
  23. }
  24.  
  25. if(IsValidDynamicObject(PlayerInfo[playerid][pWeedObject]))
  26. {
  27. DestroyDynamicObject(PlayerInfo[playerid][pWeedObject]);
  28. }
  29.  
  30. if(IsValidDynamicObject(BoomboxInfo[playerid][bbObject]))
  31. {
  32. DestroyDynamicObject(BoomboxInfo[playerid][bbObject]);
  33.  
  34. foreach(Player, i)
  35. {
  36. if(IsPlayerInRangeOfPoint(i,150.0,BoomboxInfo[playerid][bbPosX],BoomboxInfo[playerid][bbPosY],BoomboxInfo[playerid][bbPosZ]) && GetPlayerInterior(i) == BoomboxInfo[playerid][bbInt] && GetPlayerVirtualWorld(i) == BoomboxInfo[playerid][bbVW])
  37. {
  38. StopAudioStreamForPlayer(i);
  39. }
  40. }
  41. }
  42.  
  43. if(GetPVarInt(playerid, "PBM") < 1) {
  44. if(GetPVarInt(playerid, "Hospital") > 0) {
  45. PlayerInfo[playerid][pHospital] = 1;
  46. }
  47.  
  48. if(GetPVarInt(playerid, "Injured") == 1) {
  49. PlayerInfo[playerid][pHospital] = 1;
  50. KillEMSQueue(playerid);
  51. ResetPlayerWeaponsEx(playerid);
  52. }
  53. } else {
  54. new
  55. szMessage[64];
  56.  
  57. format(szMessage, sizeof(szMessage), "%s has left the paintball game (disconnect).", GetPlayerNameEx(playerid));
  58. foreach(Player, i) {
  59. if(GetPVarInt(i, "PBM") == GetPVarInt(playerid, "PBM") && i != playerid)
  60. SendClientMessage(i, COLOR_RED, szMessage);
  61. }
  62. }
  63.  
  64. if(PlayerInfo[playerid][pLockCar] != INVALID_VEHICLE_ID)
  65. vehicle_unlock_doors(PlayerInfo[playerid][pLockCar]);
  66.  
  67. if(PlayerInfo[playerid][pVehicleKeysFrom] != INVALID_PLAYER_ID)
  68. PlayerVehicleInfo[PlayerInfo[playerid][pVehicleKeysFrom]][PlayerInfo[playerid][pVehicleKeys]][pvAllowedPlayerId] = INVALID_PLAYER_ID;
  69.  
  70. InsideShamal[playerid] = INVALID_VEHICLE_ID;
  71.  
  72. PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
  73.  
  74. GetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
  75. GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_r]);
  76.  
  77. if(GetPlayerSkin(playerid) == 155)
  78. PlayerInfo[playerid][pSkin] = GetPVarInt(playerid, "NPS");
  79.  
  80. if(InsideShamal[playerid] != INVALID_VEHICLE_ID) {
  81. if(InsideShamal[playerid] == INVALID_VEHICLE_ID || GetVehicleModel(InsideShamal[playerid]) != 519)
  82. {
  83. GivePlayerValidWeapon(playerid, 46, 60000);
  84. PlayerInfo[playerid][pPos_x] = 0.000000;
  85. PlayerInfo[playerid][pPos_y] = 0.000000;
  86. PlayerInfo[playerid][pPos_z] = 420.000000;
  87. }
  88. else
  89. {
  90. new Float:X, Float:Y, Float:Z;
  91. GetVehiclePos(InsideShamal[playerid], X, Y, Z);
  92. PlayerInfo[playerid][pPos_x] = X;
  93. PlayerInfo[playerid][pPos_y] = Y;
  94. PlayerInfo[playerid][pPos_z] = Z;
  95.  
  96. new Float:XB, Float:YB, Float:ZB;
  97. GetVehiclePos(InsideShamal[playerid], XB, YB, ZB);
  98. if(ZB > 50.0)
  99. {
  100. GivePlayerValidWeapon(playerid, 46, 60000);
  101. }
  102. }
  103. PlayerInfo[playerid][pVW] = 0;
  104. SetPlayerVirtualWorld(playerid, 0);
  105. PlayerInfo[playerid][pInt] = 0;
  106. SetPlayerInterior(playerid, 0);
  107. InsideShamal[playerid] = INVALID_VEHICLE_ID;
  108. }
  109.  
  110. UnloadPlayerVehicles(playerid);
  111. ResetPlayerWeapons(playerid);
  112.  
  113. for(new i = 0; i < MAX_REPORTS; i++)
  114. {
  115. if(Reports[i][ReportFrom] == playerid)
  116. {
  117. Reports[i][ReportFrom] = 999;
  118. Reports[i][BeingUsed] = 0;
  119. Reports[i][TimeToExpire] = 0;
  120. }
  121. }
  122.  
  123. foreach(Player, i)
  124. {
  125. if(TaxiAccepted[i] == playerid)
  126. {
  127. TaxiAccepted[i] = 999;
  128. GameTextForPlayer(i, "~w~Taxi Caller~n~~r~Left the game", 5000, 1);
  129. TaxiCallTime[i] = 0;
  130. DisablePlayerCheckpoint(i);
  131. }
  132. if(EMSAccepted[i] == playerid)
  133. {
  134. EMSAccepted[i] = 999;
  135. GameTextForPlayer(i, "~w~EMS Caller~n~~r~Left the game", 5000, 1);
  136. EMSCallTime[i] = 0;
  137. DisablePlayerCheckpoint(i);
  138. }
  139. if(BusAccepted[i] == playerid)
  140. {
  141. BusAccepted[i] = 999;
  142. GameTextForPlayer(i, "~w~Bus Caller~n~~r~Left the game", 5000, 1);
  143. BusCallTime[i] = 0;
  144. DisablePlayerCheckpoint(i);
  145. }
  146. if(MedicAccepted[i] == playerid)
  147. {
  148. TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999; MedicAccepted[playerid] = 999;
  149. GameTextForPlayer(i, "~w~Medic Caller~n~~r~Left the game", 5000, 1);
  150. MedicCallTime[i] = 0;
  151. DisablePlayerCheckpoint(i);
  152. }
  153. }
  154.  
  155. if(Spectate[playerid] < 553)
  156. {
  157. PlayerInfo[playerid][pInt] = GetPVarInt(playerid, "SpecInt");
  158. PlayerInfo[playerid][pVW] = GetPVarInt(playerid, "SpecVW");
  159. PlayerInfo[playerid][pPos_x] = GetPVarFloat(playerid, "SpecPosX");
  160. PlayerInfo[playerid][pPos_y] = GetPVarFloat(playerid, "SpecPosY");
  161. PlayerInfo[playerid][pPos_z] = GetPVarFloat(playerid, "SpecPosZ");
  162. GettingSpectated[Spectate[playerid]] = 999;
  163. Spectate[playerid] = 999;
  164. }
  165.  
  166. if(GetPVarInt(playerid, "gpsonoff") == 1) TextDrawDestroy(GPS[playerid]);
  167.  
  168. if(PlayerBoxing[playerid] > 0)
  169. {
  170. if(Boxer1 == playerid)
  171. {
  172. if(IsPlayerConnected(Boxer2))
  173. {
  174. if(IsPlayerInRangeOfPoint(PlayerBoxing[Boxer2], 25.0, 765.952270, 4.167977, 1000.719238))
  175. {
  176. PlayerBoxing[Boxer2] = 0;
  177. SetPlayerPos(Boxer2, 765.952270, 4.167977, 1000.719238);
  178. SetPlayerInterior(Boxer2, 5);
  179. GameTextForPlayer(Boxer2, "~r~Match interrupted", 5000, 1);
  180. return 1;
  181. }
  182. }
  183. }
  184. else if(Boxer2 == playerid)
  185. {
  186. if(IsPlayerConnected(Boxer1))
  187. {
  188. if(IsPlayerInRangeOfPoint(PlayerBoxing[Boxer1],25.0,765.952270, 4.167977, 1000.719238))
  189. {
  190. PlayerBoxing[Boxer1] = 0;
  191. SetPlayerPos(Boxer1, 765.952270, 4.167977, 1000.719238);
  192. SetPlayerInterior(Boxer1, 5);
  193. GameTextForPlayer(Boxer1, "~r~Match interrupted", 5000, 1);
  194. return 1;
  195. }
  196. }
  197. }
  198. InRing = 0;
  199. RoundStarted = 0;
  200. Boxer1 = INVALID_PLAYER_ID;
  201. Boxer2 = INVALID_PLAYER_ID;
  202. }
  203.  
  204. new string[128];
  205. switch (reason)
  206. {
  207. case 0:
  208. {
  209. format(string, sizeof(string), "%s has left the server (timeout).", GetPlayerNameEx(playerid));
  210. ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
  211. if(PlayerCuffed[playerid] != 0)
  212. {
  213. strcpy(PlayerInfo[playerid][pPrisonedBy], "Server", 64);
  214. strcpy(PlayerInfo[playerid][pPrisonReason], "Logging while cuffed (timeout)", 64);
  215.  
  216. PlayerInfo[playerid][pJailed] = 3;
  217. PlayerInfo[playerid][pJailTime] += 30*60;
  218. }
  219. }
  220. case 1:
  221. {
  222. format(string, sizeof(string), "%s has left the server (leaving).", GetPlayerNameEx(playerid));
  223. ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
  224. if(PlayerCuffed[playerid] != 0)
  225. {
  226. strcpy(PlayerInfo[playerid][pPrisonedBy], "Server", 64);
  227. strcpy(PlayerInfo[playerid][pPrisonReason], "Logging while cuffed (leaving)", 64);
  228.  
  229. PlayerInfo[playerid][pJailed] = 3;
  230. PlayerInfo[playerid][pJailTime] += 20*60;
  231. }
  232. }
  233. case 2:
  234. {
  235. format(string, sizeof(string), "%s has left the server (kicked/banned).", GetPlayerNameEx(playerid));
  236. ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
  237. }
  238. }
  239.  
  240. for(new x; x < sizeof(EventKernel[EventStaff]); x++) {
  241. if(EventKernel[EventStaff][x] == playerid) {
  242. EventKernel[EventStaff][x] = 999;
  243. break;
  244. }
  245. }
  246.  
  247. if(GetPVarInt(playerid, "EventToken") == 0 && !GetPVarType(playerid, "LoadingObjects"))
  248. {
  249. new Float: x, Float: y, Float: z;
  250. PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
  251. PlayerInfo[playerid][pVW] = GetPlayerVirtualWorld(playerid);
  252. GetPlayerPos(playerid, x, y, z);
  253. GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_r]);
  254. PlayerInfo[playerid][pPos_x] = x;
  255. PlayerInfo[playerid][pPos_y] = y;
  256. PlayerInfo[playerid][pPos_z] = z;
  257. }
  258. else
  259. {
  260. PlayerInfo[playerid][pInt] = EventLastInt[playerid];
  261. PlayerInfo[playerid][pVW] = EventLastVW[playerid];
  262. PlayerInfo[playerid][pPos_r] = EventFloats[playerid][0];
  263. PlayerInfo[playerid][pPos_x] = EventFloats[playerid][1];
  264. PlayerInfo[playerid][pPos_y] = EventFloats[playerid][2];
  265. PlayerInfo[playerid][pPos_z] = EventFloats[playerid][3];
  266. }
  267.  
  268. if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
  269. {
  270. if(IsPlayerConnected(TransportDriver[playerid]))
  271. {
  272. TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
  273. TransportTime[TransportDriver[playerid]] = 0;
  274. TransportCost[TransportDriver[playerid]] = 0;
  275. format(string, sizeof(string), "~w~Passenger left~n~~g~Earned $%d",TransportCost[playerid]);
  276. GameTextForPlayer(TransportDriver[playerid], string, 5000, 1);
  277. TransportDriver[playerid] = 999;
  278. }
  279. }
  280.  
  281. if(GotHit[playerid] > 0)
  282. {
  283. if(GetChased[playerid] < 999)
  284. {
  285. if(IsPlayerConnected(GetChased[playerid]))
  286. {
  287. SendClientMessage(GetChased[playerid], COLOR_YELLOW, "Your hit has left the server.");
  288. GoChase[GetChased[playerid]] = 999;
  289. }
  290. }
  291. }
  292. if(GoChase[playerid] < 999)
  293. {
  294. GetChased[GoChase[playerid]] = 999;
  295. GotHit[GoChase[playerid]] = 999;
  296. }
  297.  
  298. if(TransportDuty[playerid] == 1)
  299. {
  300. TaxiDrivers -= 1;
  301. }
  302. else if(TransportDuty[playerid] == 2)
  303. {
  304. BusDrivers -= 1;
  305. }
  306. if(PlayerInfo[playerid][pJob] == 11 || PlayerInfo[playerid][pJob2] == 11)
  307. {
  308. if(JobDuty[playerid] == 1) { Medics -= 1; }
  309. }
  310. if(PlayerInfo[playerid][pJob] == 7 || PlayerInfo[playerid][pJob2] == 7)
  311. {
  312. if(JobDuty[playerid] == 1) { Mechanics -= 1; }
  313. }
  314.  
  315. if(GetPVarType(playerid, "tabbedVW") != 0) {
  316. printf("[alt tab vw debug] %d | tabvw: %d | real vw: %d", PlayerInfo[playerid][pVW], GetPVarInt(playerid, "tabbedVW"), GetPlayerVirtualWorld(playerid));
  317. PlayerInfo[playerid][pVW] = GetPVarInt(playerid, "tabbedVW");
  318. } else PlayerInfo[playerid][pVW] = GetPlayerVirtualWorld(playerid);
  319.  
  320. printf("[alt tab vw debug] tabvw: %d | tabvw type: %d", GetPVarInt(playerid, "tabbedVW"), GetPVarType(playerid, "tabbedVW"));
  321. if(GetPVarInt(playerid, "PBM") > 0) {
  322. PlayerInfo[playerid][pPos_x] = 1782.8229;
  323. PlayerInfo[playerid][pPos_y] = -1565.8177;
  324. PlayerInfo[playerid][pPos_z] = 13.3472;
  325. PlayerInfo[playerid][pInt] = 0;
  326. PlayerInfo[playerid][pVW] = 0;
  327. PlayerInfo[playerid][pPos_r] = 0;
  328. }
  329.  
  330. OnPlayerStatsUpdate(playerid);
  331. return 1;
  332. }
  333.  
  334. forward Login(playerid);
  335. public Login(playerid)
  336. {
  337. // Main Menu Features.
  338. ShowMainMenuGUI(playerid);
  339. ClearChatbox(playerid);
  340. SetPlayerVirtualWorld(playerid, 0);
  341.  
  342. SetPlayerCameraPos(playerid, 2022.083740, -1308.260620, 80.478797);
  343. SetPlayerCameraLookAt(playerid, 1970.506103, -1201.447143, 25.596593);
  344.  
  345. new playername[MAX_PLAYER_NAME];
  346. GetPlayerName(playerid, playername, sizeof(playername));
  347. if(doesAccountExist(playername))
  348. {
  349. gPlayerAccount[playerid] = 1;
  350. ShowMainMenuDialog(playerid, 1);
  351. return 1;
  352. }
  353. else
  354. {
  355. gPlayerAccount[playerid] = 0;
  356. ShowMainMenuDialog(playerid, 2);
  357. return 1;
  358. }
  359. }
  360.  
  361. stock PreloadAnims(playerid) {
  362. ApplyAnimation(playerid, "AIRPORT", "null", 0.0, 0, 0, 0, 0, 0);
  363. ApplyAnimation(playerid, "Attractors", "null", 0.0, 0, 0, 0, 0, 0);
  364. ApplyAnimation(playerid, "BAR", "null", 0.0, 0, 0, 0, 0, 0);
  365. ApplyAnimation(playerid, "BASEBALL", "null", 0.0, 0, 0, 0, 0, 0);
  366. ApplyAnimation(playerid, "BD_FIRE", "null", 0.0, 0, 0, 0, 0, 0);
  367. ApplyAnimation(playerid, "BEACH", "null", 0.0, 0, 0, 0, 0, 0);
  368. ApplyAnimation(playerid, "benchpress", "null", 0.0, 0, 0, 0, 0, 0);
  369. ApplyAnimation(playerid, "BF_injection", "null", 0.0, 0, 0, 0, 0, 0);
  370. ApplyAnimation(playerid, "BIKED", "null", 0.0, 0, 0, 0, 0, 0);
  371. ApplyAnimation(playerid, "BIKEH", "null", 0.0, 0, 0, 0, 0, 0);
  372. ApplyAnimation(playerid, "BIKELEAP", "null", 0.0, 0, 0, 0, 0, 0);
  373. ApplyAnimation(playerid, "BIKES", "null", 0.0, 0, 0, 0, 0, 0);
  374. ApplyAnimation(playerid, "BIKEV", "null", 0.0, 0, 0, 0, 0, 0);
  375. ApplyAnimation(playerid, "BIKE_DBZ", "null", 0.0, 0, 0, 0, 0, 0);
  376. ApplyAnimation(playerid, "BMX", "null", 0.0, 0, 0, 0, 0, 0);
  377. ApplyAnimation(playerid, "BOMBER", "null", 0.0, 0, 0, 0, 0, 0);
  378. ApplyAnimation(playerid, "BOX", "null", 0.0, 0, 0, 0, 0, 0);
  379. ApplyAnimation(playerid, "BSKTBALL", "null", 0.0, 0, 0, 0, 0, 0);
  380. ApplyAnimation(playerid, "BUDDY", "null", 0.0, 0, 0, 0, 0, 0);
  381. ApplyAnimation(playerid, "BUS", "null", 0.0, 0, 0, 0, 0, 0);
  382. ApplyAnimation(playerid, "CAMERA", "null", 0.0, 0, 0, 0, 0, 0);
  383. ApplyAnimation(playerid, "CAR", "null", 0.0, 0, 0, 0, 0, 0);
  384. ApplyAnimation(playerid, "CARRY", "null", 0.0, 0, 0, 0, 0, 0);
  385. ApplyAnimation(playerid, "CAR_CHAT", "null", 0.0, 0, 0, 0, 0, 0);
  386. ApplyAnimation(playerid, "CASINO", "null", 0.0, 0, 0, 0, 0, 0);
  387. ApplyAnimation(playerid, "CHAINSAW", "null", 0.0, 0, 0, 0, 0, 0);
  388. ApplyAnimation(playerid, "CHOPPA", "null", 0.0, 0, 0, 0, 0, 0);
  389. ApplyAnimation(playerid, "CLOTHES", "null", 0.0, 0, 0, 0, 0, 0);
  390. ApplyAnimation(playerid, "COACH", "null", 0.0, 0, 0, 0, 0, 0);
  391. ApplyAnimation(playerid, "COLT45", "null", 0.0, 0, 0, 0, 0, 0);
  392. ApplyAnimation(playerid, "COP_AMBIENT", "null", 0.0, 0, 0, 0, 0, 0);
  393. ApplyAnimation(playerid, "COP_DVBYZ", "null", 0.0, 0, 0, 0, 0, 0);
  394. ApplyAnimation(playerid, "CRACK", "null", 0.0, 0, 0, 0, 0, 0);
  395. ApplyAnimation(playerid, "CRIB", "null", 0.0, 0, 0, 0, 0, 0);
  396. ApplyAnimation(playerid, "DAM_JUMP", "null", 0.0, 0, 0, 0, 0, 0);
  397. ApplyAnimation(playerid, "DANCING", "null", 0.0, 0, 0, 0, 0, 0);
  398. ApplyAnimation(playerid, "DEALER", "null", 0.0, 0, 0, 0, 0, 0);
  399. ApplyAnimation(playerid, "DILDO", "null", 0.0, 0, 0, 0, 0, 0);
  400. ApplyAnimation(playerid, "DODGE", "null", 0.0, 0, 0, 0, 0, 0);
  401. ApplyAnimation(playerid, "DOZER", "null", 0.0, 0, 0, 0, 0, 0);
  402. ApplyAnimation(playerid, "DRIVEBYS", "null", 0.0, 0, 0, 0, 0, 0);
  403. ApplyAnimation(playerid, "FAT", "null", 0.0, 0, 0, 0, 0, 0);
  404. ApplyAnimation(playerid, "FIGHT_B", "null", 0.0, 0, 0, 0, 0, 0);
  405. ApplyAnimation(playerid, "FIGHT_C", "null", 0.0, 0, 0, 0, 0, 0);
  406. ApplyAnimation(playerid, "FIGHT_D", "null", 0.0, 0, 0, 0, 0, 0);
  407. ApplyAnimation(playerid, "FIGHT_E", "null", 0.0, 0, 0, 0, 0, 0);
  408. ApplyAnimation(playerid, "FINALE", "null", 0.0, 0, 0, 0, 0, 0);
  409. ApplyAnimation(playerid, "FINALE2", "null", 0.0, 0, 0, 0, 0, 0);
  410. ApplyAnimation(playerid, "FLAME", "null", 0.0, 0, 0, 0, 0, 0);
  411. ApplyAnimation(playerid, "Flowers", "null", 0.0, 0, 0, 0, 0, 0);
  412. ApplyAnimation(playerid, "FOOD", "null", 0.0, 0, 0, 0, 0, 0);
  413. ApplyAnimation(playerid, "Freeweights", "null", 0.0, 0, 0, 0, 0, 0);
  414. ApplyAnimation(playerid, "GANGS", "null", 0.0, 0, 0, 0, 0, 0);
  415. ApplyAnimation(playerid, "GHANDS", "null", 0.0, 0, 0, 0, 0, 0);
  416. ApplyAnimation(playerid, "GHETTO_DB", "null", 0.0, 0, 0, 0, 0, 0);
  417. ApplyAnimation(playerid, "goggles", "null", 0.0, 0, 0, 0, 0, 0);
  418. ApplyAnimation(playerid, "GRAFFITI", "null", 0.0, 0, 0, 0, 0, 0);
  419. ApplyAnimation(playerid, "GRAVEYARD", "null", 0.0, 0, 0, 0, 0, 0);
  420. ApplyAnimation(playerid, "GRENADE", "null", 0.0, 0, 0, 0, 0, 0);
  421. ApplyAnimation(playerid, "GYMNASIUM", "null", 0.0, 0, 0, 0, 0, 0);
  422. ApplyAnimation(playerid, "HAIRCUTS", "null", 0.0, 0, 0, 0, 0, 0);
  423. ApplyAnimation(playerid, "HEIST9", "null", 0.0, 0, 0, 0, 0, 0);
  424. ApplyAnimation(playerid, "INT_HOUSE", "null", 0.0, 0, 0, 0, 0, 0);
  425. ApplyAnimation(playerid, "INT_OFFICE", "null", 0.0, 0, 0, 0, 0, 0);
  426. ApplyAnimation(playerid, "INT_SHOP", "null", 0.0, 0, 0, 0, 0, 0);
  427. ApplyAnimation(playerid, "JST_BUISNESS", "null", 0.0, 0, 0, 0, 0, 0);
  428. ApplyAnimation(playerid, "KART", "null", 0.0, 0, 0, 0, 0, 0);
  429. ApplyAnimation(playerid, "KISSING", "null", 0.0, 0, 0, 0, 0, 0);
  430. ApplyAnimation(playerid, "KNIFE", "null", 0.0, 0, 0, 0, 0, 0);
  431. ApplyAnimation(playerid, "LAPDAN1", "null", 0.0, 0, 0, 0, 0, 0);
  432. ApplyAnimation(playerid, "LAPDAN2", "null", 0.0, 0, 0, 0, 0, 0);
  433. ApplyAnimation(playerid, "LAPDAN3", "null", 0.0, 0, 0, 0, 0, 0);
  434. ApplyAnimation(playerid, "LOWRIDER", "null", 0.0, 0, 0, 0, 0, 0);
  435. ApplyAnimation(playerid, "MD_CHASE", "null", 0.0, 0, 0, 0, 0, 0);
  436. ApplyAnimation(playerid, "MD_END", "null", 0.0, 0, 0, 0, 0, 0);
  437. ApplyAnimation(playerid, "MEDIC", "null", 0.0, 0, 0, 0, 0, 0);
  438. ApplyAnimation(playerid, "MISC", "null", 0.0, 0, 0, 0, 0, 0);
  439. ApplyAnimation(playerid, "MTB", "null", 0.0, 0, 0, 0, 0, 0);
  440. ApplyAnimation(playerid, "MUSCULAR", "null", 0.0, 0, 0, 0, 0, 0);
  441. ApplyAnimation(playerid, "NEVADA", "null", 0.0, 0, 0, 0, 0, 0);
  442. ApplyAnimation(playerid, "ON_LOOKERS", "null", 0.0, 0, 0, 0, 0, 0);
  443. ApplyAnimation(playerid, "OTB", "null", 0.0, 0, 0, 0, 0, 0);
  444. ApplyAnimation(playerid, "PARACHUTE", "null", 0.0, 0, 0, 0, 0, 0);
  445. ApplyAnimation(playerid, "PARK", "null", 0.0, 0, 0, 0, 0, 0);
  446. ApplyAnimation(playerid, "PAULNMAC", "null", 0.0, 0, 0, 0, 0, 0);
  447. ApplyAnimation(playerid, "ped", "null", 0.0, 0, 0, 0, 0, 0);
  448. ApplyAnimation(playerid, "PLAYER_DVBYS", "null", 0.0, 0, 0, 0, 0, 0);
  449. ApplyAnimation(playerid, "PLAYIDLES", "null", 0.0, 0, 0, 0, 0, 0);
  450. ApplyAnimation(playerid, "POLICE", "null", 0.0, 0, 0, 0, 0, 0);
  451. ApplyAnimation(playerid, "POOL", "null", 0.0, 0, 0, 0, 0, 0);
  452. ApplyAnimation(playerid, "POOR", "null", 0.0, 0, 0, 0, 0, 0);
  453. ApplyAnimation(playerid, "PYTHON", "null", 0.0, 0, 0, 0, 0, 0);
  454. ApplyAnimation(playerid, "QUAD", "null", 0.0, 0, 0, 0, 0, 0);
  455. ApplyAnimation(playerid, "QUAD_DBZ", "null", 0.0, 0, 0, 0, 0, 0);
  456. ApplyAnimation(playerid, "RAPPING", "null", 0.0, 0, 0, 0, 0, 0);
  457. ApplyAnimation(playerid, "RIFLE", "null", 0.0, 0, 0, 0, 0, 0);
  458. ApplyAnimation(playerid, "RIOT", "null", 0.0, 0, 0, 0, 0, 0);
  459. ApplyAnimation(playerid, "ROB_BANK", "null", 0.0, 0, 0, 0, 0, 0);
  460. ApplyAnimation(playerid, "RUSTLER", "null", 0.0, 0, 0, 0, 0, 0);
  461. ApplyAnimation(playerid, "RYDER", "null", 0.0, 0, 0, 0, 0, 0);
  462. ApplyAnimation(playerid, "SCRATCHING", "null", 0.0, 0, 0, 0, 0, 0);
  463. ApplyAnimation(playerid, "SHAMAL", "null", 0.0, 0, 0, 0, 0, 0);
  464. ApplyAnimation(playerid, "SHOP", "null", 0.0, 0, 0, 0, 0, 0);
  465. ApplyAnimation(playerid, "SHOTGUN", "null", 0.0, 0, 0, 0, 0, 0);
  466. ApplyAnimation(playerid, "SILENCED", "null", 0.0, 0, 0, 0, 0, 0);
  467. ApplyAnimation(playerid, "SKATE", "null", 0.0, 0, 0, 0, 0, 0);
  468. ApplyAnimation(playerid, "SMOKING", "null", 0.0, 0, 0, 0, 0, 0);
  469. ApplyAnimation(playerid, "SNIPER", "null", 0.0, 0, 0, 0, 0, 0);
  470. ApplyAnimation(playerid, "SPRAYCAN", "null", 0.0, 0, 0, 0, 0, 0);
  471. ApplyAnimation(playerid, "STRIP", "null", 0.0, 0, 0, 0, 0, 0);
  472. ApplyAnimation(playerid, "SUNBATHE", "null", 0.0, 0, 0, 0, 0, 0);
  473. ApplyAnimation(playerid, "SWAT", "null", 0.0, 0, 0, 0, 0, 0);
  474. ApplyAnimation(playerid, "SWEET", "null", 0.0, 0, 0, 0, 0, 0);
  475. ApplyAnimation(playerid, "SWIM", "null", 0.0, 0, 0, 0, 0, 0);
  476. ApplyAnimation(playerid, "SWORD", "null", 0.0, 0, 0, 0, 0, 0);
  477. ApplyAnimation(playerid, "TANK", "null", 0.0, 0, 0, 0, 0, 0);
  478. ApplyAnimation(playerid, "TATTOOS", "null", 0.0, 0, 0, 0, 0, 0);
  479. ApplyAnimation(playerid, "TEC", "null", 0.0, 0, 0, 0, 0, 0);
  480. ApplyAnimation(playerid, "TRAIN", "null", 0.0, 0, 0, 0, 0, 0);
  481. ApplyAnimation(playerid, "TRUCK", "null", 0.0, 0, 0, 0, 0, 0);
  482. ApplyAnimation(playerid, "UZI", "null", 0.0, 0, 0, 0, 0, 0);
  483. ApplyAnimation(playerid, "VAN", "null", 0.0, 0, 0, 0, 0, 0);
  484. ApplyAnimation(playerid, "VENDING", "null", 0.0, 0, 0, 0, 0, 0);
  485. ApplyAnimation(playerid, "VORTEX", "null", 0.0, 0, 0, 0, 0, 0);
  486. ApplyAnimation(playerid, "WAYFARER", "null", 0.0, 0, 0, 0, 0, 0);
  487. ApplyAnimation(playerid, "WEAPONS", "null", 0.0, 0, 0, 0, 0, 0);
  488. ApplyAnimation(playerid, "WUZI", "null", 0.0, 0, 0, 0, 0, 0);
  489.  
  490. return 1;
  491. }
  492.  
  493. stock PreloadAnimLib(playerid, animlib[]) {
  494. return ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
  495. }
Advertisement
Add Comment
Please, Sign In to add comment