Advertisement
Guest User

twt

a guest
Sep 1st, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. #include <a_samp>
  2. #include <YSI\y_timers>
  3.  
  4. new createCar[MAX_PLAYERS] = INVALID_VEHICLE_ID;
  5. static Float:pPos[3];
  6.  
  7. public OnPlayerSpawn(playerid)
  8. {
  9. defer Sobeit_Check(playerid);
  10. return (true);
  11. }
  12.  
  13. timer Sobeit_Check[5](playerid)
  14. {
  15. GetPlayerPos(playerid,pPos[0],pPos[1],pPos[2]);
  16.  
  17. createCar[playerid] = AddStaticVehicleEx (457, pPos[0],pPos[1],pPos[2],180.0, random(200), random(200), 15);
  18. PutPlayerInVehicle(playerid, createCar[playerid], 0);
  19.  
  20. defer Sobeit_Check_1(playerid);
  21. return (true);
  22. }
  23.  
  24. timer Sobeit_Check_1[5](playerid)
  25. {
  26. RemovePlayerFromVehicle(playerid);
  27. DestroyVehicle(createCar[playerid]);
  28.  
  29. defer Sobeit_Check_2(playerid);
  30. return (true);
  31. }
  32.  
  33. timer Sobeit_Check_2[150](playerid)
  34. {
  35. if(FindWeapon(playerid,2))
  36. {
  37. SendClientMessage(playerid,-1,"{FC586E}Sucks to be a hacker like you, remove them if you want to play here !");
  38. defer Ban_Kick(playerid);
  39. }
  40. return (true);
  41. }
  42.  
  43. timer Ban_Kick[500](playerid)
  44. {
  45. Ban(playerid);
  46. return (true);
  47. }
  48.  
  49. stock FindWeapon(playerid, weaponid)
  50. {
  51. new
  52. weapon,
  53. ammo;
  54.  
  55. for (new i = 0; i < 13; i ++)
  56. {
  57. GetPlayerWeaponData(playerid, i, weapon, ammo);
  58. if (weapon == weaponid) return (true);
  59. }
  60. return (false);
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement