Advertisement
Domce_Mobce

Untitled

May 16th, 2015
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. forward MatuojaGreiti();
  2. public MatuojaGreiti()
  3. {
  4. new pGreitis;
  5. for(new playerid; playerid < MAX_PLAYERS; playerid++) // reikalinga
  6. {
  7. if(!IsPlayerConnected(playerid) || IsPlayerNPC(playerid)) continue;
  8. if(IsPlayerInRangeOfPoint(playerid, 20.0, 609.3229980,-421.7030029,17.9139996)
  9. || IsPlayerInRangeOfPoint(playerid, 20.0, 879.6562500,-565.4863281,18.4860001)
  10. || IsPlayerInRangeOfPoint(playerid, 20.0, 676.1539917,-637.9180298,15.3360004)
  11. || IsPlayerInRangeOfPoint(playerid, 20.0, 1278.1999512,210.4570007,18.5550003)
  12. || IsPlayerInRangeOfPoint(playerid, 20.0, 2490.4929199,36.4609985,25.4839993)
  13. || IsPlayerInRangeOfPoint(playerid, 20.0, 1362.9843750,222.4619141,18.5550003)
  14. || IsPlayerInRangeOfPoint(playerid, 20.0, -44.5206,-207.1252,1.3648)
  15. || IsPlayerInRangeOfPoint(playerid, 20.0, 2338.6120605,161.2530060,25.4839993)
  16. || IsPlayerInRangeOfPoint(playerid, 20.0, 2349.1962891,35.6718750,25.4839993))
  17. {
  18. new vehicleid = GetPlayerVehicleID(playerid);
  19. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  20. {
  21. if(!IsABike(vehicleid))
  22. {
  23. if(zInfo[playerid][specialybe] != 1 && zInfo[playerid][specialybe] != 5 && zInfo[playerid][specialybe] != 15)
  24. if(GetPlayerScore(playerid)< 5000) return SendClientMessage(playerid,Orange,"• JÛS VIRÐIJOTE GREITÁ,BET ESATE NAUJOKAS TODËL NEGAUNATE ÁTARIMO •");
  25. {
  26. pGreitis = GetSpeed(playerid);
  27. if(pGreitis > 90)
  28. {
  29. if(zInfo[playerid][GreitiMatuoja] <= gettime())
  30. {
  31. zInfo[playerid][GreitiMatuoja] = gettime() + 4;
  32. GameTextForPlayer(playerid, "~W~Virsijote leistina ~R~90KM/H ~W~greiti", 5000, 4);
  33. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+2);
  34. }
  35.  
  36. }
  37. }
  38. }
  39. }
  40. }
  41. }
  42. return 1;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement