Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OtherTimer(playerid)
- {
- wct = 0, ws = "WANTED LIST~n~~n~ ";
- foreach(new i : Player) if(pInfo[i][pStatus] == 1)
- {
- pInfo[i][aVar][10]++;
- if(IsPlayerInAnyVehicle(i))
- {
- ci = GetPlayerSpeed(i, 0), GetVehicleHealth(pInfo[i][aVar][1], hpvv), GetVehicleParamsEx(pInfo[i][aVar][1], vParams[0],vParams[1],vParams[2],vParams[3],vParams[4],vParams[5],vParams[6]),
- format(SpStr, sizeof(SpStr), "Speed: ~y~%d km/h", ci), PlayerTextDrawSetString(i, TSpeedometer[i][0], SpStr),
- format(SpStr, sizeof(SpStr), "Status: %s ~w~/ ~y~%0.0f%", vParams[3] <= 0 ? ("~y~Unlocked") : ("~r~Locked"), hpvv), PlayerTextDrawSetString(i, TSpeedometer[i][2], SpStr);
- if(vVar[3][pInfo[i][aVar][1]] <= 0 ? format(SpStr, sizeof(SpStr), "Fuel: ~r~No fuel") : format(SpStr, sizeof(SpStr), "Fuel: ~y~%d%", vVar[3][pInfo[i][aVar][1]]))
- PlayerTextDrawSetString(i, TSpeedometer[i][1], SpStr);
- if(vVar[1][pInfo[i][aVar][1]] == 1 && !IsPlayerAfk(i)) format(SpStr, sizeof(SpStr), "Kilometers: ~y~%.0f", KMVeh[pInfo[i][aVar][1]]), PlayerTextDrawSetString(i, TSpeedometer[i][3], SpStr), KMVeh[pInfo[i][aVar][1]] += ci*0.0006;
- if(pInfo[i][aVar][72] > -1 && pInfo[i][pJob] == 4 && vVar[1][pInfo[i][aVar][72]] == 0) format(SpStr, sizeof(SpStr), "Distance: ~y~%0.2fm", GetPlayerDistanceFromPoint(i, pInfo[i][PosW][0], pInfo[i][PosW][1], pInfo[i][PosW][2])), PlayerTextDrawSetString(i, RaceAr[i], SpStr);
- if(ci > 220 && GetPlayerState(i) == PLAYER_STATE_DRIVER && !BreakSC(pInfo[i][aVar][1]))
- format(AdminWText, sizeof(AdminWText), "FiveGame: {D67ED5} Anti-Cheat: %s{51C255} is suspected of Speed Hack, check it! [Speed: %d km/h | Vehicle: %s]", GetName(i), ci, g_VehicleNames[GetVehicleModel(pInfo[i][aVar][1])-400]), SendAdminMessage(i, COLOR_ADMWARNING, AdminWText);
- }
- // ----------------by Andu
- if(IsPlayerConnected(i))
- {
- if(timpinchiriere[i] > 0)
- {
- timpinchiriere[i] --;
- }
- if(timpinchiriere[i] == 1)
- {
- ShowPlayerDialog(i, DIALOG_INCHIRIERECONT, DIALOG_STYLE_MSGBOX, "{ffffff}Prelungire:", "{ffffff}Timpul de inchiriere a expirat, vrei sa prelugnesti in continuare?", "Da", "Nu");
- }
- }
- if(GetPlayerSpeedd(playerid) > 60 && strcmp(AnimLib, "PARACHUTE", true) == 0 && strcmp(AnimName, "FALL_SKYDIVE_ACCEL", true) == 0)
- {
- new lstring[110];
- format(lstring, sizeof (lstring), "FiveGame: {D67ED5}%s {51C255}a fost deconectat, motiv:{ADD63C} Fly Hack!", GetPlayerName(playerid));
- SendClientMessage(playerid, -1, lstring);
- Kick(playerid);
- }
- // ----------------
- if(pInfo[i][pTog][7] == 1)
- {
- drunk2 = GetPlayerDrunkLevel(i);
- if(drunk2 < 100) SetPlayerDrunkLevel(i,2000);
- else
- {
- if(pInfo[i][aVar][105] != drunk2)
- {
- fps = pInfo[i][aVar][105] - drunk2;
- if((fps > 0) && (fps < 200))
- pInfo[i][aVar][106] = fps;
- pInfo[i][aVar][105] = drunk2;
- }
- }
- format(pInfo[i][pGText], 20, "%d~W~~n~~r~~h~%d", pInfo[i][aVar][106]-1, GetPlayerPing(i)), PlayerTextDrawSetString(i, Textdraw15[i], pInfo[i][pGText]);
- }
- if(pInfo[i][aVar][70] > -1 && pInfo[pInfo[i][aVar][70]][pStatus] == 1)
- {
- if(innt[pInfo[i][aVar][70]] != innt[i] || vwp[pInfo[i][aVar][70]] != vwp[i])
- SetPlayerInteriorEx(i, innt[pInfo[i][aVar][70]]), SetPlayerVirtualWorldEx(i, vwp[pInfo[i][aVar][70]]), PlayerSpectatePlayer(i, pInfo[i][aVar][70]);
- if(IsPlayerInAnyVehicle(pInfo[i][aVar][70]) && pInfo[i][aVar][116] != 1) pInfo[i][aVar][116] = 1, PlayerSpectateVehicle(i, pInfo[pInfo[i][aVar][70]][aVar][1]);
- if((!IsPlayerInAnyVehicle(pInfo[i][aVar][70])) && pInfo[i][aVar][116] != 2) pInfo[i][aVar][116] = 2, PlayerSpectatePlayer(i, pInfo[i][aVar][70]);
- format(MSt, sizeof(MSt), "Name: ~y~%s ~w~(~y~%d~w~)", GetName(pInfo[i][aVar][70]), pInfo[i][aVar][70]), PlayerTextDrawSetString(i, Spectate[i][0], MSt);
- GetPlayerHealth(pInfo[i][aVar][70], health);
- format(MSt, sizeof(MSt), "Health: ~y~%.1f", health), PlayerTextDrawSetString(i, Spectate[i][1], MSt);
- GetPlayerArmour(pInfo[i][aVar][70], health);
- format(MSt, sizeof(MSt), "Armour: ~y~%.1f", health), PlayerTextDrawSetString(i, Spectate[i][2], MSt);
- if(IsPlayerInAnyVehicle(pInfo[i][aVar][70])) GetVehicleHealth(pInfo[pInfo[i][aVar][70]][aVar][1], xx);
- format(MSt, sizeof(MSt), IsPlayerInAnyVehicle(pInfo[i][aVar][70]) ? ("Speed: ~y~%d km/h (%.1f HP)") : (""), GetPlayerSpeed(pInfo[i][aVar][70], 0), xx), PlayerTextDrawSetString(i, Spectate[i][3], MSt);
- }
- if(pInfo[i][pTog][6] == 1) GetPlayerHealth(i, ph), format(MSt, sizeof(MSt), "%0.0f", ph), PlayerTextDrawSetString(i, HH[i], MSt);
- if(pInfo[i][aVar][113] != 0 && pInfo[i][aVar][113] < gtm) format(stmsg[i], 100, "Time is over, you lose the keys from %s.", g_VehicleNames[GetVehicleModel(Veh[pInfo[i][aVar][109]][pInfo[i][aVar][110]][ServerID])-400]), SendClientMessage(i, COLOR_YELLOW, stmsg[i]), pInfo[i][aVar][109] = -1, pInfo[i][aVar][110] = -1, pInfo[i][aVar][113] = 0;
- if(pInfo[i][aVar][109] != -1 && ((Veh[pInfo[i][aVar][109]][pInfo[i][aVar][110]][vSp] == 1) || GetVehicleModel(Veh[pInfo[i][aVar][109]][pInfo[i][aVar][110]][ServerID]) != Veh[pInfo[i][aVar][109]][pInfo[i][aVar][110]][Model] || pInfo[pInfo[i][aVar][109]][pID] != Veh[pInfo[i][aVar][109]][pInfo[i][aVar][110]][Owner])) SendClientMessage(i, COLOR_YELLOW, "You lose the keys from vehicle, vehicle destroyed or vehicle was sold."),
- pInfo[i][aVar][109] = -1, pInfo[i][aVar][110] = -1, pInfo[i][aVar][113] = 0;
- if(pInfo[i][pMute] > 0)
- {
- pInfo[i][pMute]--;
- if(pInfo[i][pMute] == 0) pInfo[i][pMute] = -1, SendClientMessage(i, -1, "* Your mute time has expired.");
- }
- if(pInfo[i][pWantedLevel] > 0)
- {
- pInfo[i][pExpWtd]--;
- format(MSt, sizeof(MSt), "~r~%d ~w~~h~minutes left", pInfo[i][pExpWtd]/60), PlayerTextDrawSetString(i, ExpWanted[i], MSt);
- if(pInfo[i][pExpWtd] < 60)
- {
- pInfo[i][pWantedLevel]--, pInfo[i][pExpWtd] = 480, SetPlayerWantedLevel(i, pInfo[i][pWantedLevel]);
- if(pInfo[i][pWantedLevel] == 0) pInfo[i][pExpWtd] = 0, pInfo[i][pSuu] = 0, PlayerTextDrawHide(i, ExpWanted[i]);
- }
- if(wct < 10) wct++, format(ws, 339, "%s%s (%d) - %s%d~n~~w~~h~", ws, GetName(i), i, pInfo[i][pSuu] == 0 ? ("~g~") : ("~r~"), pInfo[i][pWantedLevel]);
- }
- if(pInfo[i][pJailed] >= 1)
- {
- pInfo[i][pJailed]--;
- format(MSt, sizeof(MSt), "Jail time left: ~r~%i sec.", pInfo[i][pJailed]), PlayerTextDrawSetString(i, TJailed[i], MSt);
- if(pInfo[i][pJailed] < 1) pInfo[i][pJailed] = -1, PlayerTextDrawHide(i, TJailed[i]), SetPlayerVirtualWorldEx(i, 0),
- SetPlayerPos(i, 1542.2871,-1675.4178,13.5542), GameTextForPlayer(i, "~w~ai fost eliberat", 1000, 1), RemovePlayerAttachedObject(i, 7), DisablePlayerCheckpoint(i), CP[i] = 0;
- }
- if(pInfo[i][pAJailed] >= 1)
- {
- pInfo[i][pAJailed]--;
- format(MSt, sizeof(MSt), "AJail time left: ~r~%i sec.", pInfo[i][pAJailed]), PlayerTextDrawSetString(i, TJailed[i], MSt);
- if(pInfo[i][pAJailed] == 0) pInfo[i][pAJailed] = -1, PlayerTextDrawHide(i, TJailed[i]),
- SpawnPlayer(i), GameTextForPlayer(i, "~w~ai fost eliberat", 1000, 1);
- } ///1790.2830,-1907.5171,13.3968 spawncivil
- if(pInfo[i][aVar][85] == 0 && (IsPlayerInRangeOfPoint(i, 40.0, 1107.8771,-1794.3970,16.6937) || IsPlayerInRangeOfPoint(i, 85.0, 1254.3804,-755.3613,5083.5054) || IsPlayerInRangeOfPoint(i, 20.0, 1168.6505,-1489.7057,22.7568) || IsPlayerInRangeOfPoint(i, 45.0, -60.6408,-1128.0583,1.1781) ||
- IsPlayerInRangeOfPoint(i, 15.0, 2102.3037,2235.5540,11.0234) || IsPlayerInRangeOfPoint(i, 15.0, 1178.9655,-1323.4093,14.1461) || IsPlayerInRangeOfPoint(i, 15.0, 332.0587,-1516.1661,35.9672) ||
- IsPlayerInRangeOfPoint(i, 15.0, 545.5265,-1283.1184,17.2482) || IsPlayerInRangeOfPoint(i, 15.0, 1628.1425,584.9908,1.7578) || IsPlayerInRangeOfPoint(i, 18.0, 2131.2944,1403.6899,11.1328) || IsPlayerInRangeOfPoint(i, 10.0, -566.2581,-1600.5735,-41.9882) || IsPlayerInRangeOfPoint(i, 90.0, -1424.7450,1615.7667,1052.5313) || IsPlayerInRangeOfPoint(i, 250.0, -376.1633,-1432.8551,25.7266)
- || (IsPlayerInRangeOfPoint(i, 25.0, -2801.5784,1784.9972,144.9927) && innt[i] == 2) || (IsPlayerInRangeOfPoint(i, 15.0, 2312.3843,-7.3693,26.7422) && (vwp[i] == 18 || vwp[i] == 54)) || (IsPlayerInRangeOfPoint(i, 15.0, 825.2582,5.4109,1004.1870) && innt[i] == 3)))
- TextDrawShowForPlayer(i, SafeZ), pInfo[i][aVar][85] = 1;
- //1790.2830,-1907.5171,13.3968 spawncivil
- if(pInfo[i][aVar][85] == 1 && !(IsPlayerInRangeOfPoint(i, 40.0, 1107.8771,-1794.3970,16.6937) || IsPlayerInRangeOfPoint(i, 85.0, 1254.3804,-755.3613,5083.5054) || IsPlayerInRangeOfPoint(i, 20.0, 1168.6505,-1489.7057,22.7568) || IsPlayerInRangeOfPoint(i, 45.0, -60.6408,-1128.0583,1.1781) ||
- IsPlayerInRangeOfPoint(i, 25.0, 2102.3037,2235.5540,11.0234) || IsPlayerInRangeOfPoint(i, 25.0, 1178.9655,-1323.4093,14.1461) || IsPlayerInRangeOfPoint(i, 25.0, 332.0587,-1516.1661,35.9672) ||
- IsPlayerInRangeOfPoint(i, 25.0, 545.5265,-1283.1184,17.2482) || IsPlayerInRangeOfPoint(i, 30.0, 1628.1425,584.9908,1.7578) || IsPlayerInRangeOfPoint(i, 28.0, 2131.2944,1403.6899,11.1328) || IsPlayerInRangeOfPoint(i, 50.0, -566.2581,-1600.5735,-41.9882) || IsPlayerInRangeOfPoint(i, 90.0, -1424.7450,1615.7667,1052.5313) || IsPlayerInRangeOfPoint(i, 250.0, -376.1633,-1432.8551,25.7266)
- || (IsPlayerInRangeOfPoint(i, 25.0, -2801.5784,1784.9972,144.9927) && innt[i] == 2) || (IsPlayerInRangeOfPoint(i, 25.0, 2312.3843,-7.3693,26.7422) && (vwp[i] == 18 || vwp[i] == 54)) || (IsPlayerInRangeOfPoint(i, 35.0, 825.2582,5.4109,1004.1870) && innt[i] == 3)))
- TextDrawHideForPlayer(i, SafeZ), pInfo[i][aVar][85] = 0;
- if(pInfo[i][aVar][71] != 0 && pInfo[i][aVar][71] < gtm) pInfo[i][aVar][71] = 0, TogglePlayerControllable(i, 1);
- if(pInfo[i][aVar][36] == 2 && (IsPlayerInRangeOfPoint(i, 3.0, 1025.0500,-1024.2300,32.1016) || IsPlayerInRangeOfPoint(i, 3.3, 487.6800,-1740.8700,11.1395) || IsPlayerInRangeOfPoint(i, 3.3, -1421.0455,2583.3281,55.8433) || IsPlayerInRangeOfPoint(i, 3.3, -1904.3900,284.9700,41.0469)
- || IsPlayerInRangeOfPoint(i, 3.0, -2425.9099,1022.3300,50.3977) || IsPlayerInRangeOfPoint(i, 3.2, 1975.6000,2162.1599,11.0703) || IsPlayerInRangeOfPoint(i, 3.2, 2065.3799,-1831.5100,13.54693) || IsPlayerInRangeOfPoint(i, 3.2, -99.5500,1118.3600,19.7417) || IsPlayerInRangeOfPoint(i, 3.2, 721.0700,-455.9400,16.3359)))
- {
- SendClientMessage(i, COLOR_YELLOW, "Vehiculul a fost modificat cu succes, transporta sacul cu bani la checkpoint-ul de pe harta."), pInfo[i][aVar][36] = 1;
- new rand = random(sizeof(rb));
- SetPlayerCheckpoint(i, rb[rand][0], rb[rand][1], rb[rand][2], 6.5), CP[i] = 73;
- }
- if(GetPlayerMoney(i) != pInfo[i][pMoney]) ResetPlayerMoney(i), GivePlayerMoney(i, pInfo[i][pMoney]);
- if(pInfo[i][pPremium] != 0 && pInfo[i][pPremium] < gtm) SendClientMessage(i, COLOR_LIGHTRED, "* Your premium account has expired."), pInfo[i][pPremium] = 0;
- if(WType == 1 && (WarOnOff > 0 || War2OnOff > 0) && pInfo[i][aVar][70] == -1)
- {
- if(Iter_Contains(Warp, i))
- {
- if(pInfo[i][aVar][79] == 0 && IsPlayerInArea(i, Turfs[WarNR-1][MinX],Turfs[WarNR-1][MinY],Turfs[WarNR-1][MaxX],Turfs[WarNR-1][MaxY])) pInfo[i][aVar][79] = 1;
- if(pInfo[i][aVar][79] == 1 && !IsPlayerInArea(i, Turfs[WarNR-1][MinX],Turfs[WarNR-1][MinY],Turfs[WarNR-1][MaxX],Turfs[WarNR-1][MaxY])) pInfo[i][aVar][79] = gtm+5;
- if(pInfo[i][aVar][79] > 1 && IsPlayerInArea(i, Turfs[WarNR-1][MinX],Turfs[WarNR-1][MinY],Turfs[WarNR-1][MaxX],Turfs[WarNR-1][MaxY])) pInfo[i][aVar][79] = 0;
- if(pInfo[i][aVar][79] > 1 && !IsPlayerInArea(i, Turfs[WarNR-1][MinX],Turfs[WarNR-1][MinY],Turfs[WarNR-1][MaxX],Turfs[WarNR-1][MaxY]))
- {
- format(stmsg[i], 80, "You have %d seconds to return on turf otherwise you will automatically killed.", pInfo[i][aVar][79]-gtm), SendClientMessage(i, COLOR_DARKGRAY, stmsg[i]);
- if(pInfo[i][aVar][79] == gtm)
- {
- pInfo[i][aVar][79] = 0, SetPlayerHealth(i, 0);
- new result[44];
- switch(Defend) {
- case 9: if(pInfo[i][pMember] == Attack) WarKills2++, format(result, sizeof(result), "Grove Street: ~p~%d kills", WarKills2), TextDrawSetString(WarTD[3], result);
- case 10: if(pInfo[i][pMember] == Attack) WarKills2++, format(result, sizeof(result), "The Ballas Family: ~p~%d kills", WarKills2), TextDrawSetString(WarTD[3], result);
- case 11: if(pInfo[i][pMember] == Attack) WarKills2++, format(result, sizeof(result), "Los Santos Vagos: ~p~%d kills", WarKills2), TextDrawSetString(WarTD[3], result);
- case 12: if(pInfo[i][pMember] == Attack) WarKills2++, format(result, sizeof(result), "La Cosa Nostra: ~p~%d kills", WarKills2), TextDrawSetString(WarTD[3], result);
- }
- switch(Attack) {
- case 9: if(pInfo[i][pMember] == Defend) WarKills1++, format(result, sizeof(result), "Grove Street: ~p~%d kills", WarKills1), TextDrawSetString(WarTD[2], result);
- case 10: if(pInfo[i][pMember] == Defend) WarKills1++, format(result, sizeof(result), "The Ballas Family: ~p~%d kills", WarKills1), TextDrawSetString(WarTD[2], result);
- case 11: if(pInfo[i][pMember] == Defend) WarKills1++, format(result, sizeof(result), "Los Santos Vagos: ~p~%d kills", WarKills1), TextDrawSetString(WarTD[2], result);
- case 12: if(pInfo[i][pMember] == Defend) WarKills1++, format(result, sizeof(result), "La Cosa Nostra: ~p~%d kills", WarKills1), TextDrawSetString(WarTD[2], result);
- }
- }
- }
- }
- if(Iter_Contains(Warp2, i))
- {
- if(pInfo[i][aVar][79] == 0 && IsPlayerInArea(i, Turfs[War2NR-1][MinX],Turfs[War2NR-1][MinY],Turfs[War2NR-1][MaxX],Turfs[War2NR-1][MaxY])) pInfo[i][aVar][79] = 1;
- if(pInfo[i][aVar][79] == 1 && !IsPlayerInArea(i, Turfs[War2NR-1][MinX],Turfs[War2NR-1][MinY],Turfs[War2NR-1][MaxX],Turfs[War2NR-1][MaxY])) pInfo[i][aVar][79] = gtm+5;
- if(pInfo[i][aVar][79] > 1 && IsPlayerInArea(i, Turfs[War2NR-1][MinX],Turfs[War2NR-1][MinY],Turfs[War2NR-1][MaxX],Turfs[War2NR-1][MaxY])) pInfo[i][aVar][79] = 0;
- if(pInfo[i][aVar][79] > 1 && !IsPlayerInArea(i, Turfs[War2NR-1][MinX],Turfs[War2NR-1][MinY],Turfs[War2NR-1][MaxX],Turfs[War2NR-1][MaxY]))
- {
- format(stmsg[i], 80, "You have %d seconds to return on turf otherwise you will automatically killed.", pInfo[i][aVar][79]-gtm), SendClientMessage(i, COLOR_DARKGRAY, stmsg[i]);
- if(pInfo[i][aVar][79] == gtm)
- {
- pInfo[i][aVar][79] = 0, SetPlayerHealth(i, 0);
- new result[44];
- switch(Defend2) {
- case 9: if(pInfo[i][pMember] == Attack2) War2Kills2++, format(result, sizeof(result), "Grove Street: ~p~%d kills", War2Kills2), TextDrawSetString(War2TD[3], result);
- case 10: if(pInfo[i][pMember] == Attack2) War2Kills2++, format(result, sizeof(result), "The Ballas Family: ~p~%d kills", War2Kills2), TextDrawSetString(War2TD[3], result);
- case 11: if(pInfo[i][pMember] == Attack2) War2Kills2++, format(result, sizeof(result), "Los Santos Vagos: ~p~%d kills", War2Kills2), TextDrawSetString(War2TD[3], result);
- case 12: if(pInfo[i][pMember] == Attack2) War2Kills2++, format(result, sizeof(result), "La Cosa Nostra: ~p~%d kills", War2Kills2), TextDrawSetString(War2TD[3], result); }
- switch(Attack2) {
- case 9: if(pInfo[i][pMember] == Defend2) War2Kills1++, format(result, sizeof(result), "Grove Street: ~p~%d kills", War2Kills1), TextDrawSetString(War2TD[2], result);
- case 10: if(pInfo[i][pMember] == Defend2) War2Kills1++, format(result, sizeof(result), "The Ballas Family: ~p~%d kills", War2Kills1), TextDrawSetString(War2TD[2], result);
- case 11: if(pInfo[i][pMember] == Defend2) War2Kills1++, format(result, sizeof(result), "Los Santos Vagos: ~p~%d kills", War2Kills1), TextDrawSetString(War2TD[2], result);
- case 12: if(pInfo[i][pMember] == Defend2) War2Kills1++, format(result, sizeof(result), "La Cosa Nostra: ~p~%d kills", War2Kills1), TextDrawSetString(War2TD[2], result); }
- }
- }
- }
- }
- if(pInfo[i][pPay] < gtm) pInfo[i][pPay] = gtm+3600, PayDay(i);
- if(pInfo[i][aVar][21] != 10 && pInfo[i][pGunLic] != 1 && vwp[i] == 999)
- {
- format(MSt, 29, "time remaining: ~y~%02i:%02i", (pInfo[i][aVar][21]-gtm) / 60, (pInfo[i][aVar][21]-gtm) % 60), PlayerTextDrawSetString(i, TExam[i][0], MSt);
- if(pInfo[i][aVar][21] < gtm) SetPlayerVirtualWorldEx(i, 0), SetPlayerInteriorEx(i, 0), SetPlayerPos(i, Business[pInfo[i][aVar][63]][EnterX], Business[pInfo[i][aVar][63]][EnterY], Business[pInfo[i][aVar][63]][EnterZ]), pInfo[i][aVar][63] = -1, PlayerTextDrawHide(i, TExam[i][0]), PlayerTextDrawHide(i, TExam[i][1]),
- GameTextForPlayer(i, "~n~~n~~r~weapon lesson failed~n~time out", 5000, 3), SetPlayerHealth(i, pInfo[i][pTruck]), ResetPlayerWeapons(i);
- }
- if(IsPlayerInRangeOfPoint(i, 18.0, 488.5744,-1731.4445,11.2409) || IsPlayerInRangeOfPoint(i, 35.0, 1026.1573,-1035.2090,31.5135) || IsPlayerInRangeOfPoint(i, 18.0, 2076.1414,-1831.4353,13.5545) || IsPlayerInRangeOfPoint(i, 18.0, 2394.0952,1474.4437,10.6719)
- || IsPlayerInRangeOfPoint(i, 18.0, 719.9330,-467.4828,16.3437) || IsPlayerInRangeOfPoint(i, 35.0, 1962.2375,2162.1414,10.8203) || IsPlayerInRangeOfPoint(i, 18.0, 1962.2375,2162.1414,10.8203) || IsPlayerInRangeOfPoint(i, 18.0, -1420.6803,2595.4841,55.7089) || IsPlayerInRangeOfPoint(i, 18.0, -100.1967,1106.9929,19.7422)) { DisableRemoteVehicleCollisions(i, 1), pInfo[i][aVar][57] = 1; }
- else { if(pInfo[i][aVar][57] == 1) DisableRemoteVehicleCollisions(i, pInfo[i][aVar][72] != -1 ? (1) : (0)), pInfo[i][aVar][57] = 0; }
- if(pInfo[i][aVar][63] != -1 && GetPlayerTargetActor(i) != 65535 && (GetPlayerWeapon(i) == 24 || GetPlayerWeapon(i) == 30 || GetPlayerWeapon(i) == 29) && !IsACop(i))
- {
- if(GetPlayerTargetActor(i) == arob1 || GetPlayerTargetActor(i) == arob2)
- {
- if(pInfo[i][pScore] < 4) { SendClientMessage(i, COLOR_DARKGRAY, "You need at least level 4."); continue; }
- if(pInfo[i][pWantedLevel] > 0) { SendClientMessage(i, COLOR_DARKGRAY, "You already have a wanted, you can not rob the business."); continue; }
- if(pInfo[i][pRob] < 10) { SendClientMessage(i, COLOR_DARKGRAY, "You don't have enough rob points. (10)"); continue; }
- if(CP[i] != 292) ApplyActorAnimation(GetPlayerTargetActor(i), "ROB_BANK", "SHP_HandsUp_Scr", 4.1, 0, 0, 0, 0, 0),
- SetPlayerCheckpoint(i, 2315.5642,-0.4943,26.7422, 2.0), CP[i] = 292, GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~w~you get the key~n~go to ~r~checkpoint~w~...", 3000, 3);
- }
- else
- {
- if(pInfo[i][pWantedLevel] > 0) { SendClientMessage(i, COLOR_DARKGRAY, "You already have a wanted, you can not rob the business."); continue; }
- if(pInfo[i][pRob] < 4) { SendClientMessage(i, COLOR_DARKGRAY, "You don't have enough rob points. (4)"); continue; }
- switch(pInfo[i][aVar][117])
- {
- case 0: pInfo[i][aVar][117] = 1, ApplyActorAnimation(GetPlayerTargetActor(i), "SHOP", "SHP_Rob_GiveCash", 4.1, 0, 0, 0, 0, 0), GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~w~robbery...", 1000, 3);
- case 1: pInfo[i][aVar][117] = 2, ApplyActorAnimation(GetPlayerTargetActor(i), "SHOP", "SHP_Rob_GiveCash", 4.1, 0, 0, 0, 0, 0), GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~w~robbery...", 1000, 3);
- case 2: pInfo[i][aVar][117] = 3, ApplyActorAnimation(GetPlayerTargetActor(i), "SHOP", "SHP_Rob_GiveCash", 4.1, 0, 0, 0, 0, 0), GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~w~robbery...", 1000, 3);
- case 3: pInfo[i][aVar][117] = 4, ApplyActorAnimation(GetPlayerTargetActor(i), "SHOP", "SHP_Rob_GiveCash", 4.1, 0, 0, 0, 0, 0), GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~w~robbery...", 1000, 3);
- case 4: pInfo[i][aVar][117] = 5, ApplyActorAnimation(GetPlayerTargetActor(i), "SHOP", "SHP_Rob_GiveCash", 4.1, 0, 0, 0, 0, 0), GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~w~robbery...", 1000, 3);
- case 5: pInfo[i][aVar][117] = 6, ApplyActorAnimation(GetPlayerTargetActor(i), "SHOP", "SHP_Rob_GiveCash", 4.1, 0, 0, 0, 0, 0), GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~w~robbery...", 1000, 3);
- case 6: pInfo[i][aVar][117] = 7, ApplyActorAnimation(GetPlayerTargetActor(i), "SHOP", "SHP_Rob_GiveCash", 4.1, 0, 0, 0, 0, 0), GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~w~robbery...", 1000, 3);
- case 7: pInfo[i][aVar][117] = 8, ApplyActorAnimation(GetPlayerTargetActor(i), "SHOP", "SHP_Rob_GiveCash", 4.1, 0, 0, 0, 0, 0), GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~w~robbery...", 1000, 3);
- case 8: pInfo[i][aVar][117] = 9, ApplyActorAnimation(GetPlayerTargetActor(i), "SHOP", "SHP_Rob_GiveCash", 4.1, 0, 0, 0, 0, 0), GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~w~robbery...", 1000, 3);
- case 9:
- {
- SetPlayerWantedLevel(i, 6), pInfo[i][pWantedLevel] = 6, pInfo[i][pRob] -= 4, pInfo[i][pSuu] = pInfo[i][pSuu] == 1 ? (pInfo[i][pSuu] = 1) : (pInfo[i][pSuu] = 0),
- pInfo[i][pExpWtd] = 480, PlayerTextDrawShow(i, ExpWanted[i]), format(stmsg[i], 165, "HQ: Crime: Rob Business, +6 Wanted Level, Suspect: %s.", GetName(i)),
- SendTeamMessageCop(COLOR_DBLUE, stmsg[i]), SendClientMessage(i, COLOR_RED, "You commited a crime (Rob Business), Wanted Level: +6, Reporter: Unknown.");
- switch(pInfo[i][pRobSkill])
- {
- case 0..59: {
- pInfo[i][pValue] = RandomEx(35800, 36801), pInfo[i][pRobSkill]++;
- if(pInfo[i][pRobSkill] == 60) format(stmsg[i], 100, "* Felicitari %s, ai avansat la Rob Skill 1.", GetName(i)), SendClientMessage(i, COLOR_YELLOW, stmsg[i]); }
- case 60..119: {
- pInfo[i][pValue] = RandomEx(39900, 42801), pInfo[i][pRobSkill]++;
- if(pInfo[i][pRobSkill] == 120) format(stmsg[i], 100, "* Felicitari %s, ai avansat la Rob Skill 2.", GetName(i)), SendClientMessage(i, COLOR_YELLOW, stmsg[i]); }
- case 120..179: {
- pInfo[i][pValue] = RandomEx(47900, 48201), pInfo[i][pRobSkill]++;
- if(pInfo[i][pRobSkill] == 180) format(stmsg[i], 100, "* Felicitari %s, ai avansat la Rob Skill 3.", GetName(i)), SendClientMessage(i, COLOR_YELLOW, stmsg[i]); }
- case 180..239: {
- pInfo[i][pValue] = RandomEx(52300, 59601), pInfo[i][pRobSkill]++;
- if(pInfo[i][pRobSkill] == 240) format(stmsg[i], 100, "* Felicitari %s, ai avansat la Rob Skill 4.", GetName(i)), SendClientMessage(i, COLOR_YELLOW, stmsg[i]); }
- case 240..299: {
- pInfo[i][pValue] = RandomEx(62700, 68101), pInfo[i][pRobSkill]++;
- if(pInfo[i][pRobSkill] == 300) format(stmsg[i], 100, "* Felicitari %s, ai avansat la Rob Skill 5.", GetName(i)), SendClientMessage(i, COLOR_YELLOW, stmsg[i]); }
- case 300:
- pInfo[i][pValue] = RandomEx(72210, 76691);
- }
- format(pInfo[i][pGText], 80, "~g~~n~~n~business robbery successful~n~+%s$", FormatNumber(pInfo[i][pValue])),
- GameTextForPlayer(i, pInfo[i][pGText], 6000, 3), GiveMoney(i, pInfo[i][pValue]), pInfo[i][aVar][36] = 0;
- }
- default: continue;
- }
- }
- }
- if(FindP[i] > -1)
- {
- switch(pInfo[i][aVar][58])
- {
- case 1:
- {
- if(pInfo[FindP[i]][pStatus] != 1)
- {
- DisablePlayerCheckpoint(i), GameTextForPlayer(i, "~r~player has disconnected", 3000, 5),
- FindP[i] = -1, PlayerTextDrawHide(i, FindTD[i]);
- continue;
- }
- if(pInfo[FindP[i]][aVar][61] != -1 && IsPlayerInRangeOfPoint(FindP[i], 90.0, Houses[pInfo[FindP[i]][aVar][61]][EnterX], Houses[pInfo[FindP[i]][aVar][61]][EnterY], Houses[pInfo[FindP[i]][aVar][61]][EnterZ]))
- {
- SetPlayerCheckpoint(i, Houses[pInfo[FindP[i]][aVar][61]][EnterX], Houses[pInfo[FindP[i]][aVar][61]][EnterY], Houses[pInfo[FindP[i]][aVar][61]][EnterZ], 4.0), CP[i] = 0,
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, Houses[pInfo[FindP[i]][aVar][61]][EnterX], Houses[pInfo[FindP[i]][aVar][61]][EnterY], Houses[pInfo[FindP[i]][aVar][61]][EnterZ])), PlayerTextDrawSetString(i, FindTD[i], MSt);
- continue;
- }
- if(pInfo[FindP[i]][aVar][63] != -1)
- {
- SetPlayerCheckpoint(i, Business[pInfo[FindP[i]][aVar][63]][EnterX], Business[pInfo[FindP[i]][aVar][63]][EnterY], Business[pInfo[FindP[i]][aVar][63]][EnterZ], 4.0), CP[i] = 0,
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, Business[pInfo[FindP[i]][aVar][63]][EnterX], Business[pInfo[FindP[i]][aVar][63]][EnterY], Business[pInfo[FindP[i]][aVar][63]][EnterZ])), PlayerTextDrawSetString(i, FindTD[i], MSt);
- continue;
- }
- if(pInfo[FindP[i]][aVar][120] > 0 && (innt[FindP[i]] > 0 || vwp[FindP[i]] > 0))
- {
- SetPlayerCheckpoint(i, FIP[pInfo[FindP[i]][aVar][120]-1][0], FIP[pInfo[FindP[i]][aVar][120]-1][1], FIP[pInfo[FindP[i]][aVar][120]-1][2], 4.0), CP[i] = 0,
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, FIP[pInfo[FindP[i]][aVar][120]-1][0], FIP[pInfo[FindP[i]][aVar][120]-1][1], FIP[pInfo[FindP[i]][aVar][120]-1][2])), PlayerTextDrawSetString(i, FindTD[i], MSt);
- continue;
- }
- GetPlayerPos(FindP[i], xx, yy, zz), SetPlayerCheckpoint(i, xx, yy, zz, 4.0), CP[i] = 0;
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, xx, yy, zz));
- PlayerTextDrawSetString(i, FindTD[i], MSt);
- }
- case 2:
- {
- if(pInfo[FindP[i]][pStatus] != 1)
- {
- SendClientMessage(i, COLOR_TAXI, "Jucatorul sa deconectat de pe server!"), DisablePlayerCheckpoint(i),
- FindP[i] = -1, PlayerTextDrawHide(i, FindTD[i]), pInfo[i][aVar][89] = -1;
- continue;
- }
- if(pInfo[FindP[i]][aVar][32] == 0)
- {
- SendClientMessage(i, COLOR_TAXI, "Jucatorul a anulat serviciul de taxi."),
- DisablePlayerCheckpoint(i), FindP[i] = -1, PlayerTextDrawHide(i, FindTD[i]), pInfo[i][aVar][89] = -1;
- continue;
- }
- if(pInfo[FindP[i]][aVar][61] != -1 && IsPlayerInRangeOfPoint(FindP[i], 90.0, Houses[pInfo[FindP[i]][aVar][61]][EnterX], Houses[pInfo[FindP[i]][aVar][61]][EnterY], Houses[pInfo[FindP[i]][aVar][61]][EnterZ]))
- {
- SetPlayerCheckpoint(i, Houses[pInfo[FindP[i]][aVar][61]][EnterX], Houses[pInfo[FindP[i]][aVar][61]][EnterY], Houses[pInfo[FindP[i]][aVar][61]][EnterZ], 4.0), CP[i] = 76,
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, Houses[pInfo[FindP[i]][aVar][61]][EnterX], Houses[pInfo[FindP[i]][aVar][61]][EnterY], Houses[pInfo[FindP[i]][aVar][61]][EnterZ])), PlayerTextDrawSetString(i, FindTD[i], MSt);
- continue;
- }
- if(pInfo[FindP[i]][aVar][63] != -1)
- {
- SetPlayerCheckpoint(i, Business[pInfo[FindP[i]][aVar][63]][EnterX], Business[pInfo[FindP[i]][aVar][63]][EnterY], Business[pInfo[FindP[i]][aVar][63]][EnterZ], 4.0), CP[i] = 0,
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, Business[pInfo[FindP[i]][aVar][63]][EnterX], Business[pInfo[FindP[i]][aVar][63]][EnterY], Business[pInfo[FindP[i]][aVar][63]][EnterZ])), PlayerTextDrawSetString(i, FindTD[i], MSt);
- continue;
- }
- if(pInfo[FindP[i]][aVar][120] > 0 && (innt[FindP[i]] > 0 || vwp[FindP[i]] > 0))
- {
- SetPlayerCheckpoint(i, FIP[pInfo[FindP[i]][aVar][120]-1][0], FIP[pInfo[FindP[i]][aVar][120]-1][1], FIP[pInfo[FindP[i]][aVar][120]-1][2], 4.0), CP[i] = 76,
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, FIP[pInfo[FindP[i]][aVar][120]-1][0], FIP[pInfo[FindP[i]][aVar][120]-1][1], FIP[pInfo[FindP[i]][aVar][120]-1][2])), PlayerTextDrawSetString(i, FindTD[i], MSt);
- continue;
- }
- GetPlayerPos(FindP[i], xx, yy, zz), SetPlayerCheckpoint(i, xx, yy, zz, 4.0), CP[i] = 76;
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, xx, yy, zz));
- PlayerTextDrawSetString(i, FindTD[i], MSt);
- }
- case 3:
- {
- if(pInfo[FindP[i]][pStatus] != 1)
- {
- SendClientMessage(i, COLOR_PARAMEDICS, "Jucatorul sa deconectat de pe server!"), DisablePlayerCheckpoint(i),
- FindP[i] = -1, PlayerTextDrawHide(i, FindTD[i]), pInfo[i][aVar][89] = -1;
- continue;
- }
- if(pInfo[FindP[i]][aVar][31] == 0)
- {
- SendClientMessage(i, COLOR_PARAMEDICS, "Jucatorul a anulat serviciul de paramedici."), DisablePlayerCheckpoint(i),
- FindP[i] = -1, PlayerTextDrawHide(i, FindTD[i]), pInfo[i][aVar][89] = -1;
- continue;
- }
- if(pInfo[FindP[i]][aVar][61] != -1 && IsPlayerInRangeOfPoint(FindP[i], 90.0, Houses[pInfo[FindP[i]][aVar][61]][EnterX], Houses[pInfo[FindP[i]][aVar][61]][EnterY], Houses[pInfo[FindP[i]][aVar][61]][EnterZ]))
- {
- SetPlayerCheckpoint(i, Houses[pInfo[FindP[i]][aVar][61]][EnterX], Houses[pInfo[FindP[i]][aVar][61]][EnterY], Houses[pInfo[FindP[i]][aVar][61]][EnterZ], 4.0), CP[i] = 77,
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, Houses[pInfo[FindP[i]][aVar][61]][EnterX], Houses[pInfo[FindP[i]][aVar][61]][EnterY], Houses[pInfo[FindP[i]][aVar][61]][EnterZ])), PlayerTextDrawSetString(i, FindTD[i], MSt);
- continue;
- }
- if(pInfo[FindP[i]][aVar][63] != -1)
- {
- SetPlayerCheckpoint(i, Business[pInfo[FindP[i]][aVar][63]][EnterX], Business[pInfo[FindP[i]][aVar][63]][EnterY], Business[pInfo[FindP[i]][aVar][63]][EnterZ], 4.0), CP[i] = 0,
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, Business[pInfo[FindP[i]][aVar][63]][EnterX], Business[pInfo[FindP[i]][aVar][63]][EnterY], Business[pInfo[FindP[i]][aVar][63]][EnterZ])), PlayerTextDrawSetString(i, FindTD[i], MSt);
- continue;
- }
- if(pInfo[FindP[i]][aVar][120] > 0 && (innt[FindP[i]] > 0 || vwp[FindP[i]] > 0))
- {
- SetPlayerCheckpoint(i, FIP[pInfo[FindP[i]][aVar][120]-1][0], FIP[pInfo[FindP[i]][aVar][120]-1][1], FIP[pInfo[FindP[i]][aVar][120]-1][2], 4.0), CP[i] = 77,
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, FIP[pInfo[FindP[i]][aVar][120]-1][0], FIP[pInfo[FindP[i]][aVar][120]-1][1], FIP[pInfo[FindP[i]][aVar][120]-1][2])), PlayerTextDrawSetString(i, FindTD[i], MSt);
- continue;
- }
- GetPlayerPos(FindP[i], xx, yy, zz), SetPlayerCheckpoint(i, xx, yy, zz, 4.0), CP[i] = 77;
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, xx, yy, zz));
- PlayerTextDrawSetString(i, FindTD[i], MSt);
- }
- case 4:
- {
- if(pInfo[FindP[i]][pStatus] != 1)
- {
- SendClientMessage(i, COLOR_SCINSTRUCTOR, "Jucatorul sa deconectat de pe server!"), DisablePlayerCheckpoint(i),
- FindP[i] = -1, PlayerTextDrawHide(i, FindTD[i]), pInfo[i][aVar][89] = -1;
- continue;
- }
- if(pInfo[FindP[i]][aVar][77] == 0)
- {
- SendClientMessage(i, COLOR_SCINSTRUCTOR, "Jucatorul a anulat cererea de licente."), DisablePlayerCheckpoint(i),
- FindP[i] = -1, PlayerTextDrawHide(i, FindTD[i]), pInfo[i][aVar][89] = -1;
- continue;
- }
- if(pInfo[FindP[i]][aVar][61] != -1 && IsPlayerInRangeOfPoint(FindP[i], 90.0, Houses[pInfo[FindP[i]][aVar][61]][EnterX], Houses[pInfo[FindP[i]][aVar][61]][EnterY], Houses[pInfo[FindP[i]][aVar][61]][EnterZ]))
- {
- SetPlayerCheckpoint(i, Houses[pInfo[FindP[i]][aVar][61]][EnterX], Houses[pInfo[FindP[i]][aVar][61]][EnterY], Houses[pInfo[FindP[i]][aVar][61]][EnterZ], 4.0), CP[i] = 3,
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, Houses[pInfo[FindP[i]][aVar][61]][EnterX], Houses[pInfo[FindP[i]][aVar][61]][EnterY], Houses[pInfo[FindP[i]][aVar][61]][EnterZ])), PlayerTextDrawSetString(i, FindTD[i], MSt);
- continue;
- }
- if(pInfo[FindP[i]][aVar][63] != -1)
- {
- SetPlayerCheckpoint(i, Business[pInfo[FindP[i]][aVar][63]][EnterX], Business[pInfo[FindP[i]][aVar][63]][EnterY], Business[pInfo[FindP[i]][aVar][63]][EnterZ], 4.0), CP[i] = 0,
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, Business[pInfo[FindP[i]][aVar][63]][EnterX], Business[pInfo[FindP[i]][aVar][63]][EnterY], Business[pInfo[FindP[i]][aVar][63]][EnterZ])), PlayerTextDrawSetString(i, FindTD[i], MSt);
- continue;
- }
- if(pInfo[FindP[i]][aVar][120] > 0 && (innt[FindP[i]] > 0 || vwp[FindP[i]] > 0))
- {
- SetPlayerCheckpoint(i, FIP[pInfo[FindP[i]][aVar][120]-1][0], FIP[pInfo[FindP[i]][aVar][120]-1][1], FIP[pInfo[FindP[i]][aVar][120]-1][2], 4.0), CP[i] = 3,
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, FIP[pInfo[FindP[i]][aVar][120]-1][0], FIP[pInfo[FindP[i]][aVar][120]-1][1], FIP[pInfo[FindP[i]][aVar][120]-1][2])), PlayerTextDrawSetString(i, FindTD[i], MSt);
- continue;
- }
- GetPlayerPos(FindP[i], xx, yy, zz), SetPlayerCheckpoint(i, xx, yy, zz, 4.0), CP[i] = 3;
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, xx, yy, zz));
- PlayerTextDrawSetString(i, FindTD[i], MSt);
- }
- case 5:
- {
- if(pInfo[FindP[i]][pStatus] != 1)
- {
- SendClientMessage(i, COLOR_SCINSTRUCTOR, "Jucatorul sa deconectat de pe server!"), DisablePlayerCheckpoint(i),
- FindP[i] = -1, PlayerTextDrawHide(i, FindTD[i]), pInfo[i][aVar][89] = -1;
- continue;
- }
- if(pInfo[FindP[i]][aVar][99] == 0)
- {
- SendClientMessage(i, COLOR_SCINSTRUCTOR, "Jucatorul a anulat apelul catre serviciul de mecanici."), DisablePlayerCheckpoint(i),
- FindP[i] = -1, PlayerTextDrawHide(i, FindTD[i]), pInfo[i][aVar][89] = -1;
- continue;
- }
- if(pInfo[FindP[i]][aVar][61] != -1 && IsPlayerInRangeOfPoint(FindP[i], 90.0, Houses[pInfo[FindP[i]][aVar][61]][EnterX], Houses[pInfo[FindP[i]][aVar][61]][EnterY], Houses[pInfo[FindP[i]][aVar][61]][EnterZ]))
- {
- SetPlayerCheckpoint(i, Houses[pInfo[FindP[i]][aVar][61]][EnterX], Houses[pInfo[FindP[i]][aVar][61]][EnterY], Houses[pInfo[FindP[i]][aVar][61]][EnterZ], 4.0), CP[i] = 183,
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, Houses[pInfo[FindP[i]][aVar][61]][EnterX], Houses[pInfo[FindP[i]][aVar][61]][EnterY], Houses[pInfo[FindP[i]][aVar][61]][EnterZ])), PlayerTextDrawSetString(i, FindTD[i], MSt);
- continue;
- }
- if(pInfo[FindP[i]][aVar][63] != -1)
- {
- SetPlayerCheckpoint(i, Business[pInfo[FindP[i]][aVar][63]][EnterX], Business[pInfo[FindP[i]][aVar][63]][EnterY], Business[pInfo[FindP[i]][aVar][63]][EnterZ], 4.0), CP[i] = 0,
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, Business[pInfo[FindP[i]][aVar][63]][EnterX], Business[pInfo[FindP[i]][aVar][63]][EnterY], Business[pInfo[FindP[i]][aVar][63]][EnterZ])), PlayerTextDrawSetString(i, FindTD[i], MSt);
- continue;
- }
- if(pInfo[FindP[i]][aVar][120] > 0 && (innt[FindP[i]] > 0 || vwp[FindP[i]] > 0))
- {
- SetPlayerCheckpoint(i, FIP[pInfo[FindP[i]][aVar][120]-1][0], FIP[pInfo[FindP[i]][aVar][120]-1][1], FIP[pInfo[FindP[i]][aVar][120]-1][2], 4.0), CP[i] = 183,
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, FIP[pInfo[FindP[i]][aVar][120]-1][0], FIP[pInfo[FindP[i]][aVar][120]-1][1], FIP[pInfo[FindP[i]][aVar][120]-1][2])), PlayerTextDrawSetString(i, FindTD[i], MSt);
- continue;
- }
- GetPlayerPos(FindP[i], xx, yy, zz), SetPlayerCheckpoint(i, xx, yy, zz, 4.0), CP[i] = 183;
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, xx, yy, zz));
- PlayerTextDrawSetString(i, FindTD[i], MSt);
- }
- case 6:
- {
- if(pInfo[FindP[i]][pStatus] != 1)
- {
- DisablePlayerCheckpoint(i), GameTextForPlayer(i, "~r~player has disconnected", 3000, 5),
- FindP[i] = -1, PlayerTextDrawHide(i, FindTD[i]), pInfo[i][aVar][89] = -1;
- continue;
- }
- if(pInfo[FindP[i]][aVar][61] != -1 && IsPlayerInRangeOfPoint(FindP[i], 90.0, Houses[pInfo[FindP[i]][aVar][61]][EnterX], Houses[pInfo[FindP[i]][aVar][61]][EnterY], Houses[pInfo[FindP[i]][aVar][61]][EnterZ]))
- {
- SetPlayerCheckpoint(i, Houses[pInfo[FindP[i]][aVar][61]][EnterX], Houses[pInfo[FindP[i]][aVar][61]][EnterY], Houses[pInfo[FindP[i]][aVar][61]][EnterZ], 4.0), CP[i] = 0,
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, Houses[pInfo[FindP[i]][aVar][61]][EnterX], Houses[pInfo[FindP[i]][aVar][61]][EnterY], Houses[pInfo[FindP[i]][aVar][61]][EnterZ])), PlayerTextDrawSetString(i, FindTD[i], MSt);
- continue;
- }
- if(pInfo[FindP[i]][aVar][63] != -1)
- {
- SetPlayerCheckpoint(i, Business[pInfo[FindP[i]][aVar][63]][EnterX], Business[pInfo[FindP[i]][aVar][63]][EnterY], Business[pInfo[FindP[i]][aVar][63]][EnterZ], 4.0), CP[i] = 0,
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, Business[pInfo[FindP[i]][aVar][63]][EnterX], Business[pInfo[FindP[i]][aVar][63]][EnterY], Business[pInfo[FindP[i]][aVar][63]][EnterZ])), PlayerTextDrawSetString(i, FindTD[i], MSt);
- continue;
- }
- if(pInfo[FindP[i]][aVar][120] > 0 && (innt[FindP[i]] > 0 || vwp[FindP[i]] > 0))
- {
- SetPlayerCheckpoint(i, FIP[pInfo[FindP[i]][aVar][120]-1][0], FIP[pInfo[FindP[i]][aVar][120]-1][1], FIP[pInfo[FindP[i]][aVar][120]-1][2], 4.0), CP[i] = 0,
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, FIP[pInfo[FindP[i]][aVar][120]-1][0], FIP[pInfo[FindP[i]][aVar][120]-1][1], FIP[pInfo[FindP[i]][aVar][120]-1][2])), PlayerTextDrawSetString(i, FindTD[i], MSt);
- continue;
- }
- GetPlayerPos(FindP[i], xx, yy, zz), SetPlayerCheckpoint(i, xx, yy, zz, 4.0), CP[i] = 0;
- format(MSt, sizeof(MSt), "Distance to %s: ~y~%0.1fm", GetName(FindP[i]), GetPlayerDistanceFromPoint(i, xx, yy, zz));
- PlayerTextDrawSetString(i, FindTD[i], MSt);
- }
- default: continue;
- }
- }
- }
- gtm = gettime(TTxt[0],TTxt[1]), TextDrawSetString(WStar, ws), format(MSt, 6, "%02d:%02d", TTxt[0], TTxt[1]), TextDrawSetString(Time, MSt);
- if(WarOnOff > 0)
- {
- format(MSt, 30, "War Time: ~p~%02i:%02i", (WarOnOff-gtm)/60, (WarOnOff-gtm)%60), TextDrawSetString(WarTD[0], MSt);
- if(WarOnOff < gtm) StopWar();
- }
- if(War2OnOff > 0)
- {
- format(MSt, 30, "War Time: ~p~%02i:%02i", (War2OnOff-gtm)/60, (War2OnOff-gtm)%60), TextDrawSetString(War2TD[0], MSt);
- if(War2OnOff < gtm) StopWar2();
- }
- if(PST != 0 && PST < gtm) StopPaint();
- if(PST > gtm) format(MSt, sizeof(MSt), "Time %02i:%02i", (PST-gtm)/60, (PST-gtm)%60), TextDrawSetString(PT[0], MSt);
- if(gas < gtm)
- {
- if(TTxt[0] != ghour)
- {
- ghour = TTxt[0], SetWorldTime(TTxt[0]+2), getdate(DTxt[0], DTxt[1], DTxt[2]), format(MSt, sizeof(MSt), "%02d.%02d.%d", DTxt[2], DTxt[1], DTxt[0]), TextDrawSetString(Date, MSt);
- if(ghour == 0)
- {
- mysql_format(MySQLCon, quMYSQL, 150, "INSERT INTO `inf_record` (`record_date`,`record_players`) VALUES ('%02d-%02d-%d', %d)", DTxt[2], DTxt[1], DTxt[0], Iter_Count(Player));
- mysql_tquery(MySQLCon, quMYSQL);
- infRecord = Iter_Count(Player);
- }
- }
- for(new c = 1, j = GetVehiclePoolSize(); c <= j; c++) if(IsValidVehicle(c) && !IsABike(c))
- {
- GetVehicleParamsEx(c,vParams[0],vParams[1],vParams[2],vParams[3],vParams[4],vParams[5],vParams[6]);
- if(vParams[0] == 1) vVar[3][c]--, SetVehicleParamsExx(c,vVar[3][c] < 1 && vParams[0] == 1 ? (0) : (vParams[0]),vParams[1],vParams[2],vParams[3],vParams[4],vParams[5],vParams[6]);
- }
- gas = gtm+40;
- }
- if(HR_Time > 0)
- {
- HR_Time--;
- format(MSt, 50, "Next race starts in: ~y~%02d:%02d", HR_Time/60, HR_Time%60), TextDrawSetString(HorseRaces[17], MSt);
- if(!HR_Time) for(new q = 0; q < sizeof(HorseRaces); q++) TextDrawHideForAll(HorseRaces[q]);
- }
- else if(!HR_Time && !HR_Stop && !HR_Again)
- {
- if(!HR_Prepare)
- {
- foreach(new e : HorseP) if(pInfo[e][pBetting] == 1) TextDrawShowForPlayer(e, HorseTimeLeft);
- HR_Prepare = true;
- }
- }
- if(HR_Prepare)
- {
- TextDrawSetString(HorseTimeLeft, sprintf("%d", 10 - HR_Counter)), HR_Counter++;
- if(HR_Counter == 11)
- {
- HR_Counter = 0, HR_Stop = true, HR_Prepare = false;
- foreach(new z : HorseP) if(pInfo[z][pBetting] == 1) TextDrawHideForPlayer(z, HorseTimeLeft);
- }
- }
- if(HR_Stop && !HR_Win) SetHorseRaces(), HR_Win = true, HR_ClasamentShow = true;
- else if(HR_Stop && HR_Win)
- {
- foreach(new c : HorseP) if(pInfo[c][pBetting] == 1) for(new j = 0; j < sizeof(HorseWinner); j++) TextDrawShowForPlayer(c, HorseWinner[j]);
- if(!HR_Tested) SetTimer("HR_ResetVariables", 500, false), HR_Tested = true;
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment