Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. if(PlayerInfo[playerid][Logged])
  2. {
  3. if(GetPVarInt(playerid,"DetekcjaSobeita") == 0)
  4. {
  5. if(detekcjasobeitatime[playerid] < GetTickCount())
  6. {
  7. SetPVarInt(playerid,"DetekcjaSobeita",1);
  8. detekcjasobeitatime[playerid] = GetTickCount()+200;
  9. }
  10. }
  11. if(GetPVarInt(playerid,"DetekcjaSobeita") == 1)
  12. {
  13. if(detekcjasobeitatime[playerid] < GetTickCount())
  14. {
  15. new Float: x, Float: y, Float: z, Float: r, vehicle;
  16. GetPlayerPos(playerid,x,y,z);
  17. SetPVarFloat(playerid,"xSpawn",x);
  18. SetPVarFloat(playerid,"ySpawn",y);
  19. SetPVarFloat(playerid,"zSpawn",z);
  20. GetPlayerFacingAngle(playerid,r);
  21. vehicle = CreateVehicle(457,x,y,z,r,0,0,300);
  22. SetPVarInt(playerid,"vehiclewozek",vehicle);
  23. SetPlayerVirtualWorld(playerid,10);
  24. SetVehicleVirtualWorld(vehicle, 10);
  25. LinkVehicleToInterior(vehicle,1);
  26. PutPlayerInVehicle(playerid,vehicle,0);
  27. SetPVarInt(playerid,"DetekcjaSobeita",2);
  28. detekcjasobeitatime[playerid] = GetTickCount()+200;
  29. TogglePlayerControllable(playerid,false);
  30. }
  31. }
  32. if(GetPVarInt(playerid,"DetekcjaSobeita") == 2)
  33. {
  34. if(detekcjasobeitatime[playerid] < GetTickCount())
  35. {
  36. DestroyVehicle(GetPVarInt(playerid,"vehiclewozek"));
  37. SetPlayerVirtualWorld(playerid,0);
  38. SetPVarInt(playerid,"DetekcjaSobeita",3);
  39. detekcjasobeitatime[playerid] = GetTickCount()+500;
  40. }
  41. }
  42. if(GetPVarInt(playerid,"DetekcjaSobeita") == 3)
  43. {
  44. if(detekcjasobeitatime[playerid] < GetTickCount())
  45. {
  46. new weapons[13][2];
  47. for (new ii = 0; ii <= 12; ii++)
  48. {
  49. GetPlayerWeaponData(playerid, ii, weapons[ii][0], weapons[ii][1]);
  50. }
  51. for (new i = 0; i <= 12; i++)
  52. {
  53. if(weapons[i][0] == 2)
  54. {
  55. if(!IsAdmin(playerid))
  56. {
  57. new strtp[128];
  58. format(strtp,128,"Gracz %s najprawdopodobniej używa SOBEITA!",PlayerName(playerid));
  59. printf(strtp);
  60. Kara("BAN",playerid,"Anty Cheat","Detekcja sobeita",30,0,0);
  61. BanPlayer(playerid, -1, 30, 0, 0, "Detekcja sobeita");
  62. IsKara = true;
  63. }
  64. break;
  65. }
  66. }
  67. TogglePlayerControllable(playerid,true);
  68. SetPVarInt(playerid,"DetekcjaSobeita",4);
  69. ResetPlayerWeapons(playerid);
  70. WybierzSpawn(playerid);
  71. }
  72. }
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement