Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public SetPlayerUnjail()
- {
- CustomPickups();
- if(serverrestart2 > 0)
- {
- serverrestart2 = serverrestart2-1;
- new stringers[256];
- format(stringers, sizeof(stringers), "SERVERUL SE VA RESTARTA IN %d SECUNDE", serverrestart2);
- TextDrawSetString(textile, stringers);
- foreach(Player,i)
- {
- TextDrawShowForPlayer(i, textile);
- }
- if(serverrestart2 < 1)
- {
- foreach(Player,i)
- {
- OnPlayerDateUpdateX2(i);
- Update(i, pPayDayx);
- Update(i, pPayCheckx);
- Update(i, pFpunishx);
- Update(i, pConnectTimex);
- Update(i, pLawyerx);
- Update(i, pBank);
- Update(i, pCashx);
- Update(i, pRP);
- Update(i, pJailTimex);
- Update(i, pLevelx);
- }
- serverrestart2 = -1;
- SendRconCommand("changemode ExpertGameGM");
- }
- }
- if(painttime > 0)
- {
- painttime--;
- }
- new string[256],stringg[256];
- for(new i = 1; i < sizeof(Turfs); i++)
- {
- new attackers = WarInfo[i][wAttacker],
- defenders = WarInfo[i][wFaction],
- count=0,
- warid,
- var100[500];
- if(WarInfo[i][wTime] > 0)
- {
- WarInfo[i][wTime]--;
- foreach(Player,j)
- {
- if(PlayerInfo[j][pMember] == attackers)
- {
- format(string,sizeof(string),"~w~TURF TIMER:~h~~y~ %s",CalculeazaTimp2(WarInfo[i][wTime]));
- PlayerTextDrawSetString(j, TimeLeftWar1[j], string);
- PlayerTextDrawShow(j, TimeLeftWar1[j]);
- }
- if(PlayerInfo[j][pMember] == defenders)
- {
- format(string,sizeof(string),"~w~TURF TIMER:~h~~y~ %s",CalculeazaTimp2(WarInfo[i][wTime]));
- PlayerTextDrawSetString(j, TimeLeftWar1[j], string);
- PlayerTextDrawShow(j, TimeLeftWar1[j]);
- }
- }
- if(WarInfo[i][wTime] == 1)
- {
- new atscore = 0,
- defscore = 0,
- winner;
- atscore = WarScoreF[attackers][i];
- defscore = WarScoreF[defenders][i];
- foreach(Player,j)
- {
- if(PlayerInfo[j][pMember] == attackers)
- {
- GangZoneStopFlashForPlayer(j,Turfs[i]);
- }
- if(PlayerInfo[j][pMember] == defenders)
- {
- GangZoneStopFlashForPlayer(j,Turfs[i]);
- }
- }
- if(atscore > defscore)
- {
- winner = 1;
- }
- else
- {
- winner = 2;
- }
- if(atscore == defscore)
- {
- winner = 2;
- }
- if(winner == 1)
- {
- new str[128],stringyy[MAX_STRING];
- format(var100, sizeof(var100),"INSERT INTO `wars` (`Attacker`,`Defender`,`Atscore`,`Defscore`,`Result`) VALUES ('%d','%d','%d','%d','1')",attackers,defenders,atscore,defscore);
- mysql_query(SQL,var100);
- warid = mysql_insert_id();
- TurfInfo[i][zOwned] = WarInfo[i][wAttacker];
- mysql_format(SQL,str,128,"UPDATE `turfs` SET `Owned`='%d' WHERE `ID`='%d'",TurfInfo[i][zOwned],i);
- mysql_tquery(SQL,str,"","");
- format(stringyy, sizeof(stringyy), "NR AdmBot: Gruparea mafiota %s a cucerit teritoriul #%d ce era detinut de mafia %s.",NumeFactiune(WarInfo[i][wAttacker]),i,NumeFactiune(WarInfo[i][wFaction]));
- OOCNews(COLOR_ORANGE,stringyy);
- }
- if(winner == 2)
- {
- new stringyy[MAX_STRING];
- format(var100, sizeof(var100),"INSERT INTO `wars` (`Attacker`,`Defender`,`Atscore`,`Defscore`,`Result`) VALUES ('%d','%d','%d','%d','2')",attackers,defenders,atscore,defscore);
- mysql_query(SQL,var100);
- warid = mysql_insert_id();
- format(stringyy, sizeof(stringyy), "NR AdmBot: Gruparea mafiota %s a aparat teritoriul #%d atacat de mafia %s.",NumeFactiune(WarInfo[i][wFaction]),i,NumeFactiune(WarInfo[i][wAttacker]));
- OOCNews(COLOR_ORANGE,stringyy);
- }
- format(stringg,sizeof(stringg),"------------ [ war overview #%d ] ------------", warid);
- SendFamilyMessage(attackers, COLOR_GREEN, stringg);
- SendFamilyMessage(defenders, COLOR_GREEN, stringg);
- if(winner == 1)
- {
- format(stringg,sizeof(stringg),"Score: %s %d - %d %s.",NumeFactiune(WarInfo[i][wAttacker]),atscore,defscore,NumeFactiune(WarInfo[i][wFaction]));
- SendFamilyMessage(attackers, COLOR_GREEN, stringg);
- SendFamilyMessage(defenders, COLOR_GREEN, stringg);
- }
- if(winner == 2)
- {
- format(stringg,sizeof(stringg),"Score: %s %d - %d %s.",NumeFactiune(WarInfo[i][wFaction]),defscore,atscore,NumeFactiune(WarInfo[i][wAttacker]));
- SendFamilyMessage(attackers, COLOR_GREEN, stringg);
- SendFamilyMessage(defenders, COLOR_GREEN, stringg);
- }
- new id = CalculateBestScore(i),
- id2 = CalculateWorstScore(i),
- bestnamee[30],
- worstnamee[30];
- GetPlayerName(id, bestnamee, sizeof(bestnamee));
- GetPlayerName(id2, worstnamee, sizeof(worstnamee));
- format(stringg,sizeof(stringg),"Best score: %s with a score of %d (%d kills, %d deaths). Worst score: %s with a score of %d (%d kills, %d deaths).", bestnamee, ucideri[id][i]-decese[id][i], ucideri[id][i], decese[id][i], worstnamee, ucideri[id2][i]-decese[id2][i], ucideri[id2][i], decese[id2][i]);
- SendFamilyMessage(attackers, COLOR_GREEN, stringg);
- SendFamilyMessage(defenders, COLOR_GREEN, stringg);
- foreach(Player, j)
- {
- if((PlayerInfo[j][pMember] == attackers) || (PlayerInfo[j][pMember] == defenders))
- {
- format(stringg,sizeof(stringg),"Your personal score: %d (%d kills, %d deaths).",ucideri[j][i]-decese[j][i],ucideri[j][i], decese[j][i]);
- SendClientMessage(j, COLOR_GREEN,stringg);
- PlayerTextDrawHide(j, TimeLeftWar1[j]);
- for (new sss = 0; sss != 5; ++sss) SendDeathMessageToPlayer(j, 1001, 1001, 1001);
- }
- }
- SendFamilyMessage(attackers, COLOR_GREEN,"------------------------------------");
- SendFamilyMessage(defenders, COLOR_GREEN,"------------------------------------");
- WarScoreF[defenders][i] = 0;
- WarScoreF[attackers][i] = 0;
- InWar[attackers] = 0;
- InWar[defenders] = 0;
- waitwar[attackers] = 60;
- waitwar[defenders] = 60;
- foreach(Player, j)
- {
- if((PlayerInfo[j][pMember] == attackers) || (PlayerInfo[j][pMember] == defenders))
- {
- SendClientMessage(j, COLOR_YELLOW, "Ai fost transferat in Virtual World-ul normal (0).");
- if(GetPlayerInterior(j) < 1)
- {
- SetPlayerVirtualWorld(j, 0);
- }
- if(attackers == 4 || defenders == 4)
- {
- for(new veh; veh < sizeof(Aztecasc); veh++)
- {
- SetVehicleVirtualWorld(Aztecasc[veh], 0);
- }
- }
- if(attackers == 5 || defenders == 5)
- {
- for(new veh; veh < sizeof(Grovec); veh++)
- {
- SetVehicleVirtualWorld(Grovec[veh], 0);
- }
- }
- if(attackers == 6 || defenders == 6)
- {
- for(new veh; veh < sizeof(Vagosc); veh++)
- {
- SetVehicleVirtualWorld(Vagosc[veh], 0);
- }
- }
- if(attackers == 10 || defenders == 10)
- {
- for(new veh; veh < sizeof(Ballasc); veh++)
- {
- SetVehicleVirtualWorld(Ballasc[veh], 0);
- }
- }
- if(attackers == 21 || defenders == 21)
- {
- for(new veh; veh < sizeof(Rifac); veh++)
- {
- SetVehicleVirtualWorld(Rifac[veh], 0);
- }
- }
- if(attackers == 22 || defenders == 22)
- {
- for(new veh; veh < sizeof(Russc); veh++)
- {
- SetVehicleVirtualWorld(Russc[veh], 0);
- }
- }
- if(attackers == 23 || defenders == 23)
- {
- for(new veh; veh < sizeof(dragc); veh++)
- {
- SetVehicleVirtualWorld(dragc[veh], 0);
- }
- }
- if(attackers == 24 || defenders == 24)
- {
- for(new veh; veh < sizeof(dragc); veh++)
- {
- SetVehicleVirtualWorld(Italianc[veh], 0);
- }
- }
- if(attackers == 25 || defenders == 25)
- {
- for(new veh; veh < sizeof(sfbikec); veh++)
- {
- SetVehicleVirtualWorld(sfbikec[veh], 0);
- }
- }
- mysql_format(SQL, var100, sizeof(var100),"INSERT INTO `warlogs` (`PlayerID`,`WarID`,`Kills`,`Deaths`,`Faction`) VALUES ('%d','%d','%d','%d','%d')",PlayerInfo[j][pSQLID],warid,ucideri[j][i],decese[j][i],PlayerInfo[j][pMember]);
- mysql_tquery(SQL,var100,"","");
- ucideri[j][i] = 0;
- decese[j][i] = 0;
- }
- }
- if(winner == 1)
- {
- foreach(Player, j)
- {
- if(TurfsDisp[j] == 1)
- {
- GangZoneHideForPlayerEx(j,Turfs[i]);
- if(attackers == 4)
- {
- GangZoneShowForPlayerEx(j,Turfs[i],0xCC000099);
- }
- if(attackers == 5)
- {
- GangZoneShowForPlayerEx(j,Turfs[i],0x40863CAA);
- }
- if(attackers == 6)
- {
- GangZoneShowForPlayerEx(j,Turfs[i],0x2F2F2F99);
- }
- if(attackers == 10)
- {
- GangZoneShowForPlayerEx(j,Turfs[i],0x88572499);
- }
- if(attackers == 21)
- {
- GangZoneShowForPlayerEx(j,Turfs[i],0x6A4444AA);
- }
- if(attackers == 22)
- {
- GangZoneShowForPlayerEx(j,Turfs[i],0x2F2F2FAA);
- }
- if(attackers == 23)
- {
- GangZoneShowForPlayerEx(j,Turfs[i],0x660000AA);
- }
- if(attackers == 24)
- {
- GangZoneShowForPlayerEx(j,Turfs[i],0x24FF0AB9);
- }
- }
- }
- DeelayWar[WarInfo[i][wFaction]] = 600;
- DeelayWar[WarInfo[i][wAttacker]] = 1800;
- }
- if(winner == 2)
- {
- DeelayWar[WarInfo[i][wFaction]] = 600;
- DeelayWar[WarInfo[i][wAttacker]] = 1800;
- }
- WarInfo[i][wTime] = 0;
- WarInfo[i][wFaction] = 0;
- WarInfo[i][wAttacker] = 0;
- worstscoreat[i] = 0;
- worstmemberat[i] = 999;
- bestscoreat[i] = 0;
- bestmemberat[i] = 999;
- worstscoredf[i] = 0;
- worstmemberdf[i] = 999;
- bestscoredf[i] = 0;
- bestmemberdf[i] = 999;
- }
- if(WarInfo[i][wTime] > 2)
- {
- foreach(Player,j)
- {
- if(IsPlayerInTurf(j, i))
- {
- if(IsPlayerInAnyVehicle(j))
- {
- if(PlayerInfo[j][pMember] == attackers || PlayerInfo[j][pMember] == defenders)
- {
- SendClientMessage(j, COLOR_WHITE, "Nu ai voie sa folosesti masini in war area.");
- SetVehicleToRespawn(GetPlayerVehicleID(j));
- SetVehicleVirtualWorld(GetPlayerVehicleID(j), 1024);
- }
- }
- }
- if(PlayerInfo[j][pMember] == attackers || PlayerInfo[j][pMember] == defenders)
- {
- if(WarInfo[i][wAttacker] == 4)
- {
- GangZoneFlashForPlayer(j,Turfs[i], 0xCC000099);
- }
- else if(WarInfo[i][wAttacker] == 5)
- {
- GangZoneFlashForPlayer(j,Turfs[i], 0x66857399);
- }
- else if(WarInfo[i][wAttacker] == 6)
- {
- GangZoneFlashForPlayer(j,Turfs[i], 0x2F2F2F99);
- }
- else if(WarInfo[i][wAttacker] == 10)
- {
- GangZoneFlashForPlayer(j,Turfs[i], 0x88572499);
- }
- else if(WarInfo[i][wAttacker] == 21)
- {
- GangZoneFlashForPlayer(j,Turfs[i], 0x6A4444AA);
- }
- else if(WarInfo[i][wAttacker] == 22)
- {
- GangZoneFlashForPlayer(j,Turfs[i], 0x2F2F2FAA);
- }
- else if(WarInfo[i][wAttacker] == 23)
- {
- GangZoneFlashForPlayer(j,Turfs[i], 0x660000AA);
- }
- else if(WarInfo[i][wAttacker] == 24)
- {
- GangZoneFlashForPlayer(j,Turfs[i], 0x24FF0AB9);
- }
- }
- if(IsPlayerInTurf(j, i))
- {
- if(PlayerInfo[j][pMember] == attackers)
- {
- count++;
- }
- }
- }
- if(count < 1)
- {
- if(waitwar[attackers] > 0)
- {
- waitwar[attackers]--;
- }
- if(waitwar[attackers] == 0)
- {
- waitwar[attackers] = 0;
- new atscore = 0,
- defscore = 0,
- winner;
- atscore = WarScoreF[attackers][i];
- defscore = WarScoreF[defenders][i];
- foreach(Player,j)
- {
- if(PlayerInfo[j][pMember] == attackers)
- {
- GangZoneStopFlashForPlayer(j,Turfs[i]);
- }
- if(PlayerInfo[j][pMember] == defenders)
- {
- GangZoneStopFlashForPlayer(j,Turfs[i]);
- }
- }
- if(atscore > defscore)
- {
- winner = 1;
- }
- else
- {
- winner = 2;
- }
- if(atscore == defscore)
- {
- winner = 2;
- }
- format(var100, sizeof(var100),"INSERT INTO `wars` (`Attacker`,`Defender`,`Atscore`,`Defscore`,`Result`) VALUES ('%d','%d','%d','%d','3')",attackers,defenders,atscore,defscore);
- mysql_query(SQL,var100);
- warid = mysql_insert_id();
- format(stringg,sizeof(stringg),"[WAR] %s failed to win turf %d owned by %s because they left the turf.",NumeFactiune(WarInfo[i][wAttacker]),i,NumeFactiune(WarInfo[i][wFaction]));
- SendFamilyMessage(attackers, COLOR_GREEN, stringg);
- SendFamilyMessage(defenders, COLOR_GREEN, stringg);
- format(stringg,sizeof(stringg),"------------ [ war overview #%d ] ------------", warid);
- SendFamilyMessage(attackers, COLOR_GREEN, stringg);
- SendFamilyMessage(defenders, COLOR_GREEN, stringg);
- if(winner == 1)
- {
- format(stringg,sizeof(stringg),"Score: %s %d - %d %s.",NumeFactiune(WarInfo[i][wAttacker]),atscore,defscore,NumeFactiune(WarInfo[i][wFaction]));
- SendFamilyMessage(attackers, COLOR_GREEN, stringg);
- SendFamilyMessage(defenders, COLOR_GREEN, stringg);
- }
- if(winner == 2)
- {
- format(stringg,sizeof(stringg),"Score: %s %d - %d %s.",NumeFactiune(WarInfo[i][wFaction]),defscore,atscore,NumeFactiune(WarInfo[i][wAttacker]));
- SendFamilyMessage(attackers, COLOR_GREEN, stringg);
- SendFamilyMessage(defenders, COLOR_GREEN, stringg);
- }
- new id = CalculateBestScore(i),
- id2 = CalculateWorstScore(i),
- bestnamee[30],
- worstnamee[30];
- GetPlayerName(id, bestnamee, sizeof(bestnamee));
- GetPlayerName(id2, worstnamee, sizeof(worstnamee));
- format(stringg,sizeof(stringg),"Best score: %s with a score of %d (%d kills, %d deaths). Worst score: %s with a score of %d (%d kills, %d deaths).", bestnamee, ucideri[id][i]-decese[id][i], ucideri[id][i], decese[id][i], worstnamee, ucideri[id2][i]-decese[id2][i], ucideri[id2][i], decese[id2][i]);
- SendFamilyMessage(attackers, COLOR_GREEN, stringg);
- SendFamilyMessage(defenders, COLOR_GREEN, stringg);
- foreach(Player, j)
- {
- if((PlayerInfo[j][pMember] == attackers) || (PlayerInfo[j][pMember] == defenders))
- {
- format(stringg,sizeof(stringg),"Your personal score: %d (%d kills, %d deaths).",ucideri[j][i]-decese[j][i],ucideri[j][i], decese[j][i]);
- SendClientMessage(j, COLOR_GREEN,stringg);
- PlayerTextDrawHide(j, TimeLeftWar1[j]);
- for (new sss = 0; sss != 5; ++sss) SendDeathMessageToPlayer(j, 1001, 1001, 1001);
- }
- }
- SendFamilyMessage(attackers, COLOR_GREEN,"------------------------------------");
- SendFamilyMessage(defenders, COLOR_GREEN,"------------------------------------");
- WarScoreF[defenders][i] = 0;
- WarScoreF[attackers][i] = 0;
- InWar[attackers] = 0;
- InWar[defenders] = 0;
- foreach(Player, j)
- {
- if((PlayerInfo[j][pMember] == attackers) || (PlayerInfo[j][pMember] == defenders))
- {
- SendClientMessage(j, COLOR_YELLOW, "Ai fost transferat in Virtual World-ul normal (0).");
- if(GetPlayerInterior(j) < 1)
- {
- SetPlayerVirtualWorld(j, 0);
- }
- if(attackers == 4 || defenders == 4)
- {
- for(new veh; veh < sizeof(Aztecasc); veh++)
- {
- SetVehicleVirtualWorld(Aztecasc[veh], 0);
- }
- }
- if(attackers == 5 || defenders == 5)
- {
- for(new veh; veh < sizeof(Grovec); veh++)
- {
- SetVehicleVirtualWorld(Grovec[veh], 0);
- }
- }
- if(attackers == 6 || defenders == 6)
- {
- for(new veh; veh < sizeof(Vagosc); veh++)
- {
- SetVehicleVirtualWorld(Vagosc[veh], 0);
- }
- }
- if(attackers == 10 || defenders == 10)
- {
- for(new veh; veh < sizeof(Ballasc); veh++)
- {
- SetVehicleVirtualWorld(Ballasc[veh], 0);
- }
- }
- if(attackers == 21 || defenders == 21)
- {
- for(new veh; veh < sizeof(Rifac); veh++)
- {
- SetVehicleVirtualWorld(Rifac[veh], 0);
- }
- }
- if(attackers == 22 || defenders == 22)
- {
- for(new veh; veh < sizeof(Russc); veh++)
- {
- SetVehicleVirtualWorld(Russc[veh], 0);
- }
- }
- if(attackers == 23 || defenders == 23)
- {
- for(new veh; veh < sizeof(dragc); veh++)
- {
- SetVehicleVirtualWorld(dragc[veh], 0);
- }
- }
- if(attackers == 24 || defenders == 24)
- {
- for(new veh; veh < sizeof(Italianc); veh++)
- {
- SetVehicleVirtualWorld(Italianc[veh], 0);
- }
- }
- if(attackers == 25 || defenders == 25)
- {
- for(new veh; veh < sizeof(sfbikec); veh++)
- {
- SetVehicleVirtualWorld(sfbikec[veh], 0);
- }
- }
- mysql_format(SQL, var100, sizeof(var100),"INSERT INTO `warlogs` (`PlayerID`,`WarID`,`Kills`,`Deaths`,`Faction`) VALUES ('%d','%d','%d','%d','%d')",PlayerInfo[j][pSQLID],warid,ucideri[j][i],decese[j][i],PlayerInfo[j][pMember]);
- mysql_tquery(SQL,var100,"","");
- ucideri[j][i] = 0;
- decese[j][i] = 0;
- }
- }
- DeelayWar[WarInfo[i][wFaction]] = 600;
- DeelayWar[WarInfo[i][wAttacker]] = 1800;
- WarInfo[i][wTime] = 0;
- WarInfo[i][wFaction] = 0;
- WarInfo[i][wAttacker] = 0;
- worstscoreat[i] = 0;
- worstmemberat[i] = 999;
- bestscoreat[i] = 0;
- bestmemberat[i] = 999;
- worstscoredf[i] = 0;
- worstmemberdf[i] = 999;
- bestscoredf[i] = 0;
- bestmemberdf[i] = 999;
- }
- }
- else
- {
- waitwar[attackers] = 60;
- }
- }
- }
- }
- foreach(Player,i)
- {
- if(IsPlayerConnected(i))
- {
- if(gPlayerLogged[i] == 1)
- {
- for(new sf = 0; sf < MAX_SAFEZONES; sf++)
- {
- if(SafeZone[sf][szRange] >= 15)
- {
- if(PlayerToPoint(SafeZone[sf][szRange], i, SafeZone[sf][szX], SafeZone[sf][szY], SafeZone[sf][szZ]))
- {
- if(Showed[i] == 0)
- {
- Showed[i] = 1;
- SFID[i] = sf;
- TextDrawShowForPlayer(i, SafeTD[0]);
- }
- }
- else if(!PlayerToPoint(SafeZone[SFID[i]][szRange], i, SafeZone[SFID[i]][szX], SafeZone[SFID[i]][szY], SafeZone[SFID[i]][szZ]))
- {
- if(Showed[i] == 1)
- {
- Showed[i] = 0;
- SFID[i] = 0;
- TextDrawHideForPlayer(i, SafeTD[0]);
- }
- }
- }
- }
- }
- if(SafeTime[i] > 0)
- {
- SafeTime[i]--;
- }
- if(SafeTime[i] == 1)
- {
- if(gPlayerAccount[i] == 1 && gPlayerLogged[i] == 0)
- {
- ShowPlayerDialog(i,DIALOG_LOGIN2,DIALOG_STYLE_PASSWORD,"SERVER: Login","Welcome to the ExpertGame RPG Server.\n\nPlease enter your password below!","Login","Cancel");
- }
- }
- new newcar = GetPlayerVehicleID(i),
- level = PlayerInfo[i][pLevel];
- if(level >= 0 && level <= 2) { PlayerInfo[i][pPayCheck] += 2; }
- else if(level >= 3 && level <= 4) { PlayerInfo[i][pPayCheck] += 3; }
- else if(level >= 5 && level <= 6) { PlayerInfo[i][pPayCheck] += 4; }
- else if(level >= 7 && level <= 8) { PlayerInfo[i][pPayCheck] += 5; }
- else if(level >= 9 && level <= 10) { PlayerInfo[i][pPayCheck] += 6; }
- else if(level >= 11 && level <= 12) { PlayerInfo[i][pPayCheck] += 7; }
- else if(level >= 13 && level <= 14) { PlayerInfo[i][pPayCheck] += 8; }
- else if(level >= 15 && level <= 16) { PlayerInfo[i][pPayCheck] += 9; }
- else if(level >= 17 && level <= 18) { PlayerInfo[i][pPayCheck] += 10; }
- else if(level >= 19 && level <= 20) { PlayerInfo[i][pPayCheck] += 11; }
- else if(level >= 21) { PlayerInfo[i][pPayCheck] += 12; }
- if(PlayerInfo[i][pJailed] > 0)
- {
- if(PlayerInfo[i][pJailTime] > 0)
- {
- if(gPlayerLogged[i] == 1)
- {
- PlayerInfo[i][pJailTime]--;
- PlayerTextDrawShow(i, Jailtime[i]);
- new string3[60];
- format(string3,sizeof(string3),"ELIBERAT IN: ~r~%d MINUTE", PlayerInfo[i][pJailTime]/60+1);
- PlayerTextDrawSetString(i, Jailtime[i], string3);
- }
- }
- if(PlayerInfo[i][pJailTime] <= 0)
- {
- PlayerInfo[i][pJailTime] = 0;
- if(PlayerInfo[i][pJailed] == 1)
- {
- SetPlayerInterior(i, 6);
- SetPlayerPosEx(i, 258.3347,82.5203,1002.4453);
- }
- if(PlayerInfo[i][pJailed] == 2)
- {
- SetPlayerInterior(i, 6);
- SetPlayerVirtualWorld(i, 0);
- SetPlayerPosEx(i, 258.3347,82.5203,1002.4453);
- }
- PlayerInfo[i][pJailed] = 0;
- SendClientMessage(i, COLOR_WHITE, "Your time is up! You have been relased from jail/prison.");
- SetPlayerSpecialAction(i,SPECIAL_ACTION_NONE);
- RemovePlayerAttachedObject(i,1);
- PlayerTextDrawHide(i, Jailtime[i]);
- SetPlayerSkin(i, PlayerInfo[i][pModel]);
- ClearCrime(i);
- SetPlayerToTeamColor(i);
- TogglePlayerControllable(i, 1);
- }
- }
- if(RobTime[i] >= 0)
- {
- RobTime[i]++;
- }
- if(QuestWait[i] > 0)
- {
- QuestWait[i]--;
- }
- if(PlayerInfo[i][pNextNotification] > 0)
- {
- PlayerInfo[i][pNextNotification]--;
- }
- if(instatime[i] > 0)
- {
- instatime[i]--;
- if(instatime[i] == 0)
- {
- SendClientMessage(i, COLOR_GREY, "Job reload time ended.");
- instatime[i] = 0;
- }
- }
- if(pizzatime[i] > 0)
- {
- pizzatime[i]--;
- if(pizzatime[i] == 0)
- {
- SendClientMessage(i, COLOR_GREY, "Job reload time ended.");
- pizzatime[i] = 0;
- }
- }
- if(fixtime[i] > 0)
- {
- fixtime[i]--;
- if(fixtime[i] == 0)
- {
- SendClientMessage(i, COLOR_GREY, "Your time when you can't use /fix has elapsed.");
- fixtime[i] = 0;
- }
- }
- if(fliptime[i] > 0)
- {
- fliptime[i]--;
- if(fliptime[i] == 0)
- {
- SendClientMessage(i, COLOR_GREY, "Your time when you can't use /fix has elapsed.");
- fliptime[i] = 0;
- }
- }
- if(failpizza[i] > 0)
- {
- failpizza[i]--;
- if(failpizza[i] == 0)
- {
- DisablePlayerRaceCheckpoint(i);
- pizzaj[i] = 0;
- pizzatime[i] = 0;
- failpizza[i] = -1;
- PizzaCP[i] = 0;
- pizzaprize[i] = 0;
- }
- }
- if(timerrent[i] > 0)
- {
- timerrent[i]--;
- if(timerrent[i] == 0)
- {
- new engine,lights,alarm,doors,bonnet,boot,objective;
- gCarLock[HireCar[i]] = 0;
- GetVehicleParamsEx(HireCar[i],engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(HireCar[i],engine,lights,alarm,0,bonnet,boot,objective);
- vehEngine[HireCar[i]] = 0;
- GetVehicleParamsEx(HireCar[i],engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(HireCar[i],VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
- HireCar[i] = -1;
- GameTextForPlayer(i, "~w~You no longer rent a car.", 5000, 3);
- SetVehicleToRespawn(HireCar[i]);
- timerrent[i] = 0;
- }
- }
- if(PlayerInfo[i][pSleeping] == 1)
- {
- SetPlayerHealthEx(i, 100);
- }
- if(JackAcc[i] > 0)
- {
- JackAcc[i]--;
- if(JackAcc[i] == 0) SCM(i,COLOR_WHITE,"You can now drop vehicles again at the crane.");
- }
- if(PlayerInfo[i][pAdmin] >= 1)
- {
- new reports=0,cheaters=0,strr[128];
- foreach(Player,id)
- {
- if(strcmp(reporttext[id], "NULL", true))
- {
- reports++;
- }
- if(reportcheater[id] != -1)
- {
- cheaters++;
- }
- }
- if(reports > 0)
- {
- PlayerTextDrawShow(i, Reportss[i]);
- format(strr,sizeof(strr),"REPORTS: ~r~%d~w~ / CHEATERS: ~r~%d",reports,cheaters);
- PlayerTextDrawSetString(i, Reportss[i], strr);
- }
- else if(reports == 0)
- {
- PlayerTextDrawHide(i, Reportss[i]);
- }
- }
- else
- {
- PlayerTextDrawHide(i, Reportss[i]);
- }
- if(GetPlayerState(i) == PLAYER_STATE_DRIVER && Speedlimit[i])
- {
- new a, b, c;
- GetPlayerKeys(i, a, b ,c);
- if(a == 8 && GetVehicleSpeed(GetPlayerVehicleID(i), 0) > Speedlimit[i])
- {
- new newspeed = GetVehicleSpeed(GetPlayerVehicleID(i), 0) - Speedlimit[i];
- ModifyVehicleSpeed(GetPlayerVehicleID(i), -newspeed);
- }
- }
- if(CellTime[i] > 0)
- {
- CellTime[i] = CellTime[i] +1;
- if(PlayerInfo[i][pCredits] > 0)
- {
- CallCost[i] = CallCost[i] +1;
- }
- else
- {
- new caller = Mobile[i];
- CellTime[i] = 0;
- CellTime[caller] = 0;
- CellTime[i] = 0;
- SendClientMessage(i,COLOR_WHITE,"{B8FFDB}You hung up because you don't have enough credits.");
- Mobile[caller] = -1;
- }
- }
- if(CellTime[i] == 0 && CallCost[i] > 0)
- {
- format(string, sizeof(string), "~w~The call cost~n~~r~~h~%d credits",CallCost[i]);
- PlayerInfo[i][pCredits] = PlayerInfo[i][pCredits] - CallCost[i];
- GameTextForPlayer(i, string, 5000, 1);
- Update(i, pCreditsx);
- CallCost[i] = 0;
- }
- if(PlayerInfo[i][pNewbieTimeout] > 0)
- {
- PlayerInfo[i][pNewbieTimeout]--;
- if(PlayerInfo[i][pNewbieTimeout] == 0)
- {
- PlayerInfo[i][pNMessage2] = 0;
- PlayerInfo[i][pNMessage] = 0;
- PlayerInfo[i][pNMessage] = 1;
- PlayerInfo[i][pFirstAnswer] = 0;
- SendClientMessage(i, COLOR_WHITE, "You may now speak in the newbie chat channel again.");
- }
- }
- if(PlayerInfo[i][pNMuted] > 0)
- {
- PlayerInfo[i][pNMuted]--;
- Update(i,pNMutedx);
- if(PlayerInfo[i][pNMuted] == 0) SendClientMessage(i, COLOR_WHITE, "You may now speak in the newbie chat channel again.");
- }
- if(TransportTime[i] > 0)
- {
- if(TransportTime[i] >= 16)
- {
- TransportTime[i] = 1;
- if(TransportDriver[i] < 999)
- {
- if(IsPlayerConnected(TransportDriver[i]))
- {
- TransportCost[i] += TransportValue[TransportDriver[i]];
- TransportCost[TransportDriver[i]] = TransportCost[i];
- }
- }
- }
- TransportTime[i] += 1;
- format(string, sizeof(string), "~r~~h~%d ~w~: ~g~$%d",TransportTime[i],TransportCost[i]);
- GameTextForPlayer(i, string, 15000, 6);
- }
- new idcar = GetPlayerVehicleID(i);
- if(GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsAPlane(idcar))
- {
- new speed = Carspeed(i),
- antispeed[300],
- sendername[25];
- GetPlayerName(i,sendername,sizeof(sendername));
- if(speed > 222)
- {
- format(antispeed, sizeof(antispeed), "(N) %s (%d, level %d) may be using speed hack, vehicle: %s, speed: %.0d.",sendername,i,PlayerInfo[i][pLevel],aVehicleNames[GetVehicleModel(GetPlayerVehicleID(i))-400],speed);
- ABroadCast(COLOR_RED,antispeed,1);
- }
- }
- if(PlayerInfo[i][pWantedLevel] > 0)
- {
- wantedlost[i]--;
- if(wantedlost[i] <= 0)
- {
- PlayerInfo[i][pWantedLevel] -= 1;
- DestroyDynamic3DTextLabel(WantedScris[i]);
- if(GetPlayerWantedLevel(i) > 0)
- {
- Tigaanel[i] = 1;
- new str2[256];
- format(str2,sizeof(str2),"{FF00FF}Wanted Level: %d",PlayerInfo[i][pWantedLevel]);
- UpdateDynamic3DTextLabelText(WantedScris[i], COLOR_WHITE, str2);
- }
- new name[25];
- GetPlayerName(i,name,sizeof(name));
- SCM(i,COLOR_LIGHTBLUE,"You lost one wanted points because you ran 30 minutes by police.");
- Update(i,pWantedLevelx);
- format(string,sizeof(string),"%s(%d) lost one wanted points because it ran 30 minutes by police.",name,i);
- SendTeamMessage(3, COLOR_DBLUE, string);
- SendTeamMessage(2, COLOR_DBLUE, string);
- SendTeamMessage(1, COLOR_DBLUE, string);
- SendTeamMessage(8, COLOR_DBLUE, string);
- SendTeamMessage(20, COLOR_DBLUE, string);
- wantedlost[i] = 600;
- if(PlayerInfo[i][pWantedLevel] <= 0)
- {
- ClearCrime(i);
- }
- }
- }
- if(PlayerInfo[i][pHitT] > 0)
- {
- PlayerInfo[i][pHitT] -= 1;
- }
- if(RepairTime[i] > 0)
- {
- RepairTime[i] = RepairTime[i] - 1;
- }
- if(PlayerInfo[i][pMuted] > 0)
- {
- if(PlayerInfo[i][pMuteTime] > 0)
- {
- PlayerInfo[i][pMuteTime]--;
- }
- if(PlayerInfo[i][pMuteTime] <= 0)
- {
- PlayerInfo[i][pMuteTime] = 0;
- SendClientMessage(i, COLOR_LIGHTRED, "* Your time of silence has ended.");
- PlayerInfo[i][pMuted] = 0;
- }
- }
- if(targetfind[i] >= 0 && UsedFind[i] == 1)
- {
- new target;
- target = targetfind[i];
- if(InBussines[target] > -1)
- {
- new j;
- j = InBussines[target];
- SetPlayerCheckpoint(i,BizzInfo[j][bEntranceX], BizzInfo[j][bEntranceY], BizzInfo[j][bEntranceZ],4);
- }
- else if(InHouse[target] > -1)
- {
- new j;
- j = InHouse[target];
- SetPlayerCheckpoint(i,HouseInfo[j][hEntrancex],HouseInfo[j][hEntrancey],HouseInfo[j][hEntrancez],4);
- }
- else if(InHQ[target] > -1)
- {
- SetPlayerCheckpoint(i,xhq[InHQ[target]],yhq[InHQ[target]],zhq[InHQ[target]],4);
- }
- else
- {
- new Float: x, Float: y, Float: z;
- GetPlayerPos(target,x,y,z);
- SetPlayerCheckpoint(i,x,y,z,4);
- }
- }
- if(IsABoat(newcar))
- {
- if(PlayerInfo[i][pBoatLic] < 1 && GetPlayerState(i) == 2 && TakingLesson[i] != 2)
- {
- RemovePlayerFromVehicleEx(i);
- }
- }
- else if(IsAPlane(newcar))
- {
- if(PlayerInfo[i][pFlyLic] < 1 && GetPlayerState(i) == 2)
- {
- if(TakingLesson[i] == 1 || TakingLesson[i] == 2) { }
- else { RemovePlayerFromVehicleEx(i); }
- }
- }
- else
- {
- if(PlayerInfo[i][pCarLic] < 1 && IsPlayerInAnyVehicle(i) && GetPlayerState(i) == 2)
- {
- if(TakingLesson[i] == 1) { }
- }
- }//Done with car check
- if(TutTime[i] >= 1)
- {
- TutTime[i] += 1;
- if(TutTime[i] == 3)
- {
- PlayerTextDrawShow(i, Step[i][1]);
- PlayerTextDrawShow(i, Tutorial[i]);
- mysql_query(SQL, "SELECT * FROM users");
- mysql_store_result();
- new registered = mysql_num_rows();
- mysql_free_result();
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SetPlayerVirtualWorld(i, 0);
- if(PlayerInfo[i][pLanguage] == 2)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(i, name, sizeof name);
- SetPlayerPosEx(i, 366.0407,-1892.6018,1.6999);
- SetPlayerCameraPos(i, 558.3660,-1964.6206,85.2497);
- SetPlayerCameraLookAt(i, 419.0543,-1888.1879,23.8108);
- TogglePlayerControllable(i,0);
- format(string, sizeof(string), "Salutare, %s! Bun venit pe RPG.EXPERTGAME.RO!", name);
- SendClientMessage(i, COLOR_WHITE, string);
- SendClientMessage(i, COLOR_WHITE, "Serverul RPG.EXPERTGAME.RO a fost deschis pe 23 Iunie 2016.");
- format(string, sizeof(string), "Avem %d playeri inregistrati, iar acum sunt %d playeri online.",registered,GetOnLinePlayers());
- SendClientMessage(i, COLOR_WHITE, string);
- SendClientMessage(i, COLOR_WHITE, "Sunt 100 case si 53 business-uri pe server, iar in dealership sunt disponibile 101 modele diferite de masini.");
- SendClientMessage(i, COLOR_WHITE, "Daca joci pe RPG.EXPERTGAME.RO, ai siguranta ca nu vor fi resetate niciodata datele(wipe) niciodata asa cum se intampla pe alte servere.");
- SendClientMessage(i, COLOR_WHITE, "Se fac updateuri frecvente la server, iar bugurile aparute sunt reparate rapid.");
- SendClientMessage(i, COLOR_WHITE, "Adminii si helperii sunt bine alesi si te pot ajuta cu orice problema.");
- SendClientMessage(i, COLOR_WHITE, "Intrebarile despre server le poti pune pe /n, iar daca ai o problema poti folosi /report.");
- SendClientMessage(i, COLOR_WHITE, "In continuare iti vom prezenta cateva informatii despre joc.");
- }
- else
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(i, name, sizeof name);
- format(string, sizeof(string), "Hi, %s! Welcome to RPG.EXPERTGAME.RO!", name);
- SendClientMessage(i, COLOR_WHITE, string);
- SendClientMessage(i, COLOR_WHITE, "Our server, RPG.EXPERTGAME.RO, has opened on March 18th, 2016.");
- format(string, sizeof(string), "We have %d players registered and now there are %d players online.",registered,GetOnLinePlayers());
- SendClientMessage(i, COLOR_WHITE, string);
- SendClientMessage(i, COLOR_WHITE, "There are 100 houses and 53 businesses on our server and there are 101 different car models that you can buy from our dealership.");
- SendClientMessage(i, COLOR_WHITE, "If you play on RPG.EXPERTGAME.RO, you'll never have to worry about server wipes.");
- SendClientMessage(i, COLOR_WHITE, "Our server is frequently updated and the bugs are fixed quickly.");
- SendClientMessage(i, COLOR_WHITE, "The admins and helpers can help you with any problem you may have.");
- SendClientMessage(i, COLOR_WHITE, "If you have any questions, use /n. If you have any problems, use /report.");
- }
- }
- else if(TutTime[i] == 15)
- {
- PlayerTextDrawHide(i, Step[i][1]);
- PlayerTextDrawShow(i, Step[i][2]);
- SetPlayerPosEx(i, 1857.4175,-1847.2292,13.5815);
- SetPlayerCameraPos(i, 1794.2242,-1819.9382,38.3741);
- SetPlayerCameraLookAt(i, 1830.4750,-1840.9551,15.9818);
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- if(PlayerInfo[i][pLanguage] == 2)
- {
- SendClientMessage(i, COLOR_WHITE, "Acesta este un magazin 24/7, magazin de unde poti cumpara mai multe lucruri utile:");
- SendClientMessage(i, COLOR_WHITE, "- telefon - dupa ce cumperi un telefon, vei putea suna un player sau ii poti da sms.");
- SendClientMessage(i, COLOR_WHITE, "- agenda telefonica - vei putea afla numerele de telefon ale altor playeri folosind comanda /number.");
- SendClientMessage(i, COLOR_WHITE, "- credit pentru telefon - pe serverul nostru telefoanele folosesc credit pentru apeluri si sms-uri.");
- SendClientMessage(i, COLOR_WHITE, "- walkie-talkie - walkie-talkie poate fi folosit pentru a discuta cu un grup de prieteni.");
- SendClientMessage(i, COLOR_WHITE, "Te lasam pe tine sa descoperi ce altceva poti cumpara din magazine.");
- }
- else
- {
- SendClientMessage(i, COLOR_WHITE, "This is a 24/7 store. You can buy the following products from here:");
- SendClientMessage(i, COLOR_WHITE, "- phone - you can use the phone to make calls(/call) and send texts(/sms).");
- SendClientMessage(i, COLOR_WHITE, "- phonebook - you'll be able to find the phone number another player using /number.");
- SendClientMessage(i, COLOR_WHITE, "- prepay credit - on this server the phones use prepay credit. when it runs out, buy some more.");
- SendClientMessage(i, COLOR_WHITE, "- walkie-talkie - this can be used to talk with a group of friends.");
- SendClientMessage(i, COLOR_WHITE, "We'll let you discover what else can be bought from the stores.");
- }
- }
- else if(TutTime[i] == 27)
- {
- PlayerTextDrawHide(i, Step[i][2]);
- PlayerTextDrawShow(i, Step[i][3]);
- SetPlayerPosEx(i, 1223.5475,-1881.3280,30.6971);
- SetPlayerCameraPos(i, 1199.0161,-1862.7023,46.3864);
- SetPlayerCameraLookAt(i, 1220.9999,-1838.0793,29.3740);
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- if(PlayerInfo[i][pLanguage] == 2)
- {
- SendClientMessage(i, COLOR_WHITE, "Aici poti da examen pentru a obtine permisul de conducere.");
- SendClientMessage(i, COLOR_WHITE, "Nu stii cum sa ajungi aici? Nicio problema. Poti folosi comanda /gps si vei putea alege 'Los Santos DMV' din lista.");
- SendClientMessage(i, COLOR_WHITE, "Comanda /gps poate fi folosita si pentru a afla unde sunt alte locatii importante de pe server.");
- SendClientMessage(i, COLOR_WHITE, "Dupa ce vei lua examenul vei primi permisul de conducere, vei putea conduce masini, dar nu avioane sau barci.");
- SendClientMessage(i, COLOR_WHITE, "Cand vei face level 3 vei putea cumpara si licenta pentru a putea conduce un avion, o barca sau pentru a cumpara arme.");
- SendClientMessage(i, COLOR_WHITE, "Licentele vor expira dupa 100 ore de joc si va trebui sa dai examenele din nou pentru a le obtine.");
- }
- else
- {
- SendClientMessage(i, COLOR_WHITE, "Here is the place where you can get your driver's licence.");
- SendClientMessage(i, COLOR_WHITE, "If you don't know to get here, you can use /gps and choose 'Los Santos DMV' from the list.");
- SendClientMessage(i, COLOR_WHITE, "You can also use /gps to find out where other important locations are.Or you could call a cab using /service taxi.");
- SendClientMessage(i, COLOR_WHITE, "Once you'll get your driver's license, you'll able to drive cars, but not planes or boats.");
- SendClientMessage(i, COLOR_WHITE, "To be able to drive planes and boats, you'll need to contact an instructor once you reach level 3.");
- SendClientMessage(i, COLOR_WHITE, "The licenses expires after 100 hours spent in game.");
- }
- }
- else if(TutTime[i] == 39)
- {
- PlayerTextDrawHide(i, Step[i][3]);
- PlayerTextDrawShow(i, Step[i][4]);
- SetPlayerPosEx(i, 414.1995,-1512.3070,31.5960);
- SetPlayerCameraPos(i, 428.3816,-1493.0682,69.4719);
- SetPlayerCameraLookAt(i, 338.5612,-1515.7255,45.6690);
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- if(PlayerInfo[i][pLanguage] == 2)
- {
- SendClientMessage(i, COLOR_WHITE, "Aici este Dealership-ul, adica locul de unde poti cumpara masini.");
- SendClientMessage(i, COLOR_WHITE, "Pentru a cumpara o masina personala ai nevoie de level 3 si de bani suficienti.");
- SendClientMessage(i, COLOR_WHITE, "Cea mai ieftina masina este Bike $250,000, iar cea mai scumpa este Infernus si are pretul de $45,000,000.");
- SendClientMessage(i, COLOR_WHITE, "Sunt disponibile 101 modele diferite de masini in dealership.");
- SendClientMessage(i, COLOR_WHITE, "Dupa ce vei cumpara o masina personala vei putea incuia usile, o vei putea parca unde vrei si o vei putea localiza.");
- SendClientMessage(i, COLOR_WHITE, "Vei putea deasemenea sa vinzi masina sau sa faci schimb de masini cu un alt player.");
- SendClientMessage(i, COLOR_WHITE, "Poti detine maxim 2 masini personale sau 4 daca ai cont premium, iar toate masinile vor ramane spawnate.");
- SendClientMessage(i, COLOR_WHITE, "Pana ajungi la level 3 poti munci la unul in joburile disponibile.");
- }
- else
- {
- SendClientMessage(i, COLOR_WHITE, "That is the dealership, the place where players can buy personal vehicles.");
- SendClientMessage(i, COLOR_WHITE, "To buy your own vehicle you need level 3 and enough money.");
- SendClientMessage(i, COLOR_WHITE, "The cheapest car is Bike with price of $250,000 and the most expensive is Infernus and it costs $45,000,000.");
- SendClientMessage(i, COLOR_WHITE, "There are 101 different car models available in our vehicle dealership.");
- SendClientMessage(i, COLOR_WHITE, "Once you'll get your own car, you'll able to lock the doors of your car and you'll be able to park it wherever you want.");
- SendClientMessage(i, COLOR_WHITE, "You can have 2 personal vehicles or 4 if you have a premium account.");
- SendClientMessage(i, COLOR_WHITE, "Untill you reach level 3, you can use one of the 10+ jobs available.");
- }
- }
- else if(TutTime[i] == 51)
- {
- PlayerTextDrawHide(i, Step[i][4]);
- PlayerTextDrawShow(i, Step[i][5]);
- SetPlayerPosEx(i, -35.6509,-1152.9932,1.1770);
- SetPlayerCameraPos(i, -74.3290,-1074.9336,18.7807);
- SetPlayerCameraLookAt(i, -65.9360,-1128.8743,1.0781);
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- if(PlayerInfo[i][pLanguage] == 2)
- {
- SendClientMessage(i, COLOR_WHITE, "Trucker (sofer de tir) este unul din cele 10 job-uri disponibile pe serverul nostru.");
- SendClientMessage(i, COLOR_WHITE, "La acest job trebuie sa livrezi marfa dintr-un oras in altul.");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "Pentru a vedea o lista cu joburile de pe server, foloseste comanda /jobs.");
- SendClientMessage(i, COLOR_WHITE, "La toate joburile se castiga la fel de multi bani, cu exceptia jobului de detectiv unde nu se castiga bani.");
- SendClientMessage(i, COLOR_WHITE, "Poti testa toate joburile pentru a testa care iti place mai mult.");
- SendClientMessage(i, COLOR_WHITE, "Daca te plictisesti de un job, vei putea folosi comanda /quitjob pentru a renunta la el oricand.");
- }
- else
- {
- SendClientMessage(i, COLOR_WHITE, "Trucker is one of the 10+ jobs available on our server.");
- SendClientMessage(i, COLOR_WHITE, "This job requires you to deliver stuff from one city to another.");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "To see list of all available jobs, you can use the command /jobs.");
- SendClientMessage(i, COLOR_WHITE, "One most jobs you'll earn the same ammount of money.");
- SendClientMessage(i, COLOR_WHITE, "You can test all jobs to find out which one you like better.");
- SendClientMessage(i, COLOR_WHITE, "If you get bored, you can use /quitjob and take another job.");
- }
- }
- else if(TutTime[i] == 63)
- {
- PlayerTextDrawHide(i, Step[i][5]);
- PlayerTextDrawShow(i, Step[i][6]);
- SetPlayerPosEx(i, 1504.0387,-1664.6865,14.0031);
- SetPlayerCameraPos(i, 1506.8416,-1697.2029,38.8016);
- SetPlayerCameraLookAt(i, 1533.4709,-1680.9561,29.7199);
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- if(PlayerInfo[i][pLanguage] == 2)
- {
- SendClientMessage(i, COLOR_WHITE, "Politistii sunt impartiti in 4 factiuni: Los Santos Police Department, Las Venturas Police Department, FBI si National Guard.");
- SendClientMessage(i, COLOR_WHITE, "Vei putea aplica la una din cele 4 factiuni de politisti incepand cu level 7.");
- SendClientMessage(i, COLOR_WHITE, "Pana ajungi la level 7, vei putea aplica la factiunile Taxi, Paramedic, News Reporters, School Instructors incepand cu level 5.");
- SendClientMessage(i, COLOR_WHITE, "La factiunea Hitman Agency sau la una din cele 4 mafii, vei putea aplica incepand cu level 6.");
- SendClientMessage(i, COLOR_WHITE, "Aplicatiile se fac pe forum (www.ExpertGame.ro).");
- SendClientMessage(i, COLOR_WHITE, "Cei care fac parte din factiuni primesc salarii saptamanale de la liderul factiunii.");
- }
- else
- {
- SendClientMessage(i, COLOR_WHITE, "Cops are divided in 4 factions: Los Santos Police Department, Las Venturas Police Department, FBI and National Guard.");
- SendClientMessage(i, COLOR_WHITE, "You'll be able to apply to on of the cops factions once you get level 7.");
- SendClientMessage(i, COLOR_WHITE, "You can apply to the factions Taxi, Paramedic, News Reporters and School Instructors once you get level 5.");
- SendClientMessage(i, COLOR_WHITE, "You'll need level 6 to become a Hitman or a gang member.");
- SendClientMessage(i, COLOR_WHITE, "You can apply to join a faction on our forum (www.ExpertGame.ro).");
- }
- }
- else if(TutTime[i] == 75)
- {
- PlayerTextDrawHide(i, Step[i][6]);
- PlayerTextDrawShow(i, Step[i][7]);
- SetPlayerPosEx(i, 1463.5978,-1050.0614,24.0156);
- SetPlayerCameraPos(i, 1484.4119,-1049.7178,39.7065);
- SetPlayerCameraLookAt(i, 1465.3987,-1025.0939,29.2015);
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- if(PlayerInfo[i][pLanguage] == 2)
- {
- SendClientMessage(i, COLOR_WHITE, "Aceasta este banca din orasul Los Santos. Mai exista o banca si in orasul Las Venturas.");
- SendClientMessage(i, COLOR_WHITE, "Banca poate fi folosita pentru a depune si retrage bani sau pentru a transfera bani unui alt player.");
- SendClientMessage(i, COLOR_WHITE, "Pentru banii depusi in banca vei primi dobanda odata pe ora.");
- SendClientMessage(i, COLOR_WHITE, "Banii primiti din payday ajung in contul bancar si va trebui sa mergeti la banca pentru a-i retrage.");
- SendClientMessage(i, COLOR_WHITE, "Te sfatuim sa nu imprumuti bani altor playeri deoarece nu au nicio garantie ca iti vor fi inapoiati.");
- SendClientMessage(i, COLOR_WHITE, "De asemenea, afacerile cu bani reali sau bunuri ce nu tin de joc(conturi steam, conturi pe alte server) sunt interzise.");
- SendClientMessage(i, COLOR_WHITE, "Daca cineva iti propune sa cumperi o masina in joc pentru bani reali, te sfatuim sa-l raportezi folosind comanda /report.");
- SendClientMessage(i, COLOR_WHITE, "Playerii ce promit ca iti vor vinde bunuri in joc pentru bani reali nu iti vor da bunurile promise.");
- }
- else
- {
- SendClientMessage(i, COLOR_WHITE, "This is the Los Santos Bank. There is also a bank in Las Venturas.");
- SendClientMessage(i, COLOR_WHITE, "The bank can be used to deposit and withdraw money from your bank account or transfer money to another player.");
- SendClientMessage(i, COLOR_WHITE, "You'll get interest from the bank for the money you have deposited in your bank account.");
- SendClientMessage(i, COLOR_WHITE, "Don't loan money for other players. You'll have no guaratees that you'll get them back.");
- SendClientMessage(i, COLOR_WHITE, "Also, buying in game goods(money, cars, houses) with real life money from other players is forbidden.");
- SendClientMessage(i, COLOR_WHITE, "Most People that offering in game goods for real money are scammers.");
- SendClientMessage(i, COLOR_WHITE, "You can get some stuff by donating(ExpertGame.ro/premium). The money from donations are used to support the server.");
- }
- }
- else if(TutTime[i] == 87)
- {
- PlayerTextDrawHide(i, Step[i][7]);
- PlayerTextDrawShow(i, Step[i][8]);
- SetPlayerPosEx(i, 1093.7021,-1485.0731,15.7074);
- SetPlayerCameraPos(i, 1065.9988,-1418.0643,56.6048);
- SetPlayerCameraLookAt(i, 1127.9037,-1486.0226,22.7690);
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- if(PlayerInfo[i][pLanguage] == 2)
- {
- SendClientMessage(i, COLOR_WHITE, "Aici este CNN Los Santos, adica locul unde poti plasa anunturi pe server.");
- SendClientMessage(i, COLOR_WHITE, "Anunturile sunt vazute de toti playerii de pe server si sunt folosite pentru a vinde/cumpara/schimba bunuri pe server.");
- SendClientMessage(i, COLOR_WHITE, "Anunturile se folosesc doar pentru vanzari, cumparari si schimburi de bunuri.");
- SendClientMessage(i, COLOR_WHITE, "Vei putea scrie un anunt incepand cu level 5.");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "Si pe forumul nostru www.ExpertGame.ro exista o sectiune de vanzari unde playerii pot posta anunturi.");
- }
- else
- {
- SendClientMessage(i, COLOR_WHITE, "This is CNN Los Santos, the place where players can place ads to buy, sell or trade stuff.");
- SendClientMessage(i, COLOR_WHITE, "This ads are seen by all players on the server. You'll be able to place an /ad once you reach level 5.");
- SendClientMessage(i, COLOR_WHITE, "Players can also use our forum (www.ExpertGame.ro) to advertise for stuff.");
- }
- }
- else if(TutTime[i] == 99)
- {
- PlayerTextDrawHide(i, Step[i][8]);
- PlayerTextDrawHide(i, Tutorial[i]);
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "");
- if(PlayerInfo[i][pLanguage] == 2)
- {
- SendClientMessage(i, COLOR_YELLOW, "Ai ajuns la sfarsitul tutorialului. Daca ai fost atent, ar trebui sa stii cateva lucruri despre joc.");
- SendClientMessage(i, COLOR_YELLOW, "Daca ai vreo intrebare legata de joc, foloseste /n si helperii vor incerca sa te ajute.");
- SendClientMessage(i, COLOR_YELLOW, "Poti folosi si /help pentru comenzi de baza.");
- SendClientMessage(i, COLOR_YELLOW, "Distractie placuta!");
- SendClientMessage(i, COLOR_YELLOW, "");
- }
- else
- {
- SendClientMessage(i, COLOR_YELLOW, "We reached the end of the tutorial. We hope you learned something about the game.");
- SendClientMessage(i, COLOR_YELLOW, "If you have any game-questions, you can use /n and our helpers will try to help you.");
- SendClientMessage(i, COLOR_YELLOW, "You cand also use /help for basic commands.");
- SendClientMessage(i, COLOR_YELLOW, "Have fun!");
- SendClientMessage(i, COLOR_YELLOW, "");
- }
- CP[i] = 43;
- SetPlayerCheckpoint(i, 1219.0502,-1812.7823,16.5938, 4.0);
- StopAudioStreamForPlayer(i);
- }
- else if(TutTime[i] == 101)
- {
- TutTime[i] = 0; PlayerInfo[i][pTut] = 1;
- gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0;
- TogglePlayerControllable(i, 1);
- SetCameraBehindPlayer(i);
- TogglePlayerSpectating(i, 0);
- SetPlayerSpawn(i);
- PlayerInfo[i][pPremiumPoints] = 20;
- Update(i, pPremiumPointsx);
- PlayerInfo[i][pAccount] = 10000;
- ResetPlayerCash(i);
- GivePlayerCash(i,10000000);
- Update(i, pCashx);
- PlayerInfo[i][pLevel] = 3;
- Update(i, pLevelx);
- SetPlayerInterior(i,0);
- SetPlayerScore(i, PlayerInfo[i][pLevel]);
- SetPlayerVirtualWorld(i,0);
- TogglePlayerControllable(i,true);
- new str1[256];
- mysql_format(SQL,str1,256,"UPDATE users SET `Tutorial`='1',`Bank`='10000',`Money`='10000000' WHERE `name`='%s'",PlayerInfo[i][pNormalName]);
- mysql_tquery(SQL,str1,"","");
- }
- }
- if(PlayerTazeTime[i] >= 1)
- {
- PlayerTazeTime[i] += 1;
- if(PlayerTazeTime[i] == 15)
- {
- PlayerTazeTime[i] = 0;
- }
- else
- {
- new Float:angle;
- GetPlayerFacingAngle(i, angle);
- SetPlayerFacingAngle(i, angle + 90);
- }
- }
- if(PlayerDrunk[i] >= 5)
- {
- PlayerDrunkTime[i] += 1;
- if(PlayerDrunkTime[i] == 8)
- {
- PlayerDrunkTime[i] = 0;
- new Float:angle;
- GetPlayerFacingAngle(i, angle);
- if(IsPlayerInAnyVehicle(i))
- {
- if(GetPlayerState(i) == 2)
- {
- SetVehicleZAngle(GetPlayerVehicleID(i), angle + 15);
- SetPlayerDrunkLevel (i, 5000);
- }
- }
- else
- {
- LoopingAnim(i,"PED","WALK_DRUNK",4.0,1,1,1,1,0);
- SetPlayerDrunkLevel (i, 5000);
- }
- }
- }
- if(GarbageEndTime[i] >= 1)//garbagejob
- {
- GarbageEndTime[i] += 1;
- if(GarbageEndTime[i] == 5)
- {
- SendClientMessage(i, COLOR_WHITE, "{3385FF}Garbage Collected");
- SendClientMessage(i, COLOR_LIGHTBLUE, "Return to the depot for your Pay Check.");
- GarbageEndTime[i] = 0;
- TogglePlayerControllable(i, 1);
- }
- }
- if(GarbageTime[i] >= 1)//garbagejob
- {
- GarbageTime[i] += 1;
- if(GarbageTime[i] == 5)
- {
- SendClientMessage(i, COLOR_WHITE, "{3385FF}Garbage Collected");
- GarbageTime[i] = 0;
- TogglePlayerControllable(i, 1);
- }
- }
- if(BinTime[i] >= 1)//garbagejob
- {
- BinTime[i] += 1;
- if(BinTime[i] == 5)
- {
- SendClientMessage(i, COLOR_WHITE, "{3385FF}The bin has been emptied");
- BinTime[i] = 0;
- TogglePlayerControllable(i, 1);
- }
- }
- if(PlayerInfo[i][pGarbageTime] > 0)
- {
- if(PlayerInfo[i][pGarbageTime] == 1)
- {
- if(PlayerInfo[i][pJob] == 10)
- {
- SendClientMessage(i, COLOR_WHITE, "{999999}You can do another Garbage run now.");
- PlayerInfo[i][pGarbageTime] -= 1;
- }
- else
- {
- PlayerInfo[i][pGarbageTime] -= 1;
- }
- }
- else if(PlayerInfo[i][pGarbageTime] <= 0)
- {
- PlayerInfo[i][pGarbageTime] = 0;
- }
- else
- {
- PlayerInfo[i][pGarbageTime] -= 1;
- }
- }
- if(PlayerStoned[i] >= 2)
- {
- new Float:angle;
- GetPlayerFacingAngle(i, angle);
- if(IsPlayerInAnyVehicle(i))
- {
- if(GetPlayerState(i) == 2)
- {
- SetVehicleZAngle(GetPlayerVehicleID(i), angle + 15);
- SetPlayerDrunkLevel (i, 5000);
- }
- }
- else
- {
- SetPlayerDrunkLevel (i, 5000);
- }
- }
- if(TaxiCallTime[i] > 0)
- {
- if(TaxiAccepted[i] < 999)
- {
- if(IsPlayerConnected(TaxiAccepted[i]))
- {
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(TaxiAccepted[i], X, Y, Z);
- SetPlayerCheckpoint(i, X, Y, Z, 5);
- }
- }
- }
- if(MedicCallTime[i] > 0)
- {
- if(MedicCallTime[i] == 300)
- {
- MedicCallTime[i] = 0;
- DisablePlayerCheckpoint(i);
- GameTextForPlayer(i, "~r~~h~RedMarker gone", 2500, 1);
- }
- else
- {
- format(string, sizeof(string), "%d", 300 - MedicCallTime[i]);
- GameTextForPlayer(i, string, 1500, 6);
- MedicCallTime[i] += 1;
- }
- }
- if(MechanicCallTime[i] > 0)
- {
- if(MechanicCallTime[i] == 300)
- {
- MechanicCallTime[i] = 0;
- DisablePlayerCheckpoint(i);
- GameTextForPlayer(i, "~r~~h~RedMarker gone", 2500, 1);
- }
- else
- {
- format(string, sizeof(string), "%d", 300 - MechanicCallTime[i]);
- GameTextForPlayer(i, string, 1500, 6);
- MechanicCallTime[i] += 1;
- }
- }
- 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~~h~You broke the Cuffs, you are free!", 2500, 3);
- TogglePlayerControllable(i, 1);
- PlayerCuffed[i] = 0;
- PlayerCuffedTime[i] = 0;
- }
- else
- {
- PlayerCuffedTime[i] -= 1;
- }
- }
- if(Cash[i] != GetPlayerMoney(i))
- {
- new hack = GetPlayerMoney(i) - Cash[i];
- if(hack != 0)
- {
- ResetPlayerMoney(i);
- GivePlayerMoney(i, Cash[i]);
- }
- }
- if(Undercover[i] == 1)
- {
- PlayerTextDrawShow(i, UndercoverText[i]);
- }
- else
- {
- PlayerTextDrawHide(i, UndercoverText[i]);
- }
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment