NTNGuyenthanh

anti CRbk

Aug 22nd, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. //add duoi SetPVarInt(playerid, "CleoWarning", GetPVarInt(playerid, "CleoWarning")+1);
  2. }
  3. }
  4. }
  5. }
  6. }
  7.  
  8.  
  9. //CODE NÀY ÁP DỤNG CHO Khu An Toàn Có Biến Là [SzKhoangCach]
  10.  
  11.  
  12. if(issuerid != INVALID_PLAYER_ID)
  13. {
  14. for(new Sz; Sz < MAX_SZ; Sz++)
  15. {
  16. if(IsPlayerInRangeOfPoint(playerid, SafeZoneInfo[Sz][szKhoangcach], SafeZoneInfo[Sz][szExteriorX], SafeZoneInfo[Sz][szExteriorY], SafeZoneInfo[Sz][szExteriorZ]))
  17. if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  18. {
  19. if(GetPlayerState(issuerid) == PLAYER_STATE_DRIVER)
  20. {
  21. if(weaponid == 49 || weaponid == 50)
  22. {
  23. new Float:x, Float:y, Float:z;
  24. GetPlayerPos(issuerid, x, y, z);
  25. SetPlayerPos(issuerid, x, y, z + 5);
  26. GetPlayerPos(playerid, x, y, z);
  27. SetPlayerPos(playerid, x, y, z + 3);
  28. TogglePlayerControllable(issuerid, 0);
  29. Loaded[issuerid] = 1;
  30. SetTimer("LoadPlayer", 5000, false);
  31. SendClientMessage(issuerid, -1, "Khong duoc CR/BK trong khu an toan");
  32. return 1;
  33. }
  34. }
  35. }
  36. }
  37. }
  38. //CÒN CODE NÀY LÀ KHU AN TOÀN CÓ BIẾN LÀ [SzSize]
  39.  
  40.  
  41. if(issuerid != INVALID_PLAYER_ID)
  42. {
  43. for(new Sz; Sz < MAX_SZ; Sz++)
  44. {
  45. if(IsPlayerInRangeOfPoint(playerid, SafeZoneInfo[Sz][szSize], SafeZoneInfo[Sz][szPosX], SafeZoneInfo[Sz][szPosY], SafeZoneInfo[Sz][szPosZ]))
  46. if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  47. {
  48. if(GetPlayerState(issuerid) == PLAYER_STATE_DRIVER)
  49. {
  50. if(weaponid == 49 || weaponid == 50)
  51. {
  52. new Float:x, Float:y, Float:z;
  53. GetPlayerPos(issuerid, x, y, z);
  54. SetPlayerPos(issuerid, x, y, z + 5);
  55. GetPlayerPos(playerid, x, y, z);
  56. SetPlayerPos(playerid, x, y, z + 3);
  57. TogglePlayerControllable(issuerid, 0);
  58. Loaded[issuerid] = 1;
  59. SetTimer("LoadPlayer", 5000, false);
  60. SendClientMessage(issuerid, -1, "Khong duoc CR/BK trong khu an toan");
  61. return 1;
  62. }
  63. }
  64. }
  65. }
  66. }
Advertisement
Add Comment
Please, Sign In to add comment