TonyVk

Untitled

Aug 24th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. new DozvoliTune[MAX_PLAYERS]=0;
  2.  
  3. public OnEnterExitModShop(playerid, enterexit, interiorid)
  4. {
  5. if(enterexit == 1)
  6. {
  7. DozvoliTune[playerid] = 0;
  8. PopravkaVozila[playerid] = 1;
  9. }
  10. if(enterexit == 0)
  11. {
  12. DozvoliTune[playerid] = 0;
  13. PopravkaVozila[playerid] = 1;
  14. }
  15. return 1;
  16. }
  17.  
  18. forward TeleProv(playerid);
  19. public TeleProv(playerid)
  20. {
  21. if(UlogovanProvera[playerid] == 1 && PrviSpawn[playerid] == 1 && UsoVozilo[playerid] == 0 && DozvoliPort[playerid] == 1 && DozvoliTune[playerid] == 3)//DODAJ SAMO OVO ZADNJE POD TAJ if
  22. {
  23. new Pauziran=0;
  24. if(IsPlayerPaused(playerid))
  25. {
  26. Pauziran=1;
  27. }
  28. new Float:Xa,Float:Ya,Float:Za;
  29. new Suvozac=0;
  30. new playerState = GetPlayerState(playerid);
  31. if(playerState == PLAYER_STATE_PASSENGER)
  32. {
  33. Suvozac=1;
  34. }
  35. GetPlayerPos(playerid,Xa,Ya,Za);
  36. if(GetDistanceToPoint(playerid,ACX[playerid],ACY[playerid],ACZ[playerid]) > 15 && GetSpeed(playerid) <128 && Suvozac==0 && Pauziran == 0)
  37. {
  38. new string[100];
  39. format(string,sizeof(string), "[Tony:AC] "CRVENA"Igrac %s moguce da ima Teleport Hack!", GetName(playerid));
  40. AdminGameMaster(-1, string);
  41. }
  42. ACX[playerid] = Xa;
  43. ACY[playerid] = Ya;
  44. ACZ[playerid] = Za;
  45. }
  46. if(DozvoliTune[playerid] < 3)//DODAJ I OVAJ DIO TAKO ISTO PRI KRAJU
  47. {
  48. DozvoliTune[playerid]++;
  49. }
  50. DozvoliPort[playerid] = 1;
  51. UsoVozilo[playerid] = 0;
  52. return 1;
  53. }
Advertisement
Add Comment
Please, Sign In to add comment