Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward MatuojaGreiti();
- public MatuojaGreiti()
- {
- new pGreitis;
- for(new playerid; playerid < MAX_PLAYERS; playerid++) // reikalinga
- {
- if(!IsPlayerConnected(playerid) || IsPlayerNPC(playerid)) continue;
- if(IsPlayerInRangeOfPoint(playerid, 20.0, 609.3229980,-421.7030029,17.9139996)
- || IsPlayerInRangeOfPoint(playerid, 20.0, 879.6562500,-565.4863281,18.4860001)
- || IsPlayerInRangeOfPoint(playerid, 20.0, 676.1539917,-637.9180298,15.3360004)
- || IsPlayerInRangeOfPoint(playerid, 20.0, 1278.1999512,210.4570007,18.5550003)
- || IsPlayerInRangeOfPoint(playerid, 20.0, 2490.4929199,36.4609985,25.4839993)
- || IsPlayerInRangeOfPoint(playerid, 20.0, 1362.9843750,222.4619141,18.5550003)
- || IsPlayerInRangeOfPoint(playerid, 20.0, -44.5206,-207.1252,1.3648)
- || IsPlayerInRangeOfPoint(playerid, 20.0, 2338.6120605,161.2530060,25.4839993)
- || IsPlayerInRangeOfPoint(playerid, 20.0, 2349.1962891,35.6718750,25.4839993))
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- if(!IsABike(vehicleid))
- {
- if(zInfo[playerid][specialybe] != 1 && zInfo[playerid][specialybe] != 5 && zInfo[playerid][specialybe] != 15)
- if(GetPlayerScore(playerid)< 5000) return SendClientMessage(playerid,Orange,"• JÛS VIRÐIJOTE GREITÁ,BET ESATE NAUJOKAS TODËL NEGAUNATE ÁTARIMO •");
- {
- pGreitis = GetSpeed(playerid);
- if(pGreitis > 90)
- {
- if(zInfo[playerid][GreitiMatuoja] <= gettime())
- {
- zInfo[playerid][GreitiMatuoja] = gettime() + 4;
- GameTextForPlayer(playerid, "~W~Virsijote leistina ~R~90KM/H ~W~greiti", 5000, 4);
- SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+2);
- }
- }
- }
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement