TonyVk

Untitled

Aug 24th, 2015
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. forward TeleProv(playerid);
  2. public TeleProv(playerid)
  3. {
  4. if(MozeTele[playerid] == 1)
  5. {
  6. if(UlogovanProvera[playerid] == 1 && PrviSpawn[playerid] == 1 && UsoVozilo[playerid] == 0 && DozvoliPort[playerid] == 1 && DozvoliTune[playerid] == 3)
  7. {
  8. new Pauziran=0;
  9. if(IsPlayerPaused(playerid))
  10. {
  11. Pauziran=1;
  12. }
  13. new Float:Xa,Float:Ya,Float:Za;
  14. new Suvozac=0;
  15. new playerState = GetPlayerState(playerid);
  16. if(playerState == PLAYER_STATE_PASSENGER)
  17. {
  18. Suvozac=1;
  19. }
  20. GetPlayerPos(playerid,Xa,Ya,Za);
  21. if(GetDistanceToPoint(playerid,ACX[playerid],ACY[playerid],ACZ[playerid]) > 15 && GetSpeed(playerid) <128 && Suvozac==0 && Pauziran == 0)
  22. {
  23. if(Ispisano1[playerid] == 0)
  24. {
  25. if(!IsPlayerInRangeOfPoint(playerid,150,367.3311,104.3731,1025.7891) && !IsPlayerInRangeOfPoint(playerid,5,617.5367,-1.9900,1000.8927) && !IsPlayerInRangeOfPoint(playerid,5,617.5291,-1.9905,1000.7328)
  26. && !IsPlayerInRangeOfPoint(playerid,5,615.2864,-124.2390,997.6987) && !IsPlayerInRangeOfPoint(playerid,5,-2721.6926,217.0606,4.0976) && !IsPlayerInRangeOfPoint(playerid,5,-1936.5402,244.7962,34.3383)
  27. && !IsPlayerInRangeOfPoint(playerid,5,616.7786,-74.8152,997.7735) && !IsPlayerInRangeOfPoint(playerid,5,2644.8347,-2042.6929,13.4003) && !IsPlayerInRangeOfPoint(playerid,5,1041.6500,-1020.0865,32.1711)
  28. && !IsPlayerInRangeOfPoint(playerid,5,2386.2327,1048.5090,10.6409))
  29. {
  30. new string[126];
  31. PORUKAA
  32. Ispisano1[playerid] = 1;
  33. SetTimerEx("VracajIspis1",5000,false,"i",playerid);
  34. }
  35. }
  36. }
  37. ACX[playerid] = Xa;
  38. ACY[playerid] = Ya;
  39. ACZ[playerid] = Za;
  40. }
  41. }
  42. if(DozvoliTune[playerid] < 3)
  43. {
  44. DozvoliTune[playerid]++;
  45. }
  46. DozvoliPort[playerid] = 1;
  47. UsoVozilo[playerid] = 0;
  48. return 1;
  49. }
Advertisement
Add Comment
Please, Sign In to add comment