erewefrfwfrewq

Untitled

Nov 11th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. //public OtherTimer(playerid)
  2. if(GetPlayerSpeedd(playerid) > 183 && strcmp(AnimLib, "PARACHUTE", true) == 0 && strcmp(AnimName, "FALL_SKYDIVE_ACCEL", true) == 0)
  3. {
  4. new lstring[110], lname[MAX_PLAYER_NAME];
  5. GetPlayerName(playerid, lname, MAX_PLAYER_NAME);
  6. format(lstring, sizeof(lstring), "FiveGame: {D67ED5}%s {51C255}a fost deconectat, motiv:{ADD63C} Fly Hack!", lname);
  7. SendClientMessage(playerid, -1, lstring);
  8. Kick(playerid);
  9. }
  10.  
  11. tock GetPlayerSpeed(playerid, get3d) return GetVehicleVelocity(pInfo[playerid][aVar][1], FlSP[0], FlSP[1], FlSP[2]), SpeedCheck(FlSP[0], FlSP[1], FlSP[2], 100.0, get3d);
  12. stock GetPlayerSpeedd(playerid)//fly hack speed
  13. {
  14. new Float:Coord[4];
  15. GetPlayerVelocity(playerid, Coord[0], Coord[1], Coord[2]);
  16. Coord[3] = floatsqroot(floatpower(floatabs(Coord[0]), 2.0) + floatpower(floatabs(Coord[1]), 2.0) + floatpower(floatabs(Coord[2]), 2.0)) * 283.3;
  17. return floatround(Coord[3]);
  18. }
  19. stock ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5) {
  20. new Float:posx, Float:posy, Float:posz;
  21. new Float:oldposx, Float:oldposy, Float:oldposz;
  22. new Float:tempposx, Float:tempposy, Float:tempposz;
  23. GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  24. foreach(Player,i) {
  25. if(GetPlayerInterior(playerid) == GetPlayerInterior(i) && GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)) {
  26. if(!BigEar[i]) {
  27. GetPlayerPos(i, posx, posy, posz);
  28. tempposx = (oldposx -posx);
  29. tempposy = (oldposy -posy);
  30. tempposz = (oldposz -posz);
  31. if(((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
  32. SendClientMessage(i, col1, string);
  33. else if(((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
  34. SendClientMessage(i, col2, string);
  35. else if(((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
  36. SendClientMessage(i, col3, string);
  37. else if(((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
  38. SendClientMessage(i, col4, string);
  39. else if(((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  40. SendClientMessage(i, col5, string);
  41.  
  42. }
  43. else SendClientMessage(i, col1, string);
  44. }
  45. }
  46. return 1;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment