17.06.2016, 19:15
Hi i see this on my serverlog
[23:17:48] [debug] Accessing element at index 48 past array upper bound 47
[23:17:48] [debug] AMX backtrace:
[23:17:48] [debug] #0 0008f114 in public SetPlayerUnjail () from x.amx
[23:17:48] [debug] Accessing element at index 48 past array upper bound 47
[23:17:48] [debug] AMX backtrace:
[23:17:48] [debug] #0 0008f114 in public SetPlayerUnjail () from x.amx
PHP код:
public SetPlayerUnjail()
{
if(PTime >= 1)
{
PTime --;
if(PTime == 0)
{
new loOoL;
if(PaintBallPlayers <= 3) loOoL = 1;
for(new i;i<LastPID;i++)
{
if(IsPlayerConnected(i))
{
if(OnPaintBall[i] != 0)
{
if(loOoL == 1) {StopPaintBalling();SCM(i,COLOR_ARIAIE,"Paintball doesn't start, because this match hasen't enough players(4 players need).");}
else
{
TogglePlayerControllable(i,1);
PaintBallStarting = 0;
PaintballStarted = 1;
PFTime = 420;
SCM(i,COLOR_ARIAIE,"Paint ball has been started!!!");
}
}
}
}
}
}
if(PFTime >= 1)
{
PFTime --;
if(PFTime == 0)
{
new record,b;
for(new i;i<LastPID;i++)
{
if(IsPlayerConnected(i))
{
if(OnPaintBall[i] != 0)
{
if(b == 0) {record = PaintBallKills[i];b = 1;}
if(PaintBallKills[i] > record){record = PaintBallKills[i];}
}
}
}
for(new i;i<LastPID;i++)
{
if(IsPlayerConnected(i))
{
if(OnPaintBall[i] != 0)
{
ResetPlayerTofang(i);
//format(sttr,512,"Paintball finished. Winner is: %s with %i kills",PINFO[winner][pName],record);
//SCM(i,COLOR_WHITE,sttr);
StopPaintBalling();
}
}
}
}
}
new string[256];
for(new i = 0; i < LastPID; i++)
{
if(IsPlayerConnected(i))
{
if(GodmodeFeature[i] == true && IsPlayerInAnyVehicle(i) && PlayerInfo[i][pAdmin] >= 7)
{
RepairVehicle(GetPlayerVehicleID(i));
SetVehicleHealth(GetPlayerVehicleID(i),1000000.0);
SetPlayerKhoon(true, i, 100000);
}
if(OnWar[i] != 9999) {
new minbaghi,secbaghi,TurfTimerEx[30];
TurfTimerEx[OnWar[i]] = TurfTime[OnWar[i]];
new mem;
if(PINFO[i][pLeader] != 0) mem = PINFO[i][pLeader];
else mem = PINFO[i][pMember];
if(mem == turfattacker[OnWar[i]])
{
for(new c = 0;c<100;c++)
{
if(TurfTimerEx[OnWar[i]] >= 60)
{
TurfTimerEx[OnWar[i]] -= 60;
minbaghi ++;
new minebaghi = minbaghi*60;
secbaghi = TurfTime[OnWar[i]]-minebaghi;
}
}
if(TurfTime[OnWar[i]] < 60) { minbaghi = 0; secbaghi = TurfTime[OnWar[i]]; }
new DA[512],KA[512],DeaA[512],TRA[512],newtext[256];
format(KA, sizeof(KA), "Kills:_%d", PlayerInfo[i][pKillW]);
TextDrawSetString(WarK[i], KA);
format(DeaA, sizeof(DeaA), "Deaths:_%d", PlayerInfo[i][pDeathW]);
TextDrawSetString(WarDea[i], DeaA);
format(newtext, sizeof(newtext), "Score:_%d", PlayerInfo[i][pKillW] - PlayerInfo[i][pDeathW]);
TextDrawSetString(WarS[i], newtext);
format(TRA, sizeof(TRA),"Time_Remaining:00:%s%d:%s%d", (minbaghi < 10) ? ("0") : (""),minbaghi,(secbaghi < 10) ? ("0") : (""),secbaghi);
TextDrawSetString(WarTR[i], TRA);
}
else if(mem == turfkhod[OnWar[i]])
{
for(new c = 0;c<100;c++)
{
if(TurfTimerEx[OnWar[i]] >= 60)
{
TurfTimerEx[OnWar[i]] -= 60;
minbaghi ++;
new minebaghi = minbaghi*60;
secbaghi = TurfTime[OnWar[i]]-minebaghi;
}
}
if(TurfTime[OnWar[i]] < 60) { minbaghi = 0; secbaghi = TurfTime[OnWar[i]]; }
new DA[512],KA[512],DeaA[512],TRA[512],newtext[256];
format(KA, sizeof(KA), "Kills:_%d", PlayerInfo[i][pKillW]);
TextDrawSetString(WarK[i], KA);
format(DeaA, sizeof(DeaA), "Deaths:_%d", PlayerInfo[i][pDeathW]);
TextDrawSetString(WarDea[i], DeaA);
format(newtext, sizeof(newtext), "Score:_%d", PlayerInfo[i][pKillW] - PlayerInfo[i][pDeathW]);
TextDrawSetString(WarS[i], newtext);
format(TRA, sizeof(TRA),"Time_Remaining:00:%s%d:%s%d", (minbaghi < 10) ? ("0") : (""),minbaghi,(secbaghi < 10) ? ("0") : (""),secbaghi);
TextDrawSetString(WarTR[i], TRA);
}
}
if(GetPlayerPool(i) != GetPlayerMoney(i))
{
ResetPlayerMoney(i);
GivePlayerMoney(i,GetPlayerPool(i));
}
new newcar = GetPlayerVehicleID(i);
new level = PlayerInfo[i][pLevel];
if(PlayerInfo[i][pPremiumAccount] == 0 && gPlayerLogged[i] != 0 && AFK[i] != 1)
{
if(level >= 0 && level <= 2) { PlayerInfo[i][pPayCheck] += 0.08; }//Nemikhad save shan...
else if(level >= 3 && level <= 4) { PlayerInfo[i][pPayCheck] += 0.16; }
else if(level >= 5 && level <= 6) { PlayerInfo[i][pPayCheck] += 0.24; }
else if(level >= 7 && level <= 8) { PlayerInfo[i][pPayCheck] += 0.32; }
else if(level >= 9 && level <= 10) { PlayerInfo[i][pPayCheck] += 0.4; }
else if(level >= 11 && level <= 12) { PlayerInfo[i][pPayCheck] += 0.48; }
else if(level >= 13 && level <= 14) { PlayerInfo[i][pPayCheck] += 0.56; }
else if(level >= 15 && level <= 16) { PlayerInfo[i][pPayCheck] += 0.64; }
else if(level >= 17 && level <= 18) { PlayerInfo[i][pPayCheck] += 0.72; }
else if(level >= 19 && level <= 20) { PlayerInfo[i][pPayCheck] += 0.8; }
else if(level >= 21 && level <= 23) { PlayerInfo[i][pPayCheck] += 0.88; }
else if(level >= 24 && level <= 27) { PlayerInfo[i][pPayCheck] += 0.96; }
else if(level >= 28 && level <= 32) { PlayerInfo[i][pPayCheck] += 1.04; }
else if(level >= 33) { PlayerInfo[i][pPayCheck] += 1.12; }
}
if(PlayerInfo[i][pPremiumAccount] != 0 && gPlayerLogged[i] != 0)
{
if(level >= 0 && level <= 2) { PlayerInfo[i][pPayCheck] += 0.16; }
else if(level >= 3 && level <= 4) { PlayerInfo[i][pPayCheck] += 0.32; }
else if(level >= 5 && level <= 6) { PlayerInfo[i][pPayCheck] += 0.48; }
else if(level >= 7 && level <= 8) { PlayerInfo[i][pPayCheck] += 0.64; }
else if(level >= 9 && level <= 10) { PlayerInfo[i][pPayCheck] += 0.8; }
else if(level >= 11 && level <= 12) { PlayerInfo[i][pPayCheck] += 0.96; }
else if(level >= 13 && level <= 14) { PlayerInfo[i][pPayCheck] += 1.12; }
else if(level >= 15 && level <= 16) { PlayerInfo[i][pPayCheck] += 1.28; }
else if(level >= 17 && level <= 18) { PlayerInfo[i][pPayCheck] += 1.44; }
else if(level >= 19 && level <= 20) { PlayerInfo[i][pPayCheck] += 1.6; }
else if(level >= 21 && level <= 23) { PlayerInfo[i][pPayCheck] += 1.76; }
else if(level >= 24 && level <= 27) { PlayerInfo[i][pPayCheck] += 1.92; }
else if(level >= 28 && level <= 32) { PlayerInfo[i][pPayCheck] += 2.08; }
else if(level >= 33) { PlayerInfo[i][pPayCheck] += 2.24; }
}
if(IsPlayerConnected(i) && GetPlayerSurfingVehicleID(i) != INVALID_VEHICLE_ID && !IsABoat(GetPlayerSurfingVehicleID(i)))
{
if(soratbegirs(GetPlayerSurfingVehicleID(i)) <= 15) {}
else
{
new Float:Uu[3];
GetPlayerPos(i,Uu[0],Uu[1],Uu[2]);
SetPlayerPos(i, Uu[0],Uu[1],Uu[2]);
}
}
for(new b;b<LastPID;b++)
{
if(IsPlayerConnected(b) && IsPlayerStreamedIn(b, i))
{
OnPlayerStreamIn(b, i);
OnPlayerStreamIn(i, b);
}
}
if(PlayerInfo[i][pJailTime] > 0)
{
if(PlayerInfo[i][pJailTime] > 0/* && WantLawyer[i] == 0*/)
{
PlayerInfo[i][pJailTime]--;
SaveKonVal(i, "pJailTime", PINFO[i][pJailTime]);
new strings[256];
/* format(strings, sizeof(strings), "Jail Time Left: %d seconds",PlayerInfo[i][pJailTime]);*/
if(PlayerInfo[i][pJailTime] >= 1000) format(strings,256,"~w~Jail Time Left: ~r~%i~w~ seconds",PlayerInfo[i][pJailTime]);
if(PlayerInfo[i][pJailTime] < 1000) format(strings,256,"~w~Jail Time Left: ~g~%i~w~ seconds",PlayerInfo[i][pJailTime]);
TextDrawSetString(JailTextDraw[i],strings);
}
if(PlayerInfo[i][pJailTime] <= 0)
{
PlayerInfo[i][pJailTime] = 0;
SaveKonVal(i, "pJailTime", PINFO[i][pJailTime]);
SetPlayerPos(i,1799.992309,-1578.568725,14.076499);
SetPlayerFacingAngle(i,270);
SetPlayerInterior(i,0);
SetPlayerVirtualWorld(i,0);
if(IsInFaction(i)) { SetPlayerSkin(i,PlayerInfo[i][fSkin]); }
else { SetPlayerSkin(i,PlayerInfo[i][cSkin]); }
Mahal[i] = 9999;
TooHouse[i] = 9999;
TooBiz[i] = 9999;
TextDrawHideForPlayer(i,JailTextDraw[i]);
TogglePlayerControllable(i,1);
RemovePlayerAttachedObject(i, 1);
SetPlayerSpecialAction(i,SPECIAL_ACTION_NONE);
PlayerHandsCuffed[i] = 0;
PlayerCuffed[i] = 0;
SendClientMessage(i, COLOR_LIGHTRED,"Warden: You've been released from jail.");
SendClientMessage(i, COLOR_LIGHTRED,"Warden: Think about the time, before you do the crime.");
format(string, sizeof(string), "~g~Freedom~n~~w~Try to be a better citizen");
GameTextForPlayer(i, string, 5000, 1);
SetPlayerToTeamColor(i);
SetPlayerInterior(i, 0);
}
}
else if(PlayerInfo[i][pMuteTime] > 0)
{
PlayerInfo[i][pMuteTime]--;
SaveKonVal(i, "pMuteTime", PINFO[i][pMuteTime]);
if(PlayerInfo[i][pMuteTime] <= 0)
{
PlayerInfo[i][pMuteTime] = 0;
SaveKonVal(i, "pMuteTime", PINFO[i][pMuteTime]);
SendClientMessage(i, COLOR_LIGHTBLUE, "Your time of silence has ended.");
format(string, 256, "Mute time has ended!");
GameTextForPlayer(i, string, 5000, 1);
}
}
if(TimerAnnouncer[i] > 0) {TimerAnnouncer[i] --; if(TimerAnnouncer[i] <= 0) { Ghatel[i] = INVALID_PLAYER_ID; GhatelWanted[i] = 0; strdel(CrimeText[i], 0, 100); }}
if(IsABoat(newcar))
{
if(PlayerInfo[i][pBoatLic] < 1 && GetPlayerState(i) == 2)
{
if(TakingsiLesson[i] == 1) { }
}
}
else if(IsAPlane(newcar))
{
if(PlayerInfo[i][pFlyLic] < 1 && GetPlayerState(i) == 2)
{
if(TakingsiLesson[i] == 1) { }
}
}
else
{
if(PlayerInfo[i][pCarLic] < 1 && IsPlayerInAnyVehicle(i) && GetPlayerState(i) == 2)
{
if(TakingLesson[i] == 1) { }
}
}//Done with car check
if(adtimer > 0) { adtimer --; }
if(adtimerplayer[i] > 0)
{
adtimerplayer[i] --;
if(adtimerplayer[i] == 0 && IsPlayerConnected(i) && gPlayerLogged[i] == 1)
{
new shomarebedeamoo = PlayerInfo[i][pPnumber];
new sendername[MAX_PLAYER_NAME];
new nesfshode[300];
new strlolis[300];
new strasl[300];
GetPlayerName(i, sendername, sizeof(sendername));
if(strlen(adtextplayer[i])+strlen(PINFO[i][pName])+strlen("Ad Placed by (Phone: ): ") < 50) {format(strasl, 300, "Ad Placed by %s (Phone: {FFFFFF}%s{18E139}): %s.",sendername,FormatPhoneNumber(shomarebedeamoo),adtextplayer[i]);
OOCNews(ADVERTISEMEN_COLOR,strasl);}
else
{
new b = 0;
for(new w;w<50;w++)
{
strlolis[b] = adtextplayer[i][w];
b++;
}
b = 0;
for(new w = 50;w<strlen(adtextplayer[i]);w++)
{
nesfshode[b] = adtextplayer[i][w];
b++
}
format(strasl, 300 , "Ad Placed by %s (Phone: {FFFFFF}%s{18E139}): %s ...",sendername,FormatPhoneNumber(shomarebedeamoo),strlolis);
OOCNews(ADVERTISEMEN_COLOR,strasl);
format(strasl, 300 , "... %s.", nesfshode);
OOCNews(ADVERTISEMEN_COLOR,strasl);
}
adtimerplayer[i] = 0;
}
}
if(UsedFind[i] >= 1)
{
UsedFind[i] += 1;
if(UsedFind[i] >= 120)
{
UsedFind[i] = 0;
}
}
if(PINFO[i][pJailTime] > 0 && PINFO[i][pAdmin] < 1 && PINFO[i][pHelper] < 1)
{
new Float:ui[3];
GetPlayerPos(i, ui[0], ui[1], ui[2]);
if(ui[0] >= 1723.025024 && ui[0] <= 1808.025024 && ui[1] >= -1582.543090 && ui[1] <= -1536.632812 && ui[2] >= 1982.749633 && ui[2] <= 2018.235107) {}
else
{
SpawnPlayer(i);
}
}
if(PlayerFish[i] >= 1)
{
PlayerFish[i] --;
}
if(MedicTime[i] > 0)
{
if(MedicTime[i] == 3)
{
SetPlayerInterior(i, 5);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(i, X,Y,Z);
SetPlayerCameraPos(i, X + 3, Y, Z);
SetPlayerCameraLookAt(i,X,Y,Z);
}
MedicTime[i] ++;
if(MedicTime[i] >= NeedMedicTime[i])
{
TogglePlayerControllable(i, 1);
MedicBill[i] = 0;
MedicTime[i] = 0;
NeedMedicTime[i] = 0;
PlayerFixRadio(i);
StopLoopingAnim(i);
ResetPlayerTofang(i);
SetSpawnKol(i);
SpawnPlayer(i);
}
}
if(OnRentMashinMessage[i] == true && !IsPlayerInAnyVehicle(i))
{
TogglePlayerControllable(i, 1);
OnRentMashinMessage[i] = false;
GameTextForPlayer(i, " ", 500, 3);
}
if(ContractID[i] != INVALID_PLAYER_ID)
{
if(ContractsCount >= 2)
{
if(PINFO[i][pHeadValue] >= 1)
{
if(AgentHiterID[i] == INVALID_PLAYER_ID)
{
for(new b;b<LastPID;b++)
{
if(IsPlayerConnected(b))
{
if(PINFO[b][pMember] == 8 || PINFO[b][pLeader] == 8)
{
if(AgentContractID[b] != INVALID_PLAYER_ID)
{
AgentHiterID[i] = b;
AgentHitID[b] = i;
new atring[256];
format(atring,256,"There is a new contract for you, his/her name is %s(%i)",PINFO[i][pName],i);
SCM(b,COLOR_HITMAN,atring);
ContractsCount --;
ContractIDUsed[ContractID[i]] = false;
ContractID[i] = INVALID_PLAYER_ID;
AgentContractIDUsed[b] = false;
AgentContractID[b] = INVALID_PLAYER_ID;
break;
}
}
}
}
}
}
}
}
if(GetPlayerState(i) == PLAYER_STATE_PASSENGER)
{
if(GetPlayerWeapon(i) == 30 || GetPlayerWeapon(i) == 29 || GetPlayerWeapon(i) == 31)
{} else { SetPlayerArmedWeapon(i,0); }
}
if(TimerRingTone[i] >= 1)
{
TimerRingTone[i] ++;
}
if(TimerRingTone[i] == 5)
{
PlayerPlaySound(i, 23000,0.0,0.0,0.0)
TimerRingTone[i] = 1;
}
if(WantLawyer[i] >= 1)
{
CallLawyer[i] = 111;
if(WantLawyer[i] == 1)
{
SendClientMessage(i, COLOR_YELLOW2, "Do you want a Lawyer? (Type yes or no)");
}
WantLawyer[i] ++;
if(WantLawyer[i] == 8)
{
SendClientMessage(i, COLOR_YELLOW2, "Do you want a Lawyer? (Type yes or no)");
}
if(WantLawyer[i] == 15)
{
SendClientMessage(i, COLOR_YELLOW2, "Do you want a Lawyer? (Type yes or no)");
}
if(WantLawyer[i] == 20)
{
SendClientMessage(i, COLOR_YELLOW2, "There is no Lawyer available to you anymore.");
WantLawyer[i] = 0;
CallLawyer[i] = 0;
}
}
if(AFK[i] == 0) AFKTime[i] ++;
if(AFKTime[i] == AFKTimeOnSV*60-120 && PINFO[i][pAdmin] < 7 && AFK[i] == 0 && PINFO[i][pJailTime] <= 0) SCM(i, COLOR_LIGHTRED, "Warning: You have 120 seconds to move or you'll kick due to afk.");
if(AFKTime[i] == WantedAFKTime*60-120 && GetPlayerWantedLevel(i) > 0 && PINFO[i][pAdmin] < 7 && PINFO[i][pJailTime] <= 0) SCM(i,COLOR_LIGHTRED,"Warning: You have 120 seconds to move or you'll kick due to afk(Wanted AFK).");
if(AFKTime[i] >= AFKTimeOnSV*60 && PINFO[i][pAdmin] < 7 && AFK[i] == 0 && PINFO[i][pJailTime] <= 0) PlayerIsAFKDetected(i);
if(AFKTime[i] >= WantedAFKTime*60 && GetPlayerWantedLevel(i) > 0 && PINFO[i][pAdmin] < 7 && PINFO[i][pJailTime] <= 0) WantedAFKDetected(i);
if(TutTime[i] >= 1)
{
TutTime[i] += 1;
SetPlayerKhoon(true, i,100.0);
HealthAllowedForPlayer[i] = 0;
MedicBill[i] = 0;
TutTime[i] = 0;
TogglePlayerSpectating(i, 0);
ResetPlayerTofang(i);
SetSpawnKol(i);
SpawnPlayer(i);
SCM(i, COLOR_WHITE, " ");
SetPlayerSpawn(i);
SetPlayerVirtualWorld(i, 0);
SetCameraBehindPlayer(i);
TogglePlayerControllable(i, 1);
SetPlayerKhoon(true, i,100);
SetPlayerPos(i,1641.9963,-2239.7080,13.4964);
SCM(i,COLOR_YELLOW,"Helper: Salam , Aval inke Khosh omadi be Servere Khodet , Bad inke man Komaket mikonam ke betoni Server ro yad begiri.");
SCM(i,COLOR_YELLOW,"Helper: Age soal ham dashti doostanam Yani Helper ha (/helpers) Komaket mikonan Faghat bezan /helpme [Darkhastet].");
SCM(i,COLOR_YELLOW,"Helper: Man Behet Ye Checkpoint(Alamat To Map) Ghermez Midam , Onja Baraye Gereftane Govahinameye ranandegi hast boro onja va bezan /exam.");
SCM(i,COLOR_YELLOW,"Helper: Bad az dadane test to server bezan /jobs va boro kar kon ta pol dar Ari , Pishnehade man be to Job Haye , Farmer , Trucker , Garbageman Hast.");
SCM(i,COLOR_YELLOW,"Helper: Afarin , Kari dashti ba dastoore /helpme komaket mikonim , Bedrood dooste man.");
OnCheckpoint[i] = 1;
CP[i] = 94531;
SetPlayerCheckpoint(i,1641.388671,-2177.379638,13.554687,4);
SetPlayerVirtualWorld(i, 0);
PlayerInfo[i][pTut] = 1;
SaveKonVal(i, "pTut", 1);
gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0;
HealthAllowedForPlayer[i] = 1;
AntiKhoonHack[i] = SetTimerEx("KhoonTimer",2000,1,"i",i);
}
// }
if(TutTime1[i] >= 1)
{
TutTime1[i] += 1;
SetPlayerKhoon(true, i,100);
HealthAllowedForPlayer[i] = 0;
MedicBill[i] = 0;
SCM(i, COLOR_WHITE, " ");
TutTime1[i] = 0;
TogglePlayerSpectating(i, 0);
SetSpawnKol(i);
SpawnPlayer(i);
SCM(i, COLOR_WHITE, " ");
SetPlayerSpawn(i);
SetPlayerVirtualWorld(i, 0);
SetCameraBehindPlayer(i);
TogglePlayerControllable(i, 1);
SetPlayerKhoon(true, i,100);
PlayerInfo[i][pLevel] = 1;
SaveKonVal(i, "pLevel", 1);
//SaveAccount(i);
SCM(i,COLOR_YELLOW,"Helper: Well, I'll help you in this game and i hope you have a good time.");
SCM(i,COLOR_YELLOW,"Helper: First, you'd better go and get a driver's license,So you can ride Motorcycle or cars.");
SCM(i,COLOR_YELLOW,"Helper: I'll give you a Checkpoint to go to driving school and get a driver's license, Follow the checkpoint.");
OnCheckpoint[i] = 1;
CP[i] = 94532;
SetPlayerCheckpoint(i,1641.388671,-2177.379638,13.554687,4);
SetPlayerVirtualWorld(i, 0);
gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0;
HealthAllowedForPlayer[i] = 1;
AntiKhoonHack[i] = SetTimerEx("KhoonTimer",2000,1,"i",i);
// }
}
if(PlayerTazeTime[i] >= 1)
{
PlayerTazeTime[i] += 1;
if(PlayerTazeTime[i] == 15)
{
PlayerTazeTime[i] = 0;
}
else
{
return 1;
}
}
if(PlayerInfo[i][pCarTime] > 0)
{
if(PlayerInfo[i][pCarTime] <= 0)
{
PlayerInfo[i][pCarTime] = 0;
}
else
{
PlayerInfo[i][pCarTime] -= 1;
}
}
//-------------------------------------------------------
if(FindTime[i] > 0)
{
if(!IsPlayerConnected(FindAccepted[i]))
{
FindTime[i] = 0; FindTimePoints[i] = 0; DisablePlayerCheckpoint(i); OnCheckpoint[i] = 0; PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~r~RedMarker gone", 2500, 1); SCM(i,COL_SYN,"Target left the server.");
}
if(IsPlayerConnected(FindAccepted[i]))
{
OnCheckpoint[i] = 1;
if(Mahal[FindAccepted[i]] == 1)
{
SetPlayerCheckpoint(i,1310.126586,-1367.812255,13.540800,5);
}
if(Mahal[FindAccepted[i]] == 2)
{
SetPlayerCheckpoint(i,1797.442504,-1578.950683,14.085444,5);
}
if(Mahal[FindAccepted[i]] == 3 && TooHouse[FindAccepted[i]] != 9999)
{
new house = TooHouse[FindAccepted[i]];
SetPlayerCheckpoint(i,HouseInfo[house][hExitx],HouseInfo[house][hExity],HouseInfo[house][hExitz],5);
}
if(Mahal[FindAccepted[i]] == 4)
{
SetPlayerCheckpoint(i,1481.0289,-1770.9703,18.7958,5);
}
if(Mahal[FindAccepted[i]] == 5)
{
SetPlayerCheckpoint(i,1554.9100,-1675.6428,16.1953,5);
}
if(Mahal[FindAccepted[i]] == 6)
{
SetPlayerCheckpoint(i,2287.0576,2432.1121,10.8203,5);
}
if(Mahal[FindAccepted[i]] == 7)
{
SetPlayerCheckpoint(i,725.5550,-1451.0232,17.6953,5);
}
if(Mahal[FindAccepted[i]] == 8)
{
SetPlayerCheckpoint(i,1455.4546,750.9794,11.0234,5);
}
if(Mahal[FindAccepted[i]] == 9)
{
SetPlayerCheckpoint(i,1456.7424,2773.4614,10.8203,5);
}
if(Mahal[FindAccepted[i]] == 10)
{
SetPlayerCheckpoint(i,1080.997192,-345.408233,73.984069,5);
}
if(Mahal[FindAccepted[i]] == 11)
{
SetPlayerCheckpoint(i,2792.930175,-1087.530761,30.718750,5);
}
if(Mahal[FindAccepted[i]] == 12)
{
SetPlayerCheckpoint(i,2637.1936,2352.0090,10.8203,5);
}
if(Mahal[FindAccepted[i]] == 13)
{
SetPlayerCheckpoint(i,1122.7065,-2037.0063,69.8942,5);
}
if(Mahal[FindAccepted[i]] == 14)
{
SetPlayerCheckpoint(i,937.3935,1733.2067,8.8516,5);
}
if(Mahal[FindAccepted[i]] == 15 && TooBiz[FindAccepted[i]] != 9999)
{
new bizw = TooBiz[FindAccepted[i]];
SetPlayerCheckpoint(i,BizzInfo[bizw][bEntranceX],BizzInfo[bizw][bEntranceY],BizzInfo[bizw][bEntranceZ],5);
}
if(Mahal[FindAccepted[i]] == 16)
{
SetPlayerCheckpoint(i,2421.4998,-1219.2438,25.56175,5);
}
if(Mahal[FindAccepted[i]] == 17)
{
SetPlayerCheckpoint(i,2229.9011,-1721.2582,13.5613,5);
}
if(Mahal[FindAccepted[i]] == 18)
{
SetPlayerCheckpoint(i,2577.4768,1325.4229,10.8203,5);
}
if(Mahal[FindAccepted[i]] == 19)
{
SetPlayerCheckpoint(i,1461.695, -1011.915, 26.84375,5);
}
if(Mahal[FindAccepted[i]] == 20)
{
SetPlayerCheckpoint(i,2436.9211,1734.6388,10.8203,5);
}
if(Mahal[FindAccepted[i]] == 21)
{
SetPlayerCheckpoint(i,1599.1802,2221.7549,11.0625,5);
}
if(Mahal[FindAccepted[i]] == 22)
{
SetPlayerCheckpoint(i,2188.0947,2469.6829,11.2422,5);
}
if(Mahal[FindAccepted[i]] == 23)
{
SetPlayerCheckpoint(i,2097.4456,2224.2317,11.0234,5);
}
if(Mahal[FindAccepted[i]] == 24)
{
SetPlayerCheckpoint(i,2637.1113,1129.2675,11.1797,5);
}
if(Mahal[FindAccepted[i]] == 25)
{
SetPlayerCheckpoint(i,1550.5363,1120.4553,10.8203,5);
}
if(Mahal[FindAccepted[i]] == 26)
{
SetPlayerCheckpoint(i,2150.7559,2733.8718,11.1763,5);
}
if(Mahal[FindAccepted[i]] == 27)
{
SetPlayerCheckpoint(i,-19.2424,1175.5189,19.5634,5);
}
if(Mahal[FindAccepted[i]] == 28)
{
SetPlayerCheckpoint(i,2193.7659,1991.2770,12.2969,5);
}
if(Mahal[FindAccepted[i]] == 29)
{
SetPlayerCheckpoint(i,2441.1169,2065.3987,10.8203,5);
}
if(Mahal[FindAccepted[i]] == 30)
{
SetPlayerCheckpoint(i,2308.5569,-1643.9500,14.8270,5);
}
if(Mahal[FindAccepted[i]] == 31)
{
SetPlayerCheckpoint(i,2441.1716,2163.5334,10.8203,5);
}
if(Mahal[FindAccepted[i]] == 32)
{
SetPlayerCheckpoint(i,1352.4738,-1758.7869,13.5078,5);
}
if(Mahal[FindAccepted[i]] == 33)
{
SetPlayerCheckpoint(i,1833.4373,-1842.5286,13.5781,5);
}
if(Mahal[FindAccepted[i]] == 34)
{
SetPlayerCheckpoint(i,1315.5024,-897.8165,39.5781,5);
}
if(Mahal[FindAccepted[i]] == 35)
{
SetPlayerCheckpoint(i,1000.1695,-919.9931,42.3281,5);
}
if(Mahal[FindAccepted[i]] == 36)
{
SetPlayerCheckpoint(i,-78.5365,-1169.9178,2.1389,5);
}
if(Mahal[FindAccepted[i]] == 37)
{
SetPlayerCheckpoint(i,762.7137,-1792.9973,13.0234,5);
}
if(Mahal[FindAccepted[i]] == 38)
{
SetPlayerCheckpoint(i,2165.875732,-1671.250000,15.073156,5);
}
if(Mahal[FindAccepted[i]] == 39)
{
SetPlayerCheckpoint(i,1199.3704,-918.4752,43.1199,5);
}
if(Mahal[FindAccepted[i]] == 40)
{
SetPlayerCheckpoint(i,2169.4907,2795.8733,10.8203,5);
}
if(Mahal[FindAccepted[i]] == 41)
{
SetPlayerCheckpoint(i,928.3752,-1352.9083,13.3438,5);
}
if(Mahal[FindAccepted[i]] == 42)
{
SetPlayerCheckpoint(i,810.8053,-1616.1349,13.5469,5);
}
if(Mahal[FindAccepted[i]] == 43)
{
SetPlayerCheckpoint(i,2472.7500,2034.2101,11.0625,5);
}
if(Mahal[FindAccepted[i]] == 44)
{
SetPlayerCheckpoint(i,2083.2698,2224.6626,11.0234,5);
}
if(Mahal[FindAccepted[i]] == 45)
{
SetPlayerCheckpoint(i,1872.4313,2071.8857,11.0625,5);
}
if(Mahal[FindAccepted[i]] == 46)
{
SetPlayerCheckpoint(i,2393.2512,2041.7485,10.8203,5);
}
if(Mahal[FindAccepted[i]] == 47)
{
SetPlayerCheckpoint(i,2102.1255,2228.7788,11.0234,5);
}
if(Mahal[FindAccepted[i]] == 48)
{
SetPlayerCheckpoint(i,2105.1135,-1806.5432,13.5547,5);
}
if(Mahal[FindAccepted[i]] == 49)
{
SetPlayerCheckpoint(i,1656.7053,1733.3455,10.8281,5);
}
if(Mahal[FindAccepted[i]] == 50)
{
SetPlayerCheckpoint(i,2102.1282,2257.4785,11.0234,5);
}
if(Mahal[FindAccepted[i]] == 51)
{
SetPlayerCheckpoint(i,2244.2517,-1665.4854,15.4766,5);
}
if(Mahal[FindAccepted[i]] == 52)
{
SetPlayerCheckpoint(i,2090.4385,2224.5938,11.0234,5);
}
if(Mahal[FindAccepted[i]] == 53)
{
SetPlayerCheckpoint(i,2638.0071,1671.8262,11.0234,5);
}
if(Mahal[FindAccepted[i]] == 54)
{
SetPlayerCheckpoint(i,2638.3850,1849.7784,11.0234,5);
}
if(Mahal[FindAccepted[i]] == 55)
{
SetPlayerCheckpoint(i,2572.0415,1904.6978,11.0234,5);
}
if(Mahal[FindAccepted[i]] == 56)
{
SetPlayerCheckpoint(i,2420.1963,-1509.0098,24.0000,5);
}
if(Mahal[FindAccepted[i]] == 57)
{
SetPlayerCheckpoint(i,1158.0591,2072.2092,11.0625,5);
}
if(Mahal[FindAccepted[i]] == 58)
{
SetPlayerCheckpoint(i,2884.5710,2454.0039,11.0690,5);
}
if(Mahal[FindAccepted[i]] == 59)
{
SetPlayerCheckpoint(i,2845.8950,2415.3938,11.0690,5);
}
if(Mahal[FindAccepted[i]] == 60)
{
SetPlayerCheckpoint(i,2756.7285,2477.2551,11.0625,5);
}
if(Mahal[FindAccepted[i]] == 61)
{
SetPlayerCheckpoint(i,2802.8596,2430.6089,11.0625,5);
}
if(Mahal[FindAccepted[i]] == 70)
{
SetPlayerCheckpoint(i,1607.520996,1815.756591,10.820312,5);
}
if(Mahal[FindAccepted[i]] == 71)
{
SetPlayerCheckpoint(i,-329.770111,1536.920532,76.611709,5);
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(FindAccepted[i], X, Y, Z);
if(Mahal[FindAccepted[i]] == 9999)
{
SetPlayerCheckpoint(i, X, Y, Z, 5);
}
if(PlayerInfo[i][pDetSkill] <= 399)
{
if(FindTime[i] == FindTimePoints[i])
{
FindTime[i] = 0; FindTimePoints[i] = 0; DisablePlayerCheckpoint(i);OnCheckpoint[i] = 0; PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~r~RedMarker gone", 2500, 1);
}
else
{
format(string, sizeof(string), "%d", FindTimePoints[i] - FindTime[i]);
GameTextForPlayer(i, string, 1500, 6);
FindTime[i] += 1;
}
}
}
}
if(UseAtm[i] == 1)
{
if(AtmTime[i] == 7)
{
AtmTime[i] = 0; UseAtm[i] = 0; StopLoopingAnim(i); TogglePlayerControllable(i, 1);
}
else
{
AtmTime[i] += 1;
}
}
if(TaxiCallTime[i] > 0)
{
if(IAcceptTaxi[i] == 1)
{
if(!IsPlayerConnected(TaxiAccepted[i]))
{
TaxiCallTime[i] = 0; TaxiAccepted[i] = INVALID_PLAYER_ID; IAcceptTaxi[i] = 0; DisablePlayerCheckpoint(i); OnCheckpoint[i] = 0; SCM(i,COL_SYN,"Target left the server.");
}
if(IsPlayerConnected(TaxiAccepted[i]))
{
OnCheckpoint[i] = 1;
if(Mahal[TaxiAccepted[i]] == 1)
{
SetPlayerCheckpoint(i,1310.126586,-1367.812255,13.540800,5);
}
if(Mahal[TaxiAccepted[i]] == 2)
{
SetPlayerCheckpoint(i,1797.442504,-1578.950683,14.085444,5);
}
if(Mahal[TaxiAccepted[i]] == 3 && TooHouse[TaxiAccepted[i]] != 9999)
{
new house = TooHouse[TaxiAccepted[i]];
SetPlayerCheckpoint(i,HouseInfo[house][hExitx],HouseInfo[house][hExity],HouseInfo[house][hExitz],5);
}
if(Mahal[TaxiAccepted[i]] == 4)
{
SetPlayerCheckpoint(i,1481.0289,-1770.9703,18.7958,5);
}
if(Mahal[TaxiAccepted[i]] == 5)
{
SetPlayerCheckpoint(i,1554.9100,-1675.6428,16.1953,5);
}
if(Mahal[TaxiAccepted[i]] == 6)
{
SetPlayerCheckpoint(i,2287.0576,2432.1121,10.8203,5);
}
if(Mahal[TaxiAccepted[i]] == 7)
{
SetPlayerCheckpoint(i,725.5550,-1451.0232,17.6953,5);
}
if(Mahal[TaxiAccepted[i]] == 8)
{
SetPlayerCheckpoint(i,1455.4546,750.9794,11.0234,5);
}
if(Mahal[TaxiAccepted[i]] == 9)
{
SetPlayerCheckpoint(i,1456.7424,2773.4614,10.8203,5);
}
if(Mahal[TaxiAccepted[i]] == 10)
{
SetPlayerCheckpoint(i,1080.997192,-345.408233,73.984069,5);
}
if(Mahal[TaxiAccepted[i]] == 11)
{
SetPlayerCheckpoint(i,2792.930175,-1087.530761,30.718750,5);
}
if(Mahal[TaxiAccepted[i]] == 12)
{
SetPlayerCheckpoint(i,2637.1936,2352.0090,10.8203,5);
}
if(Mahal[TaxiAccepted[i]] == 13)
{
SetPlayerCheckpoint(i,1122.7065,-2037.0063,69.8942,5);
}
if(Mahal[TaxiAccepted[i]] == 14)
{
SetPlayerCheckpoint(i,937.3935,1733.2067,8.8516,5);
}
if(Mahal[TaxiAccepted[i]] == 15 && TooBiz[TaxiAccepted[i]] != 9999)
{
new bizw = TooBiz[TaxiAccepted[i]];
SetPlayerCheckpoint(i,BizzInfo[bizw][bEntranceX],BizzInfo[bizw][bEntranceY],BizzInfo[bizw][bEntranceZ],5);
}
if(Mahal[TaxiAccepted[i]] == 16)
{
SetPlayerCheckpoint(i,2421.4998,-1219.2438,25.56175,5);
}
if(Mahal[TaxiAccepted[i]] == 17)
{
SetPlayerCheckpoint(i,2229.9011,-1721.2582,13.5613,5);
}
if(Mahal[TaxiAccepted[i]] == 18)
{
SetPlayerCheckpoint(i,2577.4768,1325.4229,10.8203,5);
}
if(Mahal[TaxiAccepted[i]] == 19)
{
SetPlayerCheckpoint(i,1461.695, -1011.915, 26.84375,5);
}
if(Mahal[TaxiAccepted[i]] == 20)
{
SetPlayerCheckpoint(i,2436.9211,1734.6388,10.8203,5);
}
if(Mahal[TaxiAccepted[i]] == 21)
{
SetPlayerCheckpoint(i,1599.1802,2221.7549,11.0625,5);
}
if(Mahal[TaxiAccepted[i]] == 22)
{
SetPlayerCheckpoint(i,2188.0947,2469.6829,11.2422,5);
}
if(Mahal[TaxiAccepted[i]] == 23)
{
SetPlayerCheckpoint(i,2097.4456,2224.2317,11.0234,5);
}
if(Mahal[TaxiAccepted[i]] == 24)
{
SetPlayerCheckpoint(i,2637.1113,1129.2675,11.1797,5);
}
if(Mahal[TaxiAccepted[i]] == 25)
{
SetPlayerCheckpoint(i,1550.5363,1120.4553,10.8203,5);
}
if(Mahal[TaxiAccepted[i]] == 26)
{
SetPlayerCheckpoint(i,2150.7559,2733.8718,11.1763,5);
}
if(Mahal[TaxiAccepted[i]] == 27)
{
SetPlayerCheckpoint(i,-19.2424,1175.5189,19.5634,5);
}
if(Mahal[TaxiAccepted[i]] == 28)
{
SetPlayerCheckpoint(i,2193.7659,1991.2770,12.2969,5);
}
if(Mahal[TaxiAccepted[i]] == 29)
{
SetPlayerCheckpoint(i,2441.1169,2065.3987,10.8203,5);
}
if(Mahal[TaxiAccepted[i]] == 30)
{
SetPlayerCheckpoint(i,2308.5569,-1643.9500,14.8270,5);
}
if(Mahal[TaxiAccepted[i]] == 31)
{
SetPlayerCheckpoint(i,2441.1716,2163.5334,10.8203,5);
}
if(Mahal[TaxiAccepted[i]] == 32)
{
SetPlayerCheckpoint(i,1352.4738,-1758.7869,13.5078,5);
}
if(Mahal[TaxiAccepted[i]] == 33)
{
SetPlayerCheckpoint(i,1833.4373,-1842.5286,13.5781,5);
}
if(Mahal[TaxiAccepted[i]] == 34)
{
SetPlayerCheckpoint(i,1315.5024,-897.8165,39.5781,5);
}
if(Mahal[TaxiAccepted[i]] == 35)
{
SetPlayerCheckpoint(i,1000.1695,-919.9931,42.3281,5);
}
if(Mahal[TaxiAccepted[i]] == 36)
{
SetPlayerCheckpoint(i,-78.5365,-1169.9178,2.1389,5);
}
if(Mahal[TaxiAccepted[i]] == 37)
{
SetPlayerCheckpoint(i,762.7137,-1792.9973,13.0234,5);
}
if(Mahal[TaxiAccepted[i]] == 38)
{
SetPlayerCheckpoint(i,2165.875732,-1671.250000,15.073156,5);
}
if(Mahal[TaxiAccepted[i]] == 39)
{
SetPlayerCheckpoint(i,1199.3704,-918.4752,43.1199,5);
}
if(Mahal[TaxiAccepted[i]] == 40)
{
SetPlayerCheckpoint(i,2169.4907,2795.8733,10.8203,5);
}
if(Mahal[TaxiAccepted[i]] == 41)
{
SetPlayerCheckpoint(i,928.3752,-1352.9083,13.3438,5);
}
if(Mahal[TaxiAccepted[i]] == 42)
{
SetPlayerCheckpoint(i,810.8053,-1616.1349,13.5469,5);
}
if(Mahal[TaxiAccepted[i]] == 43)
{
SetPlayerCheckpoint(i,2472.7500,2034.2101,11.0625,5);
}
if(Mahal[TaxiAccepted[i]] == 44)
{
SetPlayerCheckpoint(i,2083.2698,2224.6626,11.0234,5);
}
if(Mahal[TaxiAccepted[i]] == 45)
{
SetPlayerCheckpoint(i,1872.4313,2071.8857,11.0625,5);
}
if(Mahal[TaxiAccepted[i]] == 46)
{
SetPlayerCheckpoint(i,2393.2512,2041.7485,10.8203,5);
}
if(Mahal[TaxiAccepted[i]] == 47)
{
SetPlayerCheckpoint(i,2102.1255,2228.7788,11.0234,5);
}
if(Mahal[TaxiAccepted[i]] == 48)
{
SetPlayerCheckpoint(i,2105.1135,-1806.5432,13.5547,5);
}
if(Mahal[TaxiAccepted[i]] == 49)
{
SetPlayerCheckpoint(i,1656.7053,1733.3455,10.8281,5);
}
if(Mahal[TaxiAccepted[i]] == 50)
{
SetPlayerCheckpoint(i,2102.1282,2257.4785,11.0234,5);
}
if(Mahal[TaxiAccepted[i]] == 51)
{
SetPlayerCheckpoint(i,2244.2517,-1665.4854,15.4766,5);
}
if(Mahal[TaxiAccepted[i]] == 52)
{
SetPlayerCheckpoint(i,2090.4385,2224.5938,11.0234,5);
}
if(Mahal[TaxiAccepted[i]] == 53)
{
SetPlayerCheckpoint(i,2638.0071,1671.8262,11.0234,5);
}
if(Mahal[TaxiAccepted[i]] == 54)
{
SetPlayerCheckpoint(i,2638.3850,1849.7784,11.0234,5);
}
if(Mahal[TaxiAccepted[i]] == 55)
{
SetPlayerCheckpoint(i,2572.0415,1904.6978,11.0234,5);
}
if(Mahal[TaxiAccepted[i]] == 56)
{
SetPlayerCheckpoint(i,2420.1963,-1509.0098,24.0000,5);
}
if(Mahal[TaxiAccepted[i]] == 57)
{
SetPlayerCheckpoint(i,1158.0591,2072.2092,11.0625,5);
}
if(Mahal[TaxiAccepted[i]] == 58)
{
SetPlayerCheckpoint(i,2884.5710,2454.0039,11.0690,5);
}
if(Mahal[TaxiAccepted[i]] == 59)
{
SetPlayerCheckpoint(i,2845.8950,2415.3938,11.0690,5);
}
if(Mahal[TaxiAccepted[i]] == 60)
{
SetPlayerCheckpoint(i,2756.7285,2477.2551,11.0625,5);
}
if(Mahal[TaxiAccepted[i]] == 61)
{
SetPlayerCheckpoint(i,2802.8596,2430.6089,11.0625,5);
}
if(Mahal[TaxiAccepted[i]] == 70)
{
SetPlayerCheckpoint(i,1607.520996,1815.756591,10.820312,5);
}
if(Mahal[TaxiAccepted[i]] == 71)
{
SetPlayerCheckpoint(i,-329.770111,1536.920532,76.611709,5);
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(TaxiAccepted[i], X, Y, Z);
if(Mahal[TaxiAccepted[i]] == 9999)
{
SetPlayerCheckpoint(i, X, Y, Z, 5);
}
}
}
}
if(MedicCallTime[i] > 0)
{
if(!IsPlayerConnected(MedicAccepted[i]))
{
MedicCallTime[i] = 0; MedicAccepted[i] = 9999; DisablePlayerCheckpoint(i); OnCheckpoint[i] = 0; SCM(i,COL_SYN,"Target left the server.");
}
if(IsPlayerConnected(MedicAccepted[i]))
{
OnCheckpoint[i] = 1;
if(Mahal[MedicAccepted[i]] == 1)
{
SetPlayerCheckpoint(i,1310.126586,-1367.812255,13.540800,5);
}
if(Mahal[MedicAccepted[i]] == 2)
{
SetPlayerCheckpoint(i,1797.442504,-1578.950683,14.085444,5);
}
if(Mahal[MedicAccepted[i]] == 3 && TooHouse[MedicAccepted[i]] != 9999)
{
new house = TooHouse[MedicAccepted[i]];
SetPlayerCheckpoint(i,HouseInfo[house][hExitx],HouseInfo[house][hExity],HouseInfo[house][hExitz],5);
}
if(Mahal[MedicAccepted[i]] == 4)
{
SetPlayerCheckpoint(i,1481.0289,-1770.9703,18.7958,5);
}
if(Mahal[MedicAccepted[i]] == 5)
{
SetPlayerCheckpoint(i,1554.9100,-1675.6428,16.1953,5);
}
if(Mahal[MedicAccepted[i]] == 6)
{
SetPlayerCheckpoint(i,2287.0576,2432.1121,10.8203,5);
}
if(Mahal[MedicAccepted[i]] == 7)
{
SetPlayerCheckpoint(i,725.5550,-1451.0232,17.6953,5);
}
if(Mahal[MedicAccepted[i]] == 8)
{
SetPlayerCheckpoint(i,1455.4546,750.9794,11.0234,5);
}
if(Mahal[MedicAccepted[i]] == 9)
{
SetPlayerCheckpoint(i,1456.7424,2773.4614,10.8203,5);
}
if(Mahal[MedicAccepted[i]] == 10)
{
SetPlayerCheckpoint(i,1080.997192,-345.408233,73.984069,5);
}
if(Mahal[MedicAccepted[i]] == 11)
{
SetPlayerCheckpoint(i,2792.930175,-1087.530761,30.718750,5);
}
if(Mahal[MedicAccepted[i]] == 12)
{
SetPlayerCheckpoint(i,2637.1936,2352.0090,10.8203,5);
}
if(Mahal[MedicAccepted[i]] == 13)
{
SetPlayerCheckpoint(i,1122.7065,-2037.0063,69.8942,5);
}
if(Mahal[MedicAccepted[i]] == 14)
{
SetPlayerCheckpoint(i,937.3935,1733.2067,8.8516,5);
}
if(Mahal[MedicAccepted[i]] == 15 && TooBiz[MedicAccepted[i]] != 9999)
{
new bizw = TooBiz[MedicAccepted[i]];
SetPlayerCheckpoint(i,BizzInfo[bizw][bEntranceX],BizzInfo[bizw][bEntranceY],BizzInfo[bizw][bEntranceZ],5);
}
if(Mahal[MedicAccepted[i]] == 16)
{
SetPlayerCheckpoint(i,2421.4998,-1219.2438,25.56175,5);
}
if(Mahal[MedicAccepted[i]] == 17)
{
SetPlayerCheckpoint(i,2229.9011,-1721.2582,13.5613,5);
}
if(Mahal[MedicAccepted[i]] == 18)
{
SetPlayerCheckpoint(i,2577.4768,1325.4229,10.8203,5);
}
if(Mahal[MedicAccepted[i]] == 19)
{
SetPlayerCheckpoint(i,1461.695, -1011.915, 26.84375,5);
}
if(Mahal[MedicAccepted[i]] == 20)
{
SetPlayerCheckpoint(i,2436.9211,1734.6388,10.8203,5);
}
if(Mahal[MedicAccepted[i]] == 21)
{
SetPlayerCheckpoint(i,1599.1802,2221.7549,11.0625,5);
}
if(Mahal[MedicAccepted[i]] == 22)
{
SetPlayerCheckpoint(i,2188.0947,2469.6829,11.2422,5);
}
if(Mahal[MedicAccepted[i]] == 23)
{
SetPlayerCheckpoint(i,2097.4456,2224.2317,11.0234,5);
}
if(Mahal[MedicAccepted[i]] == 24)
{
SetPlayerCheckpoint(i,2637.1113,1129.2675,11.1797,5);
}
if(Mahal[MedicAccepted[i]] == 25)
{
SetPlayerCheckpoint(i,1550.5363,1120.4553,10.8203,5);
}
if(Mahal[MedicAccepted[i]] == 26)
{
SetPlayerCheckpoint(i,2150.7559,2733.8718,11.1763,5);
}
if(Mahal[MedicAccepted[i]] == 27)
{
SetPlayerCheckpoint(i,-19.2424,1175.5189,19.5634,5);
}
if(Mahal[MedicAccepted[i]] == 28)
{
SetPlayerCheckpoint(i,2193.7659,1991.2770,12.2969,5);
}
if(Mahal[MedicAccepted[i]] == 29)
{
SetPlayerCheckpoint(i,2441.1169,2065.3987,10.8203,5);
}
if(Mahal[MedicAccepted[i]] == 30)
{
SetPlayerCheckpoint(i,2308.5569,-1643.9500,14.8270,5);
}
if(Mahal[MedicAccepted[i]] == 31)
{
SetPlayerCheckpoint(i,2441.1716,2163.5334,10.8203,5);
}
if(Mahal[MedicAccepted[i]] == 32)
{
SetPlayerCheckpoint(i,1352.4738,-1758.7869,13.5078,5);
}
if(Mahal[MedicAccepted[i]] == 33)
{
SetPlayerCheckpoint(i,1833.4373,-1842.5286,13.5781,5);
}
if(Mahal[MedicAccepted[i]] == 34)
{
SetPlayerCheckpoint(i,1315.5024,-897.8165,39.5781,5);
}
if(Mahal[MedicAccepted[i]] == 35)
{
SetPlayerCheckpoint(i,1000.1695,-919.9931,42.3281,5);
}
if(Mahal[MedicAccepted[i]] == 36)
{
SetPlayerCheckpoint(i,-78.5365,-1169.9178,2.1389,5);
}
if(Mahal[MedicAccepted[i]] == 37)
{
SetPlayerCheckpoint(i,762.7137,-1792.9973,13.0234,5);
}
if(Mahal[MedicAccepted[i]] == 38)
{
SetPlayerCheckpoint(i,2165.875732,-1671.250000,15.073156,5);
}
if(Mahal[MedicAccepted[i]] == 39)
{
SetPlayerCheckpoint(i,1199.3704,-918.4752,43.1199,5);
}
if(Mahal[MedicAccepted[i]] == 40)
{
SetPlayerCheckpoint(i,2169.4907,2795.8733,10.8203,5);
}
if(Mahal[MedicAccepted[i]] == 41)
{
SetPlayerCheckpoint(i,928.3752,-1352.9083,13.3438,5);
}
if(Mahal[MedicAccepted[i]] == 42)
{
SetPlayerCheckpoint(i,810.8053,-1616.1349,13.5469,5);
}
if(Mahal[MedicAccepted[i]] == 43)
{
SetPlayerCheckpoint(i,2472.7500,2034.2101,11.0625,5);
}
if(Mahal[MedicAccepted[i]] == 44)
{
SetPlayerCheckpoint(i,2083.2698,2224.6626,11.0234,5);
}
if(Mahal[MedicAccepted[i]] == 45)
{
SetPlayerCheckpoint(i,1872.4313,2071.8857,11.0625,5);
}
if(Mahal[MedicAccepted[i]] == 46)
{
SetPlayerCheckpoint(i,2393.2512,2041.7485,10.8203,5);
}
if(Mahal[MedicAccepted[i]] == 47)
{
SetPlayerCheckpoint(i,2102.1255,2228.7788,11.0234,5);
}
if(Mahal[MedicAccepted[i]] == 48)
{
SetPlayerCheckpoint(i,2105.1135,-1806.5432,13.5547,5);
}
if(Mahal[MedicAccepted[i]] == 49)
{
SetPlayerCheckpoint(i,1656.7053,1733.3455,10.8281,5);
}
if(Mahal[MedicAccepted[i]] == 50)
{
SetPlayerCheckpoint(i,2102.1282,2257.4785,11.0234,5);
}
if(Mahal[MedicAccepted[i]] == 51)
{
SetPlayerCheckpoint(i,2244.2517,-1665.4854,15.4766,5);
}
if(Mahal[MedicAccepted[i]] == 52)
{
SetPlayerCheckpoint(i,2090.4385,2224.5938,11.0234,5);
}
if(Mahal[MedicAccepted[i]] == 53)
{
SetPlayerCheckpoint(i,2638.0071,1671.8262,11.0234,5);
}
if(Mahal[MedicAccepted[i]] == 54)
{
SetPlayerCheckpoint(i,2638.3850,1849.7784,11.0234,5);
}
if(Mahal[MedicAccepted[i]] == 55)
{
SetPlayerCheckpoint(i,2572.0415,1904.6978,11.0234,5);
}
if(Mahal[MedicAccepted[i]] == 56)
{
SetPlayerCheckpoint(i,2420.1963,-1509.0098,24.0000,5);
}
if(Mahal[MedicAccepted[i]] == 57)
{
SetPlayerCheckpoint(i,1158.0591,2072.2092,11.0625,5);
}
if(Mahal[MedicAccepted[i]] == 58)
{
SetPlayerCheckpoint(i,2884.5710,2454.0039,11.0690,5);
}
if(Mahal[MedicAccepted[i]] == 59)
{
SetPlayerCheckpoint(i,2845.8950,2415.3938,11.0690,5);
}
if(Mahal[MedicAccepted[i]] == 60)
{
SetPlayerCheckpoint(i,2756.7285,2477.2551,11.0625,5);
}
if(Mahal[MedicAccepted[i]] == 61)
{
SetPlayerCheckpoint(i,2802.8596,2430.6089,11.0625,5);
}
if(Mahal[MedicAccepted[i]] == 70)
{
SetPlayerCheckpoint(i,1607.520996,1815.756591,10.820312,5);
}
if(Mahal[MedicAccepted[i]] == 71)
{
SetPlayerCheckpoint(i,-329.770111,1536.920532,76.611709,5);
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(MedicAccepted[i], X, Y, Z);
if(Mahal[MedicAccepted[i]] == 9999)
{
SetPlayerCheckpoint(i, X, Y, Z, 5);
}
}
}
if(MechanicCallTime[i] > 0)
{
if(!IsPlayerConnected(MechanicAccepted[i]))
{
MechanicCallTime[i] = 0; MechanicAccepted[i] = 9999; DisablePlayerCheckpoint(i); OnCheckpoint[i] = 0; SCM(i,COL_SYN,"Target left the server.");
}
if(IsPlayerConnected(MechanicAccepted[i]))
{
OnCheckpoint[i] = 1;
if(Mahal[MechanicAccepted[i]] == 1)
{
SetPlayerCheckpoint(i,1310.126586,-1367.812255,13.540800,5);
}
if(Mahal[MechanicAccepted[i]] == 2)
{
SetPlayerCheckpoint(i,1797.442504,-1578.950683,14.085444,5);
}
if(Mahal[MechanicAccepted[i]] == 3 && TooHouse[MechanicAccepted[i]] != 9999)
{
new house = TooHouse[MechanicAccepted[i]];
SetPlayerCheckpoint(i,HouseInfo[house][hExitx],HouseInfo[house][hExity],HouseInfo[house][hExitz],5);
}
if(Mahal[MechanicAccepted[i]] == 4)
{
SetPlayerCheckpoint(i,1481.0289,-1770.9703,18.7958,5);
}
if(Mahal[MechanicAccepted[i]] == 5)
{
SetPlayerCheckpoint(i,1554.9100,-1675.6428,16.1953,5);
}
if(Mahal[MechanicAccepted[i]] == 6)
{
SetPlayerCheckpoint(i,2287.0576,2432.1121,10.8203,5);
}
if(Mahal[MechanicAccepted[i]] == 7)
{
SetPlayerCheckpoint(i,725.5550,-1451.0232,17.6953,5);
}
if(Mahal[MechanicAccepted[i]] == 8)
{
SetPlayerCheckpoint(i,1455.4546,750.9794,11.0234,5);
}
if(Mahal[MechanicAccepted[i]] == 9)
{
SetPlayerCheckpoint(i,1456.7424,2773.4614,10.8203,5);
}
if(Mahal[MechanicAccepted[i]] == 10)
{
SetPlayerCheckpoint(i,1080.997192,-345.408233,73.984069,5);
}
if(Mahal[MechanicAccepted[i]] == 11)
{
SetPlayerCheckpoint(i,2792.930175,-1087.530761,30.718750,5);
}
if(Mahal[MechanicAccepted[i]] == 12)
{
SetPlayerCheckpoint(i,2637.1936,2352.0090,10.8203,5);
}
if(Mahal[MechanicAccepted[i]] == 13)
{
SetPlayerCheckpoint(i,1122.7065,-2037.0063,69.8942,5);
}
if(Mahal[MechanicAccepted[i]] == 14)
{
SetPlayerCheckpoint(i,937.3935,1733.2067,8.8516,5);
}
if(Mahal[MechanicAccepted[i]] == 15 && TooBiz[MechanicAccepted[i]] != 9999)
{
new bizw = TooBiz[MechanicAccepted[i]];
SetPlayerCheckpoint(i,BizzInfo[bizw][bEntranceX],BizzInfo[bizw][bEntranceY],BizzInfo[bizw][bEntranceZ],5);
}
if(Mahal[MechanicAccepted[i]] == 16)
{
SetPlayerCheckpoint(i,2421.4998,-1219.2438,25.56175,5);
}
if(Mahal[MechanicAccepted[i]] == 17)
{
SetPlayerCheckpoint(i,2229.9011,-1721.2582,13.5613,5);
}
if(Mahal[MechanicAccepted[i]] == 18)
{
SetPlayerCheckpoint(i,2577.4768,1325.4229,10.8203,5);
}
if(Mahal[MechanicAccepted[i]] == 19)
{
SetPlayerCheckpoint(i,1461.695, -1011.915, 26.84375,5);
}
if(Mahal[MechanicAccepted[i]] == 20)
{
SetPlayerCheckpoint(i,2436.9211,1734.6388,10.8203,5);
}
if(Mahal[MechanicAccepted[i]] == 21)
{
SetPlayerCheckpoint(i,1599.1802,2221.7549,11.0625,5);
}
if(Mahal[MechanicAccepted[i]] == 22)
{
SetPlayerCheckpoint(i,2188.0947,2469.6829,11.2422,5);
}
if(Mahal[MechanicAccepted[i]] == 23)
{
SetPlayerCheckpoint(i,2097.4456,2224.2317,11.0234,5);
}
if(Mahal[MechanicAccepted[i]] == 24)
{
SetPlayerCheckpoint(i,2637.1113,1129.2675,11.1797,5);
}
if(Mahal[MechanicAccepted[i]] == 25)
{
SetPlayerCheckpoint(i,1550.5363,1120.4553,10.8203,5);
}
if(Mahal[MechanicAccepted[i]] == 26)
{
SetPlayerCheckpoint(i,2150.7559,2733.8718,11.1763,5);
}
if(Mahal[MechanicAccepted[i]] == 27)
{
SetPlayerCheckpoint(i,-19.2424,1175.5189,19.5634,5);
}
if(Mahal[MechanicAccepted[i]] == 28)
{
SetPlayerCheckpoint(i,2193.7659,1991.2770,12.2969,5);
}
if(Mahal[MechanicAccepted[i]] == 29)
{
SetPlayerCheckpoint(i,2441.1169,2065.3987,10.8203,5);
}
if(Mahal[MechanicAccepted[i]] == 30)
{
SetPlayerCheckpoint(i,2308.5569,-1643.9500,14.8270,5);
}
if(Mahal[MechanicAccepted[i]] == 31)
{
SetPlayerCheckpoint(i,2441.1716,2163.5334,10.8203,5);
}
if(Mahal[MechanicAccepted[i]] == 32)
{
SetPlayerCheckpoint(i,1352.4738,-1758.7869,13.5078,5);
}
if(Mahal[MechanicAccepted[i]] == 33)
{
SetPlayerCheckpoint(i,1833.4373,-1842.5286,13.5781,5);
}
if(Mahal[MechanicAccepted[i]] == 34)
{
SetPlayerCheckpoint(i,1315.5024,-897.8165,39.5781,5);
}
if(Mahal[MechanicAccepted[i]] == 35)
{
SetPlayerCheckpoint(i,1000.1695,-919.9931,42.3281,5);
}
if(Mahal[MechanicAccepted[i]] == 36)
{
SetPlayerCheckpoint(i,-78.5365,-1169.9178,2.1389,5);
}
if(Mahal[MechanicAccepted[i]] == 37)
{
SetPlayerCheckpoint(i,762.7137,-1792.9973,13.0234,5);
}
if(Mahal[MechanicAccepted[i]] == 38)
{
SetPlayerCheckpoint(i,2165.875732,-1671.250000,15.073156,5);
}
if(Mahal[MechanicAccepted[i]] == 39)
{
SetPlayerCheckpoint(i,1199.3704,-918.4752,43.1199,5);
}
if(Mahal[MechanicAccepted[i]] == 40)
{
SetPlayerCheckpoint(i,2169.4907,2795.8733,10.8203,5);
}
if(Mahal[MechanicAccepted[i]] == 41)
{
SetPlayerCheckpoint(i,928.3752,-1352.9083,13.3438,5);
}
if(Mahal[MechanicAccepted[i]] == 42)
{
SetPlayerCheckpoint(i,810.8053,-1616.1349,13.5469,5);
}
if(Mahal[MechanicAccepted[i]] == 43)
{
SetPlayerCheckpoint(i,2472.7500,2034.2101,11.0625,5);
}
if(Mahal[MechanicAccepted[i]] == 44)
{
SetPlayerCheckpoint(i,2083.2698,2224.6626,11.0234,5);
}
if(Mahal[MechanicAccepted[i]] == 45)
{
SetPlayerCheckpoint(i,1872.4313,2071.8857,11.0625,5);
}
if(Mahal[MechanicAccepted[i]] == 46)
{
SetPlayerCheckpoint(i,2393.2512,2041.7485,10.8203,5);
}
if(Mahal[MechanicAccepted[i]] == 47)
{
SetPlayerCheckpoint(i,2102.1255,2228.7788,11.0234,5);
}
if(Mahal[MechanicAccepted[i]] == 48)
{
SetPlayerCheckpoint(i,2105.1135,-1806.5432,13.5547,5);
}
if(Mahal[MechanicAccepted[i]] == 49)
{
SetPlayerCheckpoint(i,1656.7053,1733.3455,10.8281,5);
}
if(Mahal[MechanicAccepted[i]] == 50)
{
SetPlayerCheckpoint(i,2102.1282,2257.4785,11.0234,5);
}
if(Mahal[MechanicAccepted[i]] == 51)
{
SetPlayerCheckpoint(i,2244.2517,-1665.4854,15.4766,5);
}
if(Mahal[MechanicAccepted[i]] == 52)
{
SetPlayerCheckpoint(i,2090.4385,2224.5938,11.0234,5);
}
if(Mahal[MechanicAccepted[i]] == 53)
{
SetPlayerCheckpoint(i,2638.0071,1671.8262,11.0234,5);
}
if(Mahal[MechanicAccepted[i]] == 54)
{
SetPlayerCheckpoint(i,2638.3850,1849.7784,11.0234,5);
}
if(Mahal[MechanicAccepted[i]] == 55)
{
SetPlayerCheckpoint(i,2572.0415,1904.6978,11.0234,5);
}
if(Mahal[MechanicAccepted[i]] == 56)
{
SetPlayerCheckpoint(i,2420.1963,-1509.0098,24.0000,5);
}
if(Mahal[MechanicAccepted[i]] == 57)
{
SetPlayerCheckpoint(i,1158.0591,2072.2092,11.0625,5);
}
if(Mahal[MechanicAccepted[i]] == 58)
{
SetPlayerCheckpoint(i,2884.5710,2454.0039,11.0690,5);
}
if(Mahal[MechanicAccepted[i]] == 59)
{
SetPlayerCheckpoint(i,2845.8950,2415.3938,11.0690,5);
}
if(Mahal[MechanicAccepted[i]] == 60)
{
SetPlayerCheckpoint(i,2756.7285,2477.2551,11.0625,5);
}
if(Mahal[MechanicAccepted[i]] == 61)
{
SetPlayerCheckpoint(i,2802.8596,2430.6089,11.0625,5);
}
if(Mahal[MechanicAccepted[i]] == 70)
{
SetPlayerCheckpoint(i,1607.520996,1815.756591,10.820312,5);
}
if(Mahal[MechanicAccepted[i]] == 71)
{
SetPlayerCheckpoint(i,-329.770111,1536.920532,76.611709,5);
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(MechanicAccepted[i], X, Y, Z);
if(Mahal[MechanicAccepted[i]] == 9999)
{
SetPlayerCheckpoint(i, X, Y, Z, 5);
}
}
}
if(PlayerCuffed[i] == 1)
{
if(PlayerCuffedTime[i] <= 0)
{
TogglePlayerControllable(i, 1);
PlayerCuffed[i] = 0;
PlayerCuffedTime[i] = 0;
PlayerTazeTime[i] = 1;
}
else
{
PlayerCuffedTime[i] -= 1;
}
}
if(PlayerCuffed[i] == 2)
{
if(PlayerCuffedTime[i] <= 0)
{
GameTextForPlayer(i, "~r~You broke the Cuffs, you are free!", 2500, 3);
TogglePlayerControllable(i, 1);
PlayerCuffed[i] = 0;
PlayerCuffedTime[i] = 0;
}
else
{
PlayerCuffedTime[i] -= 1;
}
}
}
}
for(new c = 0;c<sizeof(TurfInfo);c++)
{
if(TurfTime[c] >= 1)
{
TurfTime[c] --;
if(TurfTime[c] == 1)
{
new turfid = c;
scoreattacker[turfid] = killsattackerturf[turfid] - deathsattackerturf[turfid];
scorekhod[turfid] = killskhodturf[turfid] - deathskhodturf[turfid];
new stringo[512];
if(scoreattacker[turfid] > scorekhod[turfid])
{
new familyname[256];
for(new i = 0;i<LastPID;i++)
{
if(PINFO[i][pMember] == turfattacker[turfid] || PINFO[i][pLeader] == turfattacker[turfid])
{
if(PINFO[i][pMember] == 5 || PINFO[i][pLeader] == 5)
{
format(stringo,256,"%s","SilenceMafia");
strmid(familyname,stringo,0,strlen(stringo),256);
}
if(PINFO[i][pMember] == 6 || PINFO[i][pLeader] == 6)
{
format(stringo,256,"%s","TheKillers");
strmid(familyname,stringo,0,strlen(stringo),256);
}
if(PINFO[i][pMember] == 12 || PINFO[i][pLeader] == 12)
{
format(stringo,256,"%s","DangerousTigers");
strmid(familyname,stringo,0,strlen(stringo),256);
}
if(PINFO[i][pMember] == 13 || PINFO[i][pLeader] == 13)
{
format(stringo,256,"%s","LegendaryMen");
strmid(familyname,stringo,0,strlen(stringo),256);
}
if(PINFO[i][pMember] == 14 || PINFO[i][pLeader] == 14)
{
format(stringo,256,"%s","FastNFarious");
strmid(familyname,stringo,0,strlen(stringo),256);
}
if(PINFO[i][pMember] == 15 || PINFO[i][pLeader] == 15)
{
format(stringo,256,"%s","StormMen");
strmid(familyname,stringo,0,strlen(stringo),256);
}
format(stringo,512,"[Turfs]: Family %s(Your family) Captured Turfid %i Score: %i(Kills: %i & Deaths: %i)",familyname,turfid,scoreattacker[turfid],killsattackerturf[turfid],deathsattackerturf[turfid]);
SCM(i,COLOR_JOB,stringo);
GangZoneStopFlashForPlayer(i,Turfs[turfid]);
format(stringo,512,"[Turfs]: Your score was %i(Your Kills: %i & Your Deaths: %i)",PlayerInfo[i][pKillW] - PlayerInfo[i][pDeathW],PlayerInfo[i][pKillW],PlayerInfo[i][pDeathW]);
SCM(i,COLOR_JOB,stringo);
if(TurfShow[i] == 1) {
OnPlayerCommandText(i, "/turfs");
}
for(new b;b<LastPID;b++)
{
if(IsPlayerConnected(b) && IsPlayerStreamedIn(b, i))
{
OnPlayerStreamIn(b, i);
OnPlayerStreamIn(i, b);
}
}
}
}
strmid(TurfInfo[turfid][zOwner],familyname,0,strlen(familyname),256);
SaveTurfs(turfid);
DynamicFactions[turfattacker[turfid]-1][fBank] += 2000;
SaveDynamicFactions(turfattacker[turfid]-1);
DynamicFactions[turfkhod[turfid]-1][fBank] -= 2000;
SaveDynamicFactions(turfkhod[turfid]-1);
for(new i = 0;i<LastPID;i++)
{
if(PlayerInfo[i][pMember] == turfkhod[turfid] || PlayerInfo[i][pLeader] == turfkhod[turfid])
{
format(stringo,512,"[Turfs]: Your family losted on capture turf %i, score: %i(Kills: %i & Deaths: %i)",turfid,scorekhod[turfid],killskhodturf[turfid],deathskhodturf[turfid]);
SCM(i,COLOR_JOB,stringo);
format(stringo,512,"[Turfs]: Your score was %i(Your Kills: %i & Your Deaths: %i)",PlayerInfo[i][pKillW] - PlayerInfo[i][pDeathW],PlayerInfo[i][pKillW],PlayerInfo[i][pDeathW]);
SCM(i,COLOR_JOB,stringo);
if(TurfShow[i] == 1) {
OnPlayerCommandText(i, "/turfs");
}
}
}
}
if(scoreattacker[turfid] < scorekhod[turfid])
{
new familyname[256];
for(new i = 0;i<LastPID;i++)
{
if(PINFO[i][pMember] == turfkhod[turfid] || PINFO[i][pLeader] == turfkhod[turfid])
{
if(PINFO[i][pMember] == 5 || PINFO[i][pLeader] == 5)
{
format(stringo,256,"%s","SilenceMafia");
strmid(familyname,stringo,0,strlen(stringo),256);
}
if(PINFO[i][pMember] == 6 || PINFO[i][pLeader] == 6)
{
format(stringo,256,"%s","TheKillers");
strmid(familyname,stringo,0,strlen(stringo),256);
}
if(PINFO[i][pMember] == 12 || PINFO[i][pLeader] == 12)
{
format(stringo,256,"%s","DangerousTigers");
strmid(familyname,stringo,0,strlen(stringo),256);
}
if(PINFO[i][pMember] == 13 || PINFO[i][pLeader] == 13)
{
format(stringo,256,"%s","LegendaryMen");
strmid(familyname,stringo,0,strlen(stringo),256);
}
if(PINFO[i][pMember] == 14 || PINFO[i][pLeader] == 14)
{
format(stringo,256,"%s","FastNFarious");
strmid(familyname,stringo,0,strlen(stringo),256);
}
if(PINFO[i][pMember] == 15 || PINFO[i][pLeader] == 15)
{
format(stringo,256,"%s","StormMen");
strmid(familyname,stringo,0,strlen(stringo),256);
}
format(stringo,512,"[Turfs]: Family %s(Your family) Captured Turfid %i Score: %i(Kills: %i & Deaths: %i)",familyname,turfid,scorekhod[turfid],killskhodturf[turfid],deathskhodturf[turfid]);
SCM(i,COLOR_JOB,stringo);
GangZoneStopFlashForPlayer(i,Turfs[turfid]);
format(stringo,512,"[Turfs]: Your score was %i(Your Kills: %i & Your Deaths: %i)",PlayerInfo[i][pKillW] - PlayerInfo[i][pDeathW],PlayerInfo[i][pKillW],PlayerInfo[i][pDeathW]);
SCM(i,COLOR_JOB,stringo);
if(TurfShow[i] == 1) {
OnPlayerCommandText(i, "/turfs");
}
}
}
strmid(TurfInfo[turfid][zOwner],familyname,0,strlen(familyname),256);
SaveTurfs(turfid);
DynamicFactions[turfkhod[turfid]-1][fBank] += 2000;
SaveDynamicFactions(turfkhod[turfid]-1);
DynamicFactions[turfattacker[turfid]-1][fBank] -= 2000;
SaveDynamicFactions(turfattacker[turfid]-1);
for(new i = 0;i<LastPID;i++)
{
if(PlayerInfo[i][pMember] == turfattacker[turfid] || PlayerInfo[i][pLeader] == turfattacker[turfid])
{
format(stringo,512,"[Turfs]: Your family losted on capture turf %i, score: %i(Kills: %i & Deaths: %i)",turfid,scoreattacker[turfid],killsattackerturf[turfid],deathsattackerturf[turfid]);
SCM(i,COLOR_JOB,stringo);
format(stringo,512,"[Turfs]: Your score was %i(Your Kills: %i & Your Deaths: %i)",PlayerInfo[i][pKillW] - PlayerInfo[i][pDeathW],PlayerInfo[i][pKillW],PlayerInfo[i][pDeathW]);
SCM(i,COLOR_JOB,stringo);
if(TurfShow[i] == 1) {
OnPlayerCommandText(i, "/turfs");
}
}
}
}
if(scoreattacker[turfid] == scorekhod[turfid])
{
for(new i = 0;i<LastPID;i++)
{
if(OnWar[i] == turfid)
{
format(stringo,512,"[Turfs]: Both teams scores is %d you have 5 minutes more time to capture zone.",scoreattacker[turfid]);
SCM(i,COLOR_JOB,stringo);
TurfTime[turfid] = 300;
TurfReload[turfid] = 1;
}
}
return 1;