Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public SetPlayerUnjail()
- {
- new string[182];
- new plname[MAX_PLAYER_NAME];
- for(new i = 1; i <= sizeof(TeritoriuData); i++)
- {
- // new string[256];
- new szMessage[256];
- new result[128];
- if(WarInfo[i][wTime] > 0)
- {
- foreach(Player, x)
- {
- if(PlayerInfo[x][pMember] == WarInfo[i][wAttacker] || PlayerInfo[x][pMember] == WarInfo[i][wFaction])
- {
- if(IsWar)
- {
- new szFaction[160];
- new szAtt[160];
- if(WarInfo[i][wFaction] == 11)
- {
- szFaction = "Grove Street";
- }
- else if(WarInfo[i][wFaction] == 12)
- {
- szFaction = "Ballas";
- }
- else if(WarInfo[i][wFaction] == 13)
- {
- szFaction = "Los Vagos";
- }
- else if(WarInfo[i][wFaction] == 14)
- {
- szFaction = "Los Aztecas";
- }
- else if(WarInfo[i][wFaction] == 15)
- {
- szFaction = "The Russian Mafia";
- }
- else if(WarInfo[i][wFaction] == 16)
- {
- szFaction = "The Rifa";
- }
- if(WarInfo[i][wAttacker] == 11)
- {
- szAtt = "Grove Street";
- }
- else if(WarInfo[i][wAttacker] == 12)
- {
- szAtt = "Ballas";
- }
- else if(WarInfo[i][wAttacker] == 13)
- {
- szAtt = "Los Vagos";
- }
- else if(WarInfo[i][wAttacker] == 14)
- {
- szAtt = "Los Aztecas";
- }
- else if(WarInfo[i][wAttacker] == 15)
- {
- szAtt = "The Russian Mafia";
- }
- else if(WarInfo[i][wAttacker] == 16)
- {
- szAtt = "The Rifa";
- }
- TextDrawHideForPlayer(x,WarStats);
- TextDrawHideForPlayer(x,WarTime);
- TextDrawHideForPlayer(x,WarBox);
- TextDrawHideForPlayer(x,WarBox2);
- PlayerTextDrawHide(x,PlayerWarStats[x]);
- TextDrawHideForPlayer(x,WarBox3);
- TextDrawHideForPlayer(x,WarBox4);
- new str1[128],str2[128],str3[128];
- new time = WarInfo[i][wTime];
- format(str2,128,"War time: %s min",CalculeazaTimp(time));
- TextDrawSetString(WarTime,str2);
- format(str3,128,"Kills: %d~n~Deaths: %d",WarScore[x],WarDeaths[x]);
- PlayerTextDrawSetString(x,PlayerWarStats[x],str3);
- if(groupVariables[WarInfo[i][wAttacker]][gScore] > groupVariables[WarInfo[i][wFaction]][gScore])
- {
- format(str1,128,"~g~%s: %d~w~~n~%s: %d",szAtt,groupVariables[WarInfo[i][wAttacker]][gScore],szFaction,groupVariables[WarInfo[i][wFaction]][gScore]);
- TextDrawSetString(WarStats,str1);
- }
- else if(groupVariables[WarInfo[i][wAttacker]][gScore] < groupVariables[WarInfo[i][wFaction]][gScore])
- {
- format(str1,128,"~g~%s: %d~w~~n~%s: %d",szFaction,groupVariables[WarInfo[i][wFaction]][gScore],szAtt,groupVariables[WarInfo[i][wAttacker]][gScore]);
- TextDrawSetString(WarStats,str1);
- }
- else if(groupVariables[WarInfo[i][wAttacker]][gScore] == groupVariables[WarInfo[i][wFaction]][gScore])
- {
- format(str1,128,"%s: %d~n~%s: %d",szFaction,groupVariables[WarInfo[i][wFaction]][gScore],szAtt,groupVariables[WarInfo[i][wAttacker]][gScore]);
- TextDrawSetString(WarStats,str1);
- }
- //PlayerTextDrawShow(x,PlayerWarStats[x]);
- TextDrawShowForPlayer(x,WarStats);
- PlayerTextDrawShow(x,PlayerWarStats[x]);
- TextDrawShowForPlayer(x,WarTime);
- TextDrawShowForPlayer(x,WarBox);
- TextDrawShowForPlayer(x,WarBox2);
- TextDrawShowForPlayer(x,WarBox3);
- TextDrawShowForPlayer(x,WarBox4);
- /// printf("Faction: %d | Attacker: %d ",WarInfo[i][wFaction],WarInfo[i][wAttacker]);
- // printf(" %s vs %s ",szAtt,szFaction);
- }
- ///GangZoneFlashForPlayer(x, turf[i], COLOR_RED);
- }
- else
- {
- //TextDrawHideForPlayer(x, tTimer[x]);
- //GangZoneStopFlashForPlayer(x, turf[i]);
- }
- }
- WarInfo[i][wTime] -= 1;
- if(WarInfo[i][wTime] == 0)
- {
- new senderwar[MAX_PLAYER_NAME], senderwar1[MAX_PLAYER_NAME];
- GetPlayerName(WarMan1, senderwar, sizeof(senderwar));
- GetPlayerName(WarMan2, senderwar1, sizeof(senderwar1));
- if(!IsPlayerConnected(WarMan1) || WarMan1 == 999) strmid(senderwar, "-", 0, MAX_PLAYER_NAME, MAX_PLAYER_NAME);
- if(!IsPlayerConnected(WarMan2) || WarMan2 == 999) strmid(senderwar1, "-", 0, MAX_PLAYER_NAME, MAX_PLAYER_NAME);
- if(groupVariables[WarInfo[i][wAttacker]][gScore] > groupVariables[WarInfo[i][wFaction]][gScore])
- {
- foreach(Player, x)
- {
- if(PlayerInfo[x][pMember] == WarInfo[i][wAttacker] || PlayerInfo[x][pMember] == WarInfo[i][wFaction])
- {
- if(!IsAMember(x))
- {
- return 1;
- }
- TextDrawHideForPlayer(x,WarStats);
- TextDrawHideForPlayer(x,WarTime);
- TextDrawHideForPlayer(x,WarBox);
- TextDrawHideForPlayer(x,WarBox2);
- TextDrawHideForPlayer(x,WarBox3);
- TextDrawHideForPlayer(x,WarBox4);
- PlayerTextDrawHide(x,PlayerWarStats[x]);
- format(szMessage, sizeof(szMessage), "Scorul tau! Kills: %d | Deaths: %d",WarScore[x],WarDeaths[x]);
- SCM(x, COLOR_TEAL, szMessage);
- ClearDeahMessages(x);
- if(x == WarMan1)
- {
- PlayerInfo[WarMan1][pMats] += 100;
- PlayerInfo[WarMan1][pDrugs] +=10;
- GivePlayerCash(WarMan1,100000);
- SCM(WarMan1,COLOR_WHITE,""TAG""G" Ai primit 100.000$, 100 mats si 10 drugs pentru ca ai avut cel mai bun scor la war !");
- format(szMessage, sizeof(szMessage), "UPDATE players SET Materials='%d' WHERE id=%d", PlayerInfo[WarMan1][pMats], PlayerInfo[WarMan1][pSQLID]);
- mysql_query(szMessage);
- format(szMessage, sizeof(szMessage), "UPDATE players SET Drugs='%d' WHERE id=%d", PlayerInfo[WarMan1][pDrugs], PlayerInfo[WarMan1][pSQLID]);
- mysql_query(szMessage);
- }
- }
- }
- TeritoriuData[i][tOwned] = WarInfo[i][wAttacker];
- format(result, sizeof(result), "UPDATE teritorii SET Owned='%d' WHERE Id=%d", TeritoriuData[i][tOwned], i);
- mysql_query(result);
- new attackerul = WarInfo[i][wAttacker];
- new defender = WarInfo[i][wFaction];
- // new string[226];
- new szFaction[160];
- new szAtt[160];
- if(WarInfo[i][wFaction] == 11)
- {
- szFaction = "Grove Street";
- }
- else if(WarInfo[i][wFaction] == 12)
- {
- szFaction = "Ballas";
- }
- else if(WarInfo[i][wFaction] == 13)
- {
- szFaction = "Los Vagos";
- }
- else if(WarInfo[i][wFaction] == 14)
- {
- szFaction = "Los Aztecas";
- }
- else if(WarInfo[i][wFaction] == 15)
- {
- szFaction = "The Russian Mafia";
- }
- else if(WarInfo[i][wFaction] == 16)
- {
- szFaction = "The Rifa";
- }
- if(WarInfo[i][wAttacker] == 11)
- {
- szAtt = "Grove Street";
- }
- else if(WarInfo[i][wAttacker] == 12)
- {
- szAtt = "Ballas";
- }
- else if(WarInfo[i][wAttacker] == 13)
- {
- szAtt = "Los Vagos";
- }
- else if(WarInfo[i][wAttacker] == 14)
- {
- szAtt = "Los Aztecas";
- }
- else if(WarInfo[i][wAttacker] == 15)
- {
- szAtt = "The Russian Mafia";
- }
- else if(WarInfo[i][wAttacker] == 16)
- {
- szAtt = "The Rifa";
- }
- SeifData[attackerul][sMats] += 0;
- SeifData[attackerul][sDrugs] += 0;
- SeifData[attackerul][sMoney] += 0;
- format(string, sizeof(string), "UPDATE seif SET Mats='%d' WHERE id=%d", SeifData[attackerul][sMats], attackerul);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE seif SET Drugs='%d' WHERE id=%d", SeifData[attackerul][sDrugs], attackerul);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE seif SET Money='%d' WHERE id=%d", SeifData[attackerul][sMoney], attackerul);
- mysql_query(string);
- format(szMessage, sizeof(szMessage), "%s: %d points | %s: %d points.", szFaction, groupVariables[attackerul][gScore], szAtt, groupVariables[defender][gScore]);
- SendFamilyMessage(attackerul, COLOR_LIGHTGREEN, szMessage);
- SendFamilyMessage(defender, COLOR_LIGHTGREEN, szMessage);
- format(szMessage, sizeof(szMessage), "NR Bot: %s a castigat teritoriul %i, detinut de %s.", szAtt, i, szFaction);
- SendClientMessageToAll(COLOR_PURPLE, szMessage);
- format(szMessage, sizeof(szMessage), "NR Bot: Cel mai bun gangster: %s (%d kills) | Cel mai slab gangster: %s (%d deaths) !", senderwar,WarScore1,senderwar1,WarScore2 );
- SendClientMessageToAll(COLOR_PURPLE, szMessage);
- WarInfo[i][wTime] = 0;
- WarInfo[i][wAttacker] = 0;
- WarInfo[i][wFaction] = 0;
- IsWar = 0;
- WarScore1 = 0;
- WarScore2 = 0;
- WarMan1 = 999;
- WarMan2 = 999;
- groupVariables[WarInfo[i][wAttacker]][gScore] = 0;
- groupVariables[WarInfo[i][wFaction]][gScore] = 0;
- GangZoneStopFlashForAll(turf[i]);
- GangZoneShowForAll(turf[i], GetTeamZoneColor(TeritoriuData[i][tOwned]));
- }
- if(groupVariables[WarInfo[i][wAttacker]][gScore] < groupVariables[WarInfo[i][wFaction]][gScore])
- {
- foreach(Player, x)
- {
- if(PlayerInfo[x][pMember] == WarInfo[i][wAttacker] || PlayerInfo[x][pMember] == WarInfo[i][wFaction])
- {
- if(!IsAMember(x))
- {
- return 1;
- }
- TextDrawHideForPlayer(x,WarStats);
- TextDrawHideForPlayer(x,WarTime);
- TextDrawHideForPlayer(x,WarBox);
- TextDrawHideForPlayer(x,WarBox2);
- TextDrawHideForPlayer(x,WarBox3);
- TextDrawHideForPlayer(x,WarBox4);
- PlayerTextDrawHide(x,PlayerWarStats[x]);
- ClearDeahMessages(x);
- format(szMessage, sizeof(szMessage), "Scorul tau! Kills: %d | Deaths: %d",WarScore[x],WarDeaths[x]);
- SCM(x, COLOR_TEAL, szMessage);
- format(szMessage, sizeof(szMessage), ""G"Cel mai bun gangster: %s (%d kills) | Cel mai slab gangster: %s (%d deaths) !", senderwar,WarScore1,senderwar1,WarScore2 );
- SCM(x, COLOR_LIGHTBLUE, szMessage);
- if(x == WarMan1)
- {
- PlayerInfo[WarMan1][pMats] += 0;
- PlayerInfo[WarMan1][pDrugs] +=0;
- GivePlayerCash(WarMan1,0);
- SCM(WarMan1,COLOR_WHITE,""TAG""G" Felicitari, ai avut cel mai bun scor la war !");
- format(szMessage, sizeof(szMessage), "UPDATE players SET Materials='%d' WHERE id=%d", PlayerInfo[WarMan1][pMats], PlayerInfo[WarMan1][pSQLID]);
- mysql_query(szMessage);
- format(szMessage, sizeof(szMessage), "UPDATE players SET Drugs='%d' WHERE id=%d", PlayerInfo[WarMan1][pDrugs], PlayerInfo[WarMan1][pSQLID]);
- mysql_query(szMessage);
- }
- }
- }
- new attackerul = WarInfo[i][wAttacker];
- new defender = WarInfo[i][wFaction];
- new szFaction[160];
- new szAtt[160];
- if(WarInfo[i][wFaction] == 11)
- {
- szFaction = "Grove Street";
- }
- else if(WarInfo[i][wFaction] == 12)
- {
- szFaction = "Ballas";
- }
- else if(WarInfo[i][wFaction] == 13)
- {
- szFaction = "Los Vagos";
- }
- else if(WarInfo[i][wFaction] == 14)
- {
- szFaction = "Los Aztecas";
- }
- else if(WarInfo[i][wFaction] == 15)
- {
- szFaction = "The Russian Mafia";
- }
- else if(WarInfo[i][wFaction] == 16)
- {
- szFaction = "The Rifa";
- }
- if(WarInfo[i][wAttacker] == 11)
- {
- szAtt = "Grove Street";
- }
- else if(WarInfo[i][wAttacker] == 12)
- {
- szAtt = "Ballas";
- }
- else if(WarInfo[i][wAttacker] == 13)
- {
- szAtt = "Los Vagos";
- }
- else if(WarInfo[i][wAttacker] == 14)
- {
- szAtt = "Los Aztecas";
- }
- else if(WarInfo[i][wAttacker] == 15)
- {
- szAtt = "The Russian Mafia";
- }
- else if(WarInfo[i][wAttacker] == 16)
- {
- szAtt = "The Rifa";
- }
- format(szMessage, sizeof(szMessage), "%s : %d points | %s : %d points.", szFaction, groupVariables[attackerul][gScore], szAtt, groupVariables[defender][gScore]);
- SendFamilyMessage(attackerul, COLOR_LIGHTGREEN, szMessage);
- SendFamilyMessage(defender, COLOR_LIGHTGREEN, szMessage);
- WarInfo[i][wTime] = 0;
- WarInfo[i][wAttacker] = 0;
- WarInfo[i][wFaction] = 0;
- IsWar = 0;
- WarScore1 = 0;
- WarScore2 = 0;
- WarMan1 = 999;
- WarMan2 = 999;
- groupVariables[WarInfo[i][wAttacker]][gScore] = 0;
- groupVariables[WarInfo[i][wFaction]][gScore] = 0;
- GangZoneStopFlashForAll(turf[i]);
- GangZoneShowForAll(turf[i], GetTeamZoneColor(TeritoriuData[i][tOwned]));
- }
- if(groupVariables[WarInfo[i][wAttacker]][gScore] == groupVariables[WarInfo[i][wFaction]][gScore])
- {
- new attackerul = WarInfo[i][wAttacker];
- new defender = WarInfo[i][wFaction];
- foreach(Player, x)
- {
- if(PlayerInfo[x][pMember] == WarInfo[i][wAttacker] || PlayerInfo[x][pMember] == WarInfo[i][wFaction])
- {
- if(!IsAMember(x))
- {
- return 1;
- }
- TextDrawHideForPlayer(x,WarStats);
- TextDrawHideForPlayer(x,WarTime);
- TextDrawHideForPlayer(x,WarBox);
- TextDrawHideForPlayer(x,WarBox2);
- TextDrawHideForPlayer(x,WarBox3);
- TextDrawHideForPlayer(x,WarBox4);
- PlayerTextDrawHide(x,PlayerWarStats[x]);
- ClearDeahMessages(x);
- format(szMessage, sizeof(szMessage), "Scorul tau! Kills: %d | Deaths: %d",WarScore[x],WarDeaths[x]);
- SCM(x, COLOR_TEAL, szMessage);
- format(szMessage, sizeof(szMessage), ""G"Cel mai bun gangster: %s (%d kills) | Cel mai slab gangster: %s (%d deaths) !", senderwar,WarScore1,senderwar1,WarScore2 );
- SCM(x, COLOR_LIGHTBLUE, szMessage);
- if(x == WarMan1)
- {
- PlayerInfo[WarMan1][pMats] += 1000;
- PlayerInfo[WarMan1][pDrugs] +=100;
- GivePlayerCash(WarMan1,90000);
- SCM(WarMan1,COLOR_WHITE,""TAG""G" Ai primit 90.000$,1000 mats si 100 drugs pentru ca ai avut cel mai bun scor la war !");
- format(szMessage, sizeof(szMessage), "UPDATE players SET Materials='%d' WHERE id=%d", PlayerInfo[WarMan1][pMats], PlayerInfo[WarMan1][pSQLID]);
- mysql_query(szMessage);
- format(szMessage, sizeof(szMessage), "UPDATE players SET Drugs='%d' WHERE id=%d", PlayerInfo[WarMan1][pDrugs], PlayerInfo[WarMan1][pSQLID]);
- mysql_query(szMessage);
- }
- }
- }
- new szFaction[160];
- new szAtt[160];
- if(WarInfo[i][wFaction] == 11)
- {
- szFaction = "Grove Street";
- }
- else if(WarInfo[i][wFaction] == 12)
- {
- szFaction = "Ballas";
- }
- else if(WarInfo[i][wFaction] == 13)
- {
- szFaction = "Los Vagos";
- }
- else if(WarInfo[i][wFaction] == 14)
- {
- szFaction = "Los Aztecas";
- }
- else if(WarInfo[i][wFaction] == 15)
- {
- szFaction = "The Russian Mafia";
- }
- else if(WarInfo[i][wFaction] == 16)
- {
- szFaction = "The Rifa";
- }
- if(WarInfo[i][wAttacker] == 11)
- {
- szAtt = "Grove Street";
- }
- else if(WarInfo[i][wAttacker] == 12)
- {
- szAtt = "Ballas";
- }
- else if(WarInfo[i][wAttacker] == 13)
- {
- szAtt = "Los Vagos";
- }
- else if(WarInfo[i][wAttacker] == 14)
- {
- szAtt = "Los Aztecas";
- }
- else if(WarInfo[i][wAttacker] == 15)
- {
- szAtt = "The Russian Mafia";
- }
- else if(WarInfo[i][wAttacker] == 16)
- {
- szAtt = "The Rifa";
- }
- format(szMessage, sizeof(szMessage), "%s : %d points | %s : %d points.", szFaction, groupVariables[attackerul][gScore], szAtt, groupVariables[defender][gScore]);
- SendFamilyMessage(attackerul, COLOR_LIGHTGREEN, szMessage);
- SendFamilyMessage(defender, COLOR_LIGHTGREEN, szMessage);
- WarInfo[i][wTime] = 0;
- WarInfo[i][wAttacker] = 0;
- WarInfo[i][wFaction] = 0;
- IsWar = 0;
- WarScore1 = 0;
- WarScore2 = 0;
- WarMan1 = 999;
- WarMan2 = 999;
- groupVariables[WarInfo[i][wAttacker]][gScore] = 0;
- groupVariables[WarInfo[i][wFaction]][gScore] = 0;
- GangZoneStopFlashForAll(turf[i]);
- GangZoneShowForAll(turf[i], GetTeamZoneColor(TeritoriuData[i][tOwned]));
- }
- IsWar = 0;
- WarScore1 = 0;
- WarScore2 = 0;
- WarMan1 = 999;
- WarMan2 = 999;
- }
- }
- }
- if(PaintballPlayers >= 2 && PaintballRound != 1 && StartingPaintballRound != 1)
- {
- StartingPaintballRound = 1;
- SetTimer("PreparePaintball", 15000, 0);
- }
- if(KartingPlayers >= 2 && KartingRound != 1 && StartingKartRound != 1)
- {
- StartingKartRound = 1;
- SetTimer("PrepareKarting", 15000, 0);
- }
- if(KartingRound != 0 && KartingPlayers < 2)
- {
- StartingKartRound = 0;
- KartingRound = 0;
- EndingKartRound = 1;
- }
- foreach(Player, i)
- {
- new newcar = GetPlayerVehicleID(i);
- new query[MAX_STRING];
- new level = PlayerInfo[i][pLevel];
- if(IsPlayerConnected(i))
- {
- foreach(Player, v)
- {
- if(IsPlayerInAnyVehicle(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
- {
- new Speed = GetPlayerSpeed(i, 0);
- if(GetPlayerVehicleID(i) == PlayerInfo[v][pPcarkey]) {
- PlayerInfo[v][vKM][1] += (Speed*0.16)/1000;
- }
- else if(GetPlayerVehicleID(i) == PlayerInfo[v][pPcarkey2]) {
- PlayerInfo[v][vKM][2] += (Speed*0.16)/1000;
- }
- else if(GetPlayerVehicleID(i) == PlayerInfo[v][pPcarkey3]) {
- PlayerInfo[v][vKM][3] += (Speed*0.16)/1000;
- }
- else if(GetPlayerVehicleID(i) == PlayerInfo[v][pPcarkey4]) {
- PlayerInfo[v][vKM][4] += (Speed*0.16)/1000;
- }
- }
- }
- }
- if(level >= 0 && level <= 2) { PlayerInfo[i][pPayCheck] += 1; }
- else if(level >= 3 && level <= 4) { PlayerInfo[i][pPayCheck] += 2; }
- else if(level >= 5 && level <= 6) { PlayerInfo[i][pPayCheck] += 3; }
- else if(level >= 7 && level <= 8) { PlayerInfo[i][pPayCheck] += 4; }
- else if(level >= 9 && level <= 10) { PlayerInfo[i][pPayCheck] += 5; }
- else if(level >= 11 && level <= 12) { PlayerInfo[i][pPayCheck] += 6; }
- else if(level >= 13 && level <= 14) { PlayerInfo[i][pPayCheck] += 7; }
- else if(level >= 15 && level <= 16) { PlayerInfo[i][pPayCheck] += 8; }
- else if(level >= 17 && level <= 18) { PlayerInfo[i][pPayCheck] += 9; }
- else if(level >= 19 && level <= 20) { PlayerInfo[i][pPayCheck] += 10; }
- else if(level >= 21) { PlayerInfo[i][pPayCheck] += 11; }
- if(PlayerInfo[i][pJailed] > 0)
- {
- if(PlayerInfo[i][pJailTime] > 0 && WantLawyer[i] == 0)
- {
- PlayerInfo[i][pJailTime]--;
- format(query, sizeof(query), "UPDATE players SET JailTime='%d' WHERE id=%d", PlayerInfo[i][pJailTime], PlayerInfo[i][pSQLID]);
- mysql_query(query);
- }
- if(PlayerInfo[i][pJailTime] <= 0 && WantLawyer[i] == 0)
- {
- PlayerInfo[i][pJailTime] = 0;
- if(PlayerInfo[i][pJailed] >= 1)
- {
- SetPlayerInterior(i, 5);
- SetPlayerPosEx(i,1474.0437,-1751.1372,3285.2859);
- InteriorFreeze(i);
- }
- PlayerInfo[i][pJailed] = 0;
- SendClientMessage(i, COLOR_GRAD1," Ati platit datoria dumneavoastra fata de societate.");
- format(string, sizeof(string), "~g~Freedom~n~~w~Incearca sa fi un civil mai bun");
- GameTextForPlayer(i, string, 5000, 1);
- if(gTeam[i] == 4) { gTeam[i] = 3; }
- ClearCrime(i);
- SetPlayerSkin(i, PlayerInfo[i][pChar]);
- SetPlayerToTeamColor(i);
- PlayerTextDrawHide(i,TDJ[i]);
- format(string, sizeof(string), "UPDATE players SET Jailed='%d' WHERE id=%d", PlayerInfo[i][pJailed], PlayerInfo[i][pSQLID]);
- mysql_query(string);
- }
- }
- if(GetPlayerCash(i) - CurrentMoney[i] >= 50000 && PlayerInfo[i][pAdmin] < 1)
- {
- if(ConsumingMoney[i])
- {
- CurrentMoney[i] = GetPlayerCash(i);
- ConsumingMoney[i] = 0;
- }
- else
- {
- CurrentMoney[i] = GetPlayerCash(i);
- }
- }
- else
- {
- CurrentMoney[i] = GetPlayerCash(i);
- }
- if(IsABoat(newcar))
- {
- if(PlayerInfo[i][pBoatLic] != 1 && GetPlayerState(i) == 2 && !IsPlayerNPC(i))
- {
- if(TakingLesson[i] == 1) { }
- else
- {
- RemovePlayerFromVehicle(i);
- if(PlayerInfo[i][pBoatLic] == 0)
- {
- SendClientMessage(i, COLOR_GRAD1,"Nu ai licenta de navigat.");
- }
- else
- {
- SendClientMessage(i, COLOR_GRAD1,"Licenta ta de navigat este suspendata.");
- }
- }
- }
- }
- else if(IsAPlane(newcar))
- {
- if(PlayerInfo[i][pFlyLic] != 1 && GetPlayerState(i) == 2 && !IsPlayerNPC(i))
- {
- if(TakingLesson[i] == 1) { }
- else
- {
- RemovePlayerFromVehicle(i);
- if(PlayerInfo[i][pFlyLic] == 0)
- {
- SendClientMessage(i, COLOR_GRAD1,"Nu ai licenta de pilotaj.");
- }
- else
- {
- SendClientMessage(i, COLOR_GRAD1,"Licenta ta de pilotaj este suspendata.");
- }
- }
- }
- }
- else
- {
- if(PlayerInfo[i][pCarLic] != 1 && IsPlayerInAnyVehicle(i) && GetPlayerState(i) == 2 && !IsPlayerNPC(i))
- {
- if(TakingLesson[i] == 1 || IsABmx(newcar) || newcar == civcar[0] || newcar == civcar[1] || newcar == civcar[2]||newcar==civcar[3]||newcar==civcar[4]||newcar==civcar[14]) { }
- else
- {
- RemovePlayerFromVehicle(i);
- SendClientMessage(i, COLOR_GRAD1,"Nu ai licenta de condus sau licenta ta este suspendata.");
- }
- }
- }//Done with car check
- if(UsedFind[i] >= 1)
- {
- UsedFind[i] += 1;
- if(UsedFind[i] >= 60)
- {
- UsedFind[i] = 0;
- }
- }
- 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])
- {
- new cut = deathcost; //PlayerInfo[playerid][pLevel]*deathcost;
- GivePlayerCash(i, -cut);
- format(string, sizeof(string), "DOC: Factura dumneavostra de sanatate a costat $%d, Sa aveti o zi buna.", cut);
- SendClientMessage(i, TEAM_CYAN_COLOR, string);
- TogglePlayerControllable(i, 1);
- MedicBill[i] = 0;
- MedicTime[i] = 0;
- NeedMedicTime[i] = 0;
- PlayerInfo[i][pDeaths] += 1;
- format(string, sizeof(string), "UPDATE players SET Deaths='%d' WHERE id=%d", PlayerInfo[i][pDeaths], PlayerInfo[i][pSQLID]);
- mysql_query(string);
- PlayerFixRadio(i);
- // SetSpawnInfo(i, PlayerInfo[i][pTeam], PlayerInfo[i][pModel], 1641.2795,-2239.7483,13.4972, 182.3683, 0, 0, 0, 0, 0, 0);
- SpawnPlayer(i);
- }
- }
- if(WantLawyer[i] >= 1)
- {
- CallLawyer[i] = 111;
- if(WantLawyer[i] == 1)
- {
- SendClientMessage(i, COLOR_LIGHTRED, "Ai nevoie de un avocat? (Scrie yes sau no)");
- }
- WantLawyer[i] ++;
- if(WantLawyer[i] == 8)
- {
- SendClientMessage(i, COLOR_LIGHTRED, "Ai nevoie de un avocat? (Scrie yes sau no)");
- }
- if(WantLawyer[i] == 15)
- {
- SendClientMessage(i, COLOR_LIGHTRED, "Ai nevoie de un avocat? (Scrie yes sau no)");
- }
- if(WantLawyer[i] == 20)
- {
- SendClientMessage(i, COLOR_LIGHTRED, "Nu sunt avocati online, asa ca iti vei ispasi pedeapsa.");
- WantLawyer[i] = 0;
- CallLawyer[i] = 0;
- }
- }
- if(Disguise[i] == 1)
- {
- for(new a = 0; a < MAX_PLAYERS; a++)
- {
- ShowPlayerNameTagForPlayer(a, i, false);
- }
- }
- else if(Disguise[i] != 1)
- {
- for(new a = 0; a < MAX_PLAYERS; a++)
- {
- ShowPlayerNameTagForPlayer(a, i, true);
- }
- }
- if(TutTime[i] >= 1)
- {
- TutTime[i] += 1;
- if(TutTime[i] == 4)// Prezentare Generala
- {
- TogglePlayerSpectating(i, 1);
- // TextDrawShowForPlayer(i, tstep[i]);
- ClearChatbox(i, 15);
- InterpolateCameraPos(i, 183.647567, -2166.824707, 147.742019, 554.600402, -2104.717041, 51.045173, 20000);
- InterpolateCameraLookAt(i, 187.147766, -2164.028564, 145.521575, 550.150512, -2102.569824, 50.278675, 20000);
- SendClientMessage(i, COLOR_WHITE, "{a9c4e4}Prezentare Generala ");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "Salutare! Bun venit pe rpg.gLAND.ro!");
- SendClientMessage(i, COLOR_WHITE, "Serverul rpg.gLAND.ro este un server nou aparut si bine lucrat. ");
- SendClientMessage(i, COLOR_WHITE, "Sunt 231 case si 25 business-uri pe server, iar in dealership sunt disponibile 121 modele diferite de masini.");
- SendClientMessage(i, COLOR_WHITE, "Daca joci pe rpg.gLAND.ro, ai siguranta ca nu vor fi resetate datele (wipe) niciodata asa cum se intampla pe alte servere. ");
- SendClientMessage(i, COLOR_WHITE, "Se fac update-uri frecvent 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. ");
- SendClientMessage(i, COLOR_TEAL, "Poti folosit /skip daca nu vrei sa treci prin tutorial !");
- TogglePlayerControllable(i, false);
- // TextDrawSetString(tstep[i], " Tutorial ~y~(y~1/8)");
- }
- else if(TutTime[i] == 30)
- {
- ClearChatbox(i, 15);
- InterpolateCameraPos(i, 1780.783081, -1830.763671, 40.788516, 1826.135375, -1841.924560, 15.576026, 20000);
- InterpolateCameraLookAt(i, 1785.048706, -1832.006103, 38.494880, 1831.006347, -1842.374023, 14.540605, 20000);
- SendClientMessage(i, COLOR_WHITE, "{a9c4e4}Magazinul 24/7 din LS ");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "Acesta este un magazin 24/7, magazin din care poti cumpara mai multe lucruri utile: ");
- SendClientMessage(i, COLOR_WHITE, "- Telefon - dupa ce cumperi un telefon, vei putea suna un alt player sau ii vei putea trimite un sms.");
- SendClientMessage(i, COLOR_WHITE, "- Agenda telefonica - vei putea afla numerele de telefon ale altor playeri folosind comanda /numbr.");
- SendClientMessage(i, COLOR_WHITE, "- Tigari - pe server poti fuma in liniste folosid comands /smoke.");
- SendClientMessage(i, COLOR_WHITE, " - Canistra - daca ramai fara benzina la masina , poti folosi /fillcar.");
- SendClientMessage(i, COLOR_WHITE, " - Walkie Talkie - te ajuta sa poti discuta cu prietenii tai prin /wt.");
- SendClientMessage(i, COLOR_WHITE, "Te lasam pe tine sa descoperi ce altceva poti cumpara din magazine.");
- // TextDrawSetString(tstep[i], " Tutorial ~y~(y~2/8)");
- }
- else if(TutTime[i] == 50)
- {
- ClearChatbox(i, 15);
- InterpolateCameraPos(i, 1198.766357, -1730.464111, 37.123344, 1101.956787, -1714.557739, 17.345357, 20000);
- InterpolateCameraLookAt(i, 1194.400512, -1728.355468, 35.901470, 1097.973999, -1711.619995, 16.632946, 20000);
- SendClientMessage(i, COLOR_WHITE, "{a9c4e4}DMV ");
- SendClientMessage(i, COLOR_WHITE, "");
- 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 'Examen LS' din lista. ");
- SendClientMessage(i, COLOR_WHITE, "Comanda /gps poate fi folosita si pentru a afla unde sunt alte locatii importante 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 se pot confisca si de admini sau politisti ! Deci ai mare grija !");
- // TextDrawSetString(tstep[i], " Tutorial ~y~(y~3/8)");
- }
- else if(TutTime[i] == 70)
- {InterpolateCameraPos(i, 1471.962280, -1024.781005, 44.587802, 1524.528930, -1043.154663, 30.165300, 20000);
- InterpolateCameraLookAt(i, 1475.551025, -1027.860717, 42.964138, 1521.048828, -1046.567260, 29.050382, 20000);
- ClearChatbox(i, 15);
- SendClientMessage(i, COLOR_WHITE, "{a9c4e4}Dealership LS ");
- SendClientMessage(i, COLOR_WHITE, "");
- 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 Perennial si costa 570,000$, iar cea mai scumpa este HotRacing A si are pretul de 90,000,000$.");
- SendClientMessage(i, COLOR_WHITE, "Sunt disponibile 121 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 avei putea localiza. ");
- SendClientMessage(i, COLOR_WHITE, "Vei putea de asemenea 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 dintre joburile disponibile(/jobs).");
- // TextDrawSetString(tstep[i], " Tutorial ~y~(y~4/8)");
- }
- else if(TutTime[i] == 85)
- {
- ClearChatbox(i, 15);
- InterpolateCameraPos(i, -203.994903, -483.693786, 59.420005, -202.273147, -373.658416, 31.174304, 20000);
- InterpolateCameraLookAt(i, -202.445983, -479.142944, 58.044986, -199.513427, -369.665618, 29.973653, 20000);
- SendClientMessage(i, COLOR_WHITE, "{a9c4e4}Job Trucker ");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, " Trucker (sofer de tir) este unul din job-urile disponibile pe serverul nostru. ");
- SendClientMessage(i, COLOR_WHITE, "La acest job trebuie sa livrezi marfa dintr-un oras in altul. ");
- SendClientMessage(i, COLOR_WHITE, "Pentru a vedea o lista cu job-urile 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.");
- /// TextDrawSetString(tstep[i], " Tutorial ~y~(y~5/8)");
- }
- else if(TutTime[i] == 100)
- {
- ClearChatbox(i, 15);
- InterpolateCameraPos(i, 1468.168823, -1673.465332, 72.490020, 1544.218505, -1675.482421, 17.079647, 20000);
- InterpolateCameraLookAt(i, 1472.057373, -1673.610473, 69.350311, 1549.075927, -1675.583984, 18.260986, 20000);
- SendClientMessage(i, COLOR_WHITE, "{a9c4e4}LSPD , F.B.I , National Guard ");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "Politistii sunt impartiti in 3 factiuni: LSPD , National Guard , F.B.I.");
- SendClientMessage(i, COLOR_WHITE, "Vei putea aplica la una din cele 3 factiuni de politisti incepand cu level 4. ");
- SendClientMessage(i, COLOR_WHITE, "Pana ajungi la level 4, vei putea aplica la factiunile Taxi, SMURD incepand cu level 3. ");
- SendClientMessage(i, COLOR_WHITE, "La factiunea School Instructor sau la una din cele 6 mafii, vei putea aplica incepand cu level 5.");
- SendClientMessage(i, COLOR_WHITE, "Aplicatiile se fac pe forum (www.gLAND.ro/forum). ");
- SendClientMessage(i, COLOR_WHITE, "Cei ce fac parte din factiuni primesc salarii saptamanale de la liderul factiunii.");
- // TextDrawSetString(tstep[i], " Tutorial ~y~(y~6/8)");
- }
- else if(TutTime[i] == 120)
- {
- InterpolateCameraPos(i, 1418.262817, -1044.632324, 39.588813, 1466.479003, -1026.390136, 26.384252, 20000);
- InterpolateCameraLookAt(i, 1422.624389, -1042.872070, 37.892280, 1466.563232, -1021.402160, 26.048137, 20000);
- ClearChatbox(i, 15);
- SendClientMessage(i, COLOR_WHITE, "{a9c4e4}Banca LS");
- SendClientMessage(i, COLOR_WHITE, "");
- 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 o data pe ora. ");
- SendClientMessage(i, COLOR_WHITE, "Banii primiti din payday ajung automat in contul bancar si va trebui sa mergi la banca pentru a-i retrage. ");
- SendClientMessage(i, COLOR_WHITE, "Te sfatuim sa nu imprumuti bani altor playeri deoarece nu ai 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 servere) sunt interzise. ");
- SendClientMessage(i, COLOR_WHITE, "Daca cineva iti propune sa cumperi o masina in joc pentru bani reali, te sfatuim sa-l raportezi folosim 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.");
- /// TextDrawSetString(tstep[i], " Tutorial ~y~(y~7/8)");
- }
- else if(TutTime[i] == 135)
- {
- ClearChatbox(i, 15);
- InterpolateCameraPos(i, 803.020996, -983.599365, 81.276168, 839.655639, -1034.886718, 27.376045, -1);
- InterpolateCameraLookAt(i, 805.362304, -986.750061, 78.179206, 842.722290, -1038.615356, 26.074794, -1);
- SendClientMessage(i, COLOR_WHITE, "{a9c4e4}CNN Stuio LS ");
- SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_WHITE, "Aici este CNN Los Santos, adica locul de unde se pot 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 de 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 3. ");
- SendClientMessage(i, COLOR_WHITE, "Si pe forumul nostru www.gLAND.ro/forum exista o sectiune de vanzari unde playerii unde playerii pot posta anunturi.");
- SendClientMessage(i, COLOR_WHITE, " Ai ajuns la sfarsitul tutorialului. Daca ai fost atent, ar trebui sa stii cateva lucruri despre joc.");
- SendClientMessage(i, COLOR_WHITE, "Daca ai vreo intrebare legata de joc, foloseste /n si helperii vor incerca sa te ajute.");
- SendClientMessage(i, COLOR_WHITE, "Poti folosi si /help pentru comenzi de baza.");
- SendClientMessage(i, COLOR_WHITE, "Distractie placuta!");
- // TextDrawSetString(tstep[i], " Tutorial ~y~(y~8/8)");
- }
- else if(TutTime[i] == 149)
- {
- ClearChatbox(i, 20);
- ShowPlayerDialog(i,152,DIALOG_STYLE_INPUT,"Email","Scrie aici adresa ta de email!\n Ea te ajuta la recuperarea contului in caz ca este spart\nExemplu: {ffffff}[email protected]","OK","");
- SendClientMessage(i, COLOR_YELLOW2, "Viziteaza www.gLAND.ro/forum pentru mai multe informatii despre server.");
- SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Bun venit pe gLAND RPG");
- new stringn[256], sendernamen[MAX_PLAYER_NAME];
- GetPlayerName(i, sendernamen, sizeof(sendernamen));
- format(stringn, sizeof(stringn), "SERVER: %s s-a inregistrat! Folositi /goto % pentru a-i face un tur al serverului.", sendernamen, sendernamen);
- SBroadCast(COLOR_LIGHTRED, stringn);
- format(stringn, sizeof(stringn), "SERVER:%s s-a inregistrat pe server.",sendernamen);
- ABroadCast(COLOR_LIGHTRED,stringn,1);
- TogglePlayerSpectating(i, 0);
- TutTime[i] = 0; PlayerInfo[i][pTut] = 1;
- gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0;
- TogglePlayerControllable(i, 1);
- MedicBill[i] = 0;
- // PlayerInfo[i][pLevel] = 1;
- PlayerInfo[i][pPPoints] = 0;
- PlayerInfo[i][pPcarkey] = -1;
- PlayerInfo[i][pPcarkey2] = -1;
- PlayerInfo[i][pPcarkey3] = -2;
- PlayerInfo[i][pPcarkey4] = -2;
- PlayerInfo[i][vModel][3] = -2;
- PlayerInfo[i][vModel][4] = -2;
- PlayerInfo[i][vModel][1] = 462;
- PlayerInfo[i][vValue][1] = 1;
- PlayerInfo[i][vLocX][1] = 2315.9238+random(10);
- PlayerInfo[i][vLocY][1] = 1460.6024+random(10);
- PlayerInfo[i][vLocZ][1] = 42.8203+random(3);
- PlayerInfo[i][vLock][1] = 0;
- PlayerInfo[i][vExp][1] = 0;
- PlayerInfo[i][vAngle][1] = 0.0;
- PlayerInfo[i][pPcarkey] = CreateVehicle(PlayerInfo[i][vModel][1], PlayerInfo[i][vLocX][1], PlayerInfo[i][vLocY][1], PlayerInfo[i][vLocZ][1], PlayerInfo[i][vAngle][1], PlayerInfo[i][vCuloare1][1], PlayerInfo[i][vCuloare2][1], -1);
- SetTimerEx("putinveh", 2000, 0, "d", i);
- Gas[PlayerInfo[i][pPcarkey]] = 99;
- PlayerInfo[i][vFuel][1] = 99;
- //new pos[MAX_PLAYERS];
- startvpos[i] = 1 + random(3);
- switch(startvpos[i])
- {
- case 1:
- {
- SetVehiclePos(PlayerInfo[i][pPcarkey], 1078.5137, -1770.3633, 12.9510);
- }
- case 2:
- {
- SetVehiclePos(PlayerInfo[i][pPcarkey], 1077.3203,-1761.0994,12.9771);
- }
- case 3:
- {
- SetVehiclePos(PlayerInfo[i][pPcarkey], 1062.1116,-1754.4071,13.0331);
- }
- case 4:
- {
- SetVehiclePos(PlayerInfo[i][pPcarkey], 1099.0439,-1764.1396,12.9473);
- }
- }
- startvpos[i] = 0;
- SCM(i, COLOR_LIGHTRED, "** {FFFFFF}Ai primit un Faggio personal pentru ca esti incepator ! Cand vei atinge level 3 acesta va disparea !");
- SCM(i, COLOR_LIGHTRED, "** {FFFFFF}Pentru a vedea comenzile vehiculului, foloseste comanda: /carhelp !");
- SCM(i, COLOR_WHITE, "Nu uita sa-ti parchezi masina undeva ( /park ) !");
- format(string, sizeof(string), "UPDATE players SET Accusedof='-' WHERE id=%d", PlayerInfo[i][pSQLID]);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE players SET Victim='-' WHERE id=%d", PlayerInfo[i][pSQLID]);
- mysql_query(string);
- strmid(PlayerCrime[i][pAccusedof], "-", false, strlen("-"), 10);
- strmid(PlayerCrime[i][pVictim], "-", false, strlen("-"), 10);
- SetPlayerSpawn(i);
- GivePlayerCash(i, 2000);
- SetCameraBehindPlayer(i);
- //Bonus(i);
- CP[i] = 12;
- PlayerInfo[i][pGiftPoints] = 5;
- format(string, sizeof(string), "UPDATE players SET GiftPoints='%d' WHERE id=%d", PlayerInfo[i][pGiftPoints], PlayerInfo[i][pSQLID]);
- mysql_query(string);
- Bonus(i);
- if(PlayerInfo[i][pOrigin] == 1)
- {
- SetPlayerCheckpoint(i,1081.3702,-1699.2769,13.5469,7.0);
- }
- else if(PlayerInfo[i][pOrigin] == 2)
- {
- SetPlayerCheckpoint(i,-2084.10,67.28,34.27,7.0);
- }
- SendClientMessage(i, COLOR_WHITE, "Ti-am pus un checkpoint pe map. Dute la el si da examenul pentru permisul de conducere.");
- format(string, sizeof(string), "UPDATE players SET Tutorial='%d' WHERE id=%d", PlayerInfo[i][pTut], PlayerInfo[i][pSQLID]);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE players SET PlayerLevel='%d' WHERE id=%d", PlayerInfo[i][pLevel], PlayerInfo[i][pSQLID]);
- mysql_query(string);
- }
- }
- if(ScoalaTime[i] >= 1)
- {
- ScoalaTime[i] += 1;
- if(ScoalaTime[i] == 3)
- {
- TogglePlayerControllable(i, 0);
- TextDrawShowForPlayer(i, Chatbox1);
- TextDrawShowForPlayer(i, Chatbox2);
- TextDrawShowForPlayer(i, Chatbox3);
- SetPlayerCameraPos(i, 2247.0215,-1655.0173,17.2856);
- SetPlayerCameraLookAt(i, 2244.6536,-1663.9304,15.4766);
- SetPlayerInterior(i, 0);
- SetPlayerVirtualWorld(i, 99);
- SetPlayerPosEx(i, 2256.3555,-1646.6377,15.4959);
- SendClientMessage(i, COLOR_YELLOW, ":: Magazinul de Haine ::");
- SendClientMessage(i, COLOR_WHITE, " ");
- SendClientMessage(i, COLOR_YELLOW2, "Hainele acelea nu arata prea bine... De ce nu cumperi cateva de aici?");
- SendClientMessage(i, COLOR_YELLOW2, "Cand esti in magazin tasteaza /buyskin pentru a alege niste haine.");
- SendClientMessage(i, COLOR_YELLOW2, "Pentru a-ti lua hainele adecvate factiunii tale, tasteaza /clothes.");
- }
- else if(ScoalaTime[i] == 18)
- {
- SetPlayerPosEx(i, 1514.3059,-1667.8116,14.0469);
- SetPlayerCameraPos(i, 1485.9294,-1770.9418,18.7958);
- SetPlayerCameraLookAt(i, 1484.8512,-1771.4022,18.7958);
- SetPlayerInterior(i, 0);
- SetPlayerVirtualWorld(i, 99);
- SendClientMessage(i, COLOR_YELLOW, ":: Level si Joburi ::");
- SendClientMessage(i, COLOR_WHITE, " ");
- SendClientMessage(i, COLOR_YELLOW2, "Acesta este primaria Los Santos.De aici iti poti lua joburi(slujbe).");
- SendClientMessage(i, COLOR_YELLOW2, "Exemple de joburi:Camionagiu,Detectiv, Dealer de droguri , dealer de arme ..");
- SendClientMessage(i, COLOR_YELLOW2, "Cand atinti numarul de RP necesar pentru cresterea level-ului, acesta creste automat.");
- SendClientMessage(i, COLOR_YELLOW2, "RP-urile le poti face jucand pe server (la fiecare ora jucata primesti un RP).");
- }
- if(ScoalaTime[i] == 33)
- {
- SetPlayerPosEx(i, 1514.3059,-1667.8116,14.0469);
- SetPlayerCameraPos(i, 1535.9584,-1676.1428,18.3828);
- SetPlayerCameraLookAt(i, 1553.7861,-1676.4270,16.1953);
- SetPlayerInterior(i, 0);
- SendClientMessage(i, COLOR_YELLOW, ":: Politia ::");
- SendClientMessage(i, COLOR_WHITE, " ");
- SendClientMessage(i, COLOR_YELLOW2, "Politia gLAND RPG e in oras ca sa te ajute.");
- SendClientMessage(i, COLOR_YELLOW2, "Oamenii care comit crime vor fi pedepsiti fiind arestati.");
- SendClientMessage(i, COLOR_YELLOW2, "Pentru a suna la un politist, foloseste /call 112.");
- }
- if(ScoalaTime[i] == 48)
- {
- SetPlayerPosEx(i, 1221.7010,-1328.6449,13.4821);
- SetPlayerCameraPos(i, 1204.3781,-1313.3323,16.3984);
- SetPlayerCameraLookAt(i, 1174.7167,-1323.4485,14.5938);
- SetPlayerInterior(i, 0);
- SendClientMessage(i, COLOR_YELLOW, ":: Spitalul gLAND RPG ::");
- SendClientMessage(i, COLOR_WHITE, " ");
- SendClientMessage(i, COLOR_YELLOW2, "Te simti rau? Vino aici pentru a te trata.");
- SendClientMessage(i, COLOR_YELLOW2, "Daca e o urgenta, suna la /call 112.");
- }
- if(ScoalaTime[i] == 63)
- {
- SetPlayerPosEx(i, 1475.7020,-1050.9489,23.8246);
- SetPlayerCameraPos(i, 1458.3872,-1042.2423,24.8281);
- SetPlayerCameraLookAt(i, 1458.5930,-1019.9205,24.5264);
- SetPlayerInterior(i, 0);
- SendClientMessage(i, COLOR_YELLOW, ":: Banca ::");
- SendClientMessage(i, COLOR_WHITE, " ");
- SendClientMessage(i, COLOR_YELLOW2, "Nu poti tine toti banii in mana, mafiotii vor incerca sa te jefuiasca.");
- SendClientMessage(i, COLOR_YELLOW2, "Poti sa folosesti /deposit(pentru a depozita), /withdraw(pentru a lua bani din cont) si /wiretransfer(pentru a transfera).");
- SendClientMessage(i, COLOR_YELLOW2, "Vrem sa iti reamintim ca Economia este scazuta pe serverul nostru.");
- SendClientMessage(i, COLOR_YELLOW2, "De exemplu, afacerile si casele sunt mult mai ieftine, exact ca in viata reala !");
- }
- else if(ScoalaTime[i] == 78)
- {
- SendClientMessage(i, COLOR_YELLOW, ":: Finalul ::");
- SendClientMessage(i, COLOR_WHITE, " ");
- SendClientMessage(i, COLOR_YELLOW2, "Scoala gLAND RPG iti multumeste pentru ca ai fost atent la lectie!");
- SendClientMessage(i, COLOR_YELLOW2, "Poti folosi chat-ul /newbie(/n) pentru intrebari.");
- SendClientMessage(i, COLOR_LIGHTGREEN, "Profesor:{FFFFFF} Lectia te costat 5000$");
- SendClientMessage(i, COLOR_LIGHTGREEN, "Profesor:{FFFFFF} Sper ca ti-am fost de folos , distractie placuta in continuare !");
- TogglePlayerSpectating(i, 0);
- TogglePlayerControllable(i, 1);
- TextDrawHideForPlayer(i, Chatbox1);
- TextDrawHideForPlayer(i, Chatbox2);
- TextDrawHideForPlayer(i, Chatbox3);
- MedicBill[i] = 0;
- ScoalaTime[i] = 0;
- SetPlayerPosEx(i, 1397.4089,-1571.7703,14.2684);
- GivePlayerCash(i, -5000);
- SetCameraBehindPlayer(i);
- }
- }
- if(RestartPrepare[i] >= 1)
- {
- RestartPrepare[i] += 1;
- if(RestartPrepare[i] == 3)
- {
- SendClientMessage(i, COLOR_LIGHTBLUE,"* Serverul se va restarta in 60 de secunde !");
- }
- else if(RestartPrepare[i] == 50)
- {
- SendClientMessage(i, COLOR_WHITE,"* Serverul se va restarta in 10 secunde !");
- }
- else if(RestartPrepare[i] == 51)
- {
- SendClientMessage(i, COLOR_LIGHTBLUE,"* Serverul se va restarta in 9 secunde !");
- }
- else if(RestartPrepare[i] == 52)
- {
- SendClientMessage(i, COLOR_WHITE,"* Serverul se va restarta in 8 secunde !");
- }
- else if(RestartPrepare[i] == 53)
- {
- SendClientMessage(i, COLOR_LIGHTBLUE,"* Serverul se va restarta in 7 secunde !");
- }
- else if(RestartPrepare[i] == 54)
- {
- SendClientMessage(i, COLOR_WHITE,"* Serverul se va restarta in 6 secunde !");
- }
- else if(RestartPrepare[i] == 55)
- {
- SendClientMessage(i, COLOR_LIGHTBLUE,"* Serverul se va restarta in 5 secunde !");
- }
- else if(RestartPrepare[i] == 56)
- {
- SendClientMessage(i, COLOR_WHITE,"* Serverul se va restarta in 4 secunde !");
- }
- else if(RestartPrepare[i] == 57)
- {
- SendClientMessage(i, COLOR_LIGHTBLUE,"* Serverul se va restarta in 3 secunde !");
- }
- else if(RestartPrepare[i] == 58)
- {
- SendClientMessage(i, COLOR_WHITE,"* Serverul se va restarta in 2 secunde !");
- }
- else if(RestartPrepare[i] == 59)
- {
- SendClientMessage(i, COLOR_LIGHTBLUE,"* Serverul se va restarta in 1 secunda !");
- SendClientMessage(i, COLOR_LIGHTRED,"* Sa revii dupa acest restart. ");
- RestartPrepare[i] = 0;
- }
- }
- if(DMVTime[i] >= 1)
- {
- DMVTime[i] += 1;
- if(DMVTime[i] == 3)
- {
- ClearChatbox(i, 10);
- SendClientMessage(i, COLOR_YELLOW, ":: Bine ai venit! ::");
- SendClientMessage(i, COLOR_WHITE, " ");
- SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Bine ai venit! Eu voi fi instructorul tau de condus.");
- SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Iti voi spune niste notiuni esentiale, asa ca fii ochi si urechi, pentru ca iti vor folosi.");
- }
- else if(DMVTime[i] == 15)
- {
- ClearChatbox(i, 10);
- SendClientMessage(i, COLOR_YELLOW, ":: In General ::");
- SendClientMessage(i, COLOR_WHITE, " ");
- SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}{ee5555}Intotdeauna{a9c4e4} conduci pe banda din dreapta.");
- SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Daca esti intr-o intersectie, trebuie sa ii acorzi prioritate celui care vine din {ee5555}partea dreapta.");
- SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Organele Politiei au {ee5555}intotdeauna{a9c4e4} dreptul de a te amenda daca");
- SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}incalci regulile prezentate in acest ghid.");
- }
- else if(DMVTime[i] == 28)
- {
- ClearChatbox(i, 10);
- SendClientMessage(i, COLOR_YELLOW, ":: Vorbitul la telefon in timpul condusului ::");
- SendClientMessage(i, COLOR_WHITE, " ");
- SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Pentru a nu provoca un accident, trebuie {ee5555}NEAPARAT{a9c4e4} sa iti inchizi telefonul");
- SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}in timp ce conduci. Daca nu vei face asta vei sfarsi provocand un accident si vei fi amendat");
- SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}de catre politie pentru condus imprudent.");
- }
- else if(DMVTime[i] == 42)
- {
- ClearChatbox(i, 10);
- SendClientMessage(i, COLOR_YELLOW, ":: Stationatul ::");
- SendClientMessage(i, COLOR_WHITE, " ");
- SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Daca vrei sa stationezi, {ee5555}nu{a9c4e4} o fa in mijlocul drumului.");
- SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Trage pe dreapta si eventual poti parca masina intr-o {ee5555}parcare.");
- SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}De asemenea, daca o masina de politie sau o ambulanta avand girofarurile aprinse");
- SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}trece pe strada pe care conduci si tu, trage pe dreapta.");
- }
- else if(DMVTime[i] == 55)
- {
- ClearChatbox(i, 10);
- SendClientMessage(i, COLOR_YELLOW, ":: Sanctionari Posibile ::");
- SendClientMessage(i, COLOR_WHITE, " ");
- SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Stationatul neregulamentar va fi amendat, la fel si");
- SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}nerespectarea ordinelor organului politiei. De asemenea, jignirea acestuia poate duce la");
- SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}amenda. Restul amenzilor le poti afla pe forum-ul nostru, care este:");
- SendClientMessage(i, COLOR_YELLOW2, "{ee5555}http://www.gLAND.ro/");
- }
- else if(DMVTime[i] == 72)
- {
- ClearChatbox(i, 10);
- SendClientMessage(i, COLOR_YELLOW, ":: Sfarsit ::");
- SendClientMessage(i, COLOR_WHITE, " ");
- SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Speram ca vei tine cont de notiunile invatate.");
- SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Acum va incepe examenul practic, asa ca va trebui sa conduci masina scolii de condus.");
- SendClientMessage(i, COLOR_YELLOW2, "{ee5555}Mult Succes !!");
- // CP[i] = 200;
- SetPVarInt(i, "checkpoint", 0);
- SetPlayerVirtualWorld(i, 0);
- SetPlayerInterior(i, 0);
- SetPlayerPosEx(i, 937.4717,-1739.2224,13.5469);
- SetPlayerRaceCheckpoint(i,0,testex[0][0],testex[0][1],testex[0][2],testex[1][0],testex[1][1],testex[1][2],10);
- TakingLesson[i] = 1;
- DMVTest[i] = 1;
- if(!IsVehicleOccupied(dmv)) { PutPlayerInVehicle(i, dmv, 0);}
- else if(!IsVehicleOccupied(dmv1)) { PutPlayerInVehicle(i, dmv1, 0); }
- else if(!IsVehicleOccupied(dmv2)) { PutPlayerInVehicle(i, dmv2, 0); }
- else if(!IsVehicleOccupied(dmv3)) { PutPlayerInVehicle(i, dmv3, 0); }
- else if(!IsVehicleOccupied(dmv3) && !IsVehicleOccupied(dmv2) && !IsVehicleOccupied(dmv1) && !IsVehicleOccupied(dmv)) { SendClientMessage(i, COLOR_LIGHTBLUE, "{DC0C0C}DMV: {FFFFFF}Nu mai sunt locuri disponibile!"); }
- SendClientMessage(i, COLOR_LIGHTBLUE, "{DC0C0C}Masina: Atunci cand motorul este oprit, il poti porni folosind comanda /engine sau apasand tasta 2.");
- TogglePlayerControllable(i, 1);
- PlayerTextDrawShow(i,checkpoints[i]);
- PlayerTextDrawSetString(i, checkpoints[i],"Checkpoints:0/20");
- GetVehicleParamsEx(GetPlayerVehicleID(i),engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(GetPlayerVehicleID(i),VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
- }
- }
- 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 + 25);
- }
- }
- else
- {
- ApplyAnimation(i,"PED", "WALK_DRUNK",4.0,0,1,0,0,0);
- }
- }
- }
- if(JFKick[i] == 2)
- {
- SendClientMessage(i,0xE42217FF,"AdmBOT: Ai primit kick pentru lupte in puscarie!");
- GetPlayerName(i, plname, sizeof(plname));
- format(string, sizeof(string), "AdmBOT: %s a primit kick pentru lupte in puscarie!", plname);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- Kick(i);
- }
- if(WantedLevel[i] == 1)
- {
- SetPlayerWantedLevel(i,1);
- }
- if(WantedLevel[i] == 0)
- {
- SetPlayerWantedLevel(i,0);
- }
- if(WantedLevel[i] == 2)
- {
- SetPlayerWantedLevel(i,2);
- }
- if(WantedLevel[i] == 3)
- {
- SetPlayerWantedLevel(i,3);
- }
- if(WantedLevel[i] == 4)
- {
- SetPlayerWantedLevel(i,4);
- }
- if(WantedLevel[i] == 5)
- {
- SetPlayerWantedLevel(i,5);
- }
- if(WantedLevel[i] >= 6)
- {
- SetPlayerWantedLevel(i,6);
- }
- if(PlayerStoned[i] >= 2)
- {
- PlayerStoned[i] += 1;
- if(PlayerStoned[i] == 10)
- {
- PlayerStoned[i] = 2;
- new Float:angle;
- GetPlayerFacingAngle(i, angle);
- if(IsPlayerInAnyVehicle(i))
- {
- if(GetPlayerState(i) == 2)
- {
- SetVehicleZAngle(GetPlayerVehicleID(i), angle + 25);
- }
- }
- else
- {
- SetPlayerFacingAngle(i, angle + 90);
- }
- }
- }
- if(PlayerInfo[i][pCarTime] > 0)
- {
- if(PlayerInfo[i][pCarTime] <= 0)
- {
- PlayerInfo[i][pCarTime] = 0;
- format(string, sizeof(string), "UPDATE players SET CarTime='%d' WHERE id=%d", PlayerInfo[i][pCarTime], PlayerInfo[i][pSQLID]);
- mysql_query(string);
- }
- else
- {
- PlayerInfo[i][pCarTime] -= 1;
- format(string, sizeof(string), "UPDATE players SET CarTime='%d' WHERE id=%d", PlayerInfo[i][pCarTime], PlayerInfo[i][pSQLID]);
- mysql_query(string);
- }
- }
- if(PlayerInfo[i][pCGunoiTime] > 0)
- {
- if(PlayerInfo[i][pCGunoiTime] <= 0)
- {
- PlayerInfo[i][pCGunoiTime] = 0;
- format(string, sizeof(string), "UPDATE players SET CGunoiTime='%d' WHERE id=%d", PlayerInfo[i][pCGunoiTime], PlayerInfo[i][pSQLID]);
- mysql_query(string);
- }
- else
- {
- PlayerInfo[i][pCGunoiTime] -= 1;
- format(string, sizeof(string), "UPDATE players SET CGunoiTime='%d' WHERE id=%d", PlayerInfo[i][pCGunoiTime], PlayerInfo[i][pSQLID]);
- mysql_query(string);
- }
- }
- if(BoxWaitTime[i] > 0)
- {
- if(BoxWaitTime[i] >= BoxDelay)
- {
- BoxDelay = 0;
- BoxWaitTime[i] = 0;
- PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
- GameTextForPlayer(i, "~g~Meciul a inceput", 5000, 1);
- TogglePlayerControllable(i, 1);
- RoundStarted = 1;
- }
- else
- {
- format(string, sizeof(string), "%d", BoxDelay - BoxWaitTime[i]);
- GameTextForPlayer(i, string, 1500, 6);
- BoxWaitTime[i] += 1;
- }
- }
- if(RoundStarted > 0)
- {
- if(PlayerBoxing[i] > 0)
- {
- new trigger = 0;
- new Lost = 0;
- new Float:angle;
- new Float:health;
- GetPlayerHealth(i, health);
- if(health < 12)
- {
- if(i == Boxer1) { Lost = 1; trigger = 1; }
- else if(i == Boxer2) { Lost = 2; trigger = 1; }
- }
- if(health < 28) { GetPlayerFacingAngle(i, angle); SetPlayerFacingAngle(i, angle + 85); }
- if(trigger)
- {
- new winner[MAX_PLAYER_NAME];
- new loser[MAX_PLAYER_NAME];
- new titel[MAX_PLAYER_NAME];
- if(Lost == 1)
- {
- if(IsPlayerConnected(Boxer1) && IsPlayerConnected(Boxer2))
- {
- SetPlayerPosEx(Boxer1, 765.8433,3.2924,1000.7186); SetPlayerPosEx(Boxer2, 765.8433,3.2924,1000.7186);
- SetPlayerInterior(Boxer1, 5); SetPlayerInterior(Boxer2, 5);
- GetPlayerName(Boxer1, loser, sizeof(loser));
- GetPlayerName(Boxer2, winner, sizeof(winner));
- if(PlayerInfo[Boxer1][pJob] == 12)
- {
- PlayerInfo[Boxer1][pLoses] += 1;
- format(string, sizeof(string), "UPDATE players SET Loses='%d' WHERE id=%d", PlayerInfo[Boxer1][pLoses], PlayerInfo[Boxer1][pSQLID]);
- mysql_query(string);
- }
- if(PlayerInfo[Boxer2][pJob] == 12)
- {
- PlayerInfo[Boxer2][pWins] += 1;
- format(string, sizeof(string), "UPDATE players SET Wins='%d' WHERE id=%d", PlayerInfo[Boxer2][pWins], PlayerInfo[Boxer2][pSQLID]);
- mysql_query(string);
- }
- if(TBoxer < 255)
- {
- if(IsPlayerConnected(TBoxer))
- {
- if(TBoxer != Boxer2)
- {
- if(PlayerInfo[Boxer2][pJob] == 10)
- {
- TBoxer = Boxer2;
- GetPlayerName(TBoxer, titel, sizeof(titel));
- new nstring[MAX_PLAYER_NAME];
- format(nstring, sizeof(nstring), "%s", titel);
- strmid(Titel[TitelName], nstring, 0, strlen(nstring), 255);
- Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
- Titel[TitelLoses] = PlayerInfo[TBoxer][pLoses];
- SaveBoxer();
- format(string, sizeof(string), "Stiri: %s a castigat importriva campionului %s si este noul campion al boxului.", titel, loser);
- OOCOff(COLOR_WHITE,string);
- }
- else
- {
- SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* Tu ai fi fost campion daca munceai ca Boxer!");
- }
- }
- else
- {
- GetPlayerName(TBoxer, titel, sizeof(titel));
- format(string, sizeof(string), "Stiri: Campionul la box %s a castigat impotriva lui %s.", titel, loser);
- OOCOff(COLOR_WHITE,string);
- Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
- Titel[TitelLoses] = PlayerInfo[Boxer2][pLoses];
- SaveBoxer();
- }
- }
- }//TBoxer
- format(string, sizeof(string), "* Ai pierdut Lupta �mpotriva lui %s.", winner);
- SendClientMessage(Boxer1, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(Boxer1, "~r~You lost", 3500, 1);
- format(string, sizeof(string), "* Ai castigat Lupta �mpotrivat lui %s.", loser);
- SendClientMessage(Boxer2, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(Boxer2, "~r~You won", 3500, 1);
- if(GetPlayerHealth(Boxer1, health) < 20)
- {
- SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* Te simti epuizat din lupta, du-te mananca undeva.");
- SetPlayerHealth(Boxer1, 30.0);
- }
- else
- {
- SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* Te simti perfect, chiar si dupa lupta.");
- SetPlayerHealth(Boxer1, 50.0);
- }
- if(GetPlayerHealth(Boxer2, health) < 20)
- {
- SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* Te simti epuizat din lupta, du-te mananca undeva.");
- SetPlayerHealth(Boxer2, 30.0);
- }
- else
- {
- SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* Te simti perfect, chiar si dupa lupta.");
- SetPlayerHealth(Boxer2, 50.0);
- }
- GameTextForPlayer(Boxer1, "~g~Match Over", 5000, 1); GameTextForPlayer(Boxer2, "~g~Meci terminat", 5000, 1);
- if(PlayerInfo[Boxer2][pJob] == 10)
- {
- PlayerInfo[Boxer2][pBoxSkill] ++;
- format(string, sizeof(string), "UPDATE players SET BoxSkill='%d' WHERE id=%d", PlayerInfo[Boxer2][pBoxSkill], PlayerInfo[Boxer2][pSQLID]);
- mysql_query(string);
- }
- PlayerBoxing[Boxer1] = 0;
- PlayerBoxing[Boxer2] = 0;
- }
- }
- else if(Lost == 2)
- {
- if(IsPlayerConnected(Boxer1) && IsPlayerConnected(Boxer2))
- {
- SetPlayerPosEx(Boxer1, 765.8433,3.2924,1000.7186); SetPlayerPosEx(Boxer2, 765.8433,3.2924,1000.7186);
- SetPlayerInterior(Boxer1, 5); SetPlayerInterior(Boxer2, 5);
- GetPlayerName(Boxer1, winner, sizeof(winner));
- GetPlayerName(Boxer2, loser, sizeof(loser));
- if(PlayerInfo[Boxer2][pJob] == 10)
- {
- PlayerInfo[Boxer2][pLoses] += 1;
- format(string, sizeof(string), "UPDATE players SET Loses='%d' WHERE id=%d", PlayerInfo[Boxer2][pLoses], PlayerInfo[Boxer2][pSQLID]);
- mysql_query(string);
- }
- if(PlayerInfo[Boxer1][pJob] == 10)
- {
- PlayerInfo[Boxer1][pWins] += 1;
- format(string, sizeof(string), "UPDATE players SET Wins='%d' WHERE id=%d", PlayerInfo[Boxer2][pWins], PlayerInfo[Boxer2][pSQLID]);
- mysql_query(string);
- }
- if(TBoxer < 255)
- {
- if(IsPlayerConnected(TBoxer))
- {
- if(TBoxer != Boxer1)
- {
- if(PlayerInfo[Boxer1][pJob] == 10)
- {
- TBoxer = Boxer1;
- GetPlayerName(TBoxer, titel, sizeof(titel));
- new nstring[MAX_PLAYER_NAME];
- format(nstring, sizeof(nstring), "%s", titel);
- strmid(Titel[TitelName], nstring, 0, strlen(nstring), 255);
- Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
- Titel[TitelLoses] = PlayerInfo[TBoxer][pLoses];
- SaveBoxer();
- format(string, sizeof(string), "Stiri: %s a castigat lupta impotriva campionului %s si este acum noul campion la box..", titel, loser);
- OOCOff(COLOR_WHITE,string);
- }
- else
- {
- SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* Tu ai fi fost campion daca munceai ca Boxer!");
- }
- }
- else
- {
- GetPlayerName(TBoxer, titel, sizeof(titel));
- format(string, sizeof(string), "Stiri: Campionul la box %s a castigat impotriva %s.", titel, loser);
- OOCOff(COLOR_WHITE,string);
- Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
- Titel[TitelLoses] = PlayerInfo[Boxer1][pLoses];
- SaveBoxer();
- }
- }
- }//TBoxer
- format(string, sizeof(string), "* Ai pierdut impotriva lui %s.", winner);
- SendClientMessage(Boxer2, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(Boxer2, "~r~You lost", 3500, 1);
- format(string, sizeof(string), "* Ai castigat impotriva lui %s.", loser);
- SendClientMessage(Boxer1, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(Boxer1, "~g~You won", 3500, 1);
- if(GetPlayerHealth(Boxer1, health) < 20)
- {
- SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* Te simti epuizat din lupta, du-te mananca undeva.");
- SetPlayerHealth(Boxer1, 30.0);
- }
- else
- {
- SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* Te simti perfect, chiar si dupa lupta.");
- SetPlayerHealth(Boxer1, 50.0);
- }
- if(GetPlayerHealth(Boxer2, health) < 20)
- {
- SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* Te simti epuizat din lupta, du-te mananca undeva.");
- SetPlayerHealth(Boxer2, 30.0);
- }
- else
- {
- SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* Te simti perfect, chiar si dupa lupta.");
- SetPlayerHealth(Boxer2, 50.0);
- }
- GameTextForPlayer(Boxer1, "~g~Match Over", 5000, 1); GameTextForPlayer(Boxer2, "~g~Meci terminat", 5000, 1);
- if(PlayerInfo[Boxer1][pJob] == 10)
- {
- PlayerInfo[Boxer1][pBoxSkill] ++;
- format(string, sizeof(string), "UPDATE players SET BoxSkill='%d' WHERE id=%d", PlayerInfo[Boxer1][pBoxSkill], PlayerInfo[Boxer1][pSQLID]);
- mysql_query(string);
- }
- PlayerBoxing[Boxer1] = 0;
- PlayerBoxing[Boxer2] = 0;
- }
- }
- InRing = 0;
- RoundStarted = 0;
- Boxer1 = 255;
- Boxer2 = 255;
- TBoxer = 255;
- trigger = 0;
- }
- }
- }
- if(StartingPaintballRound == 1 && AnnouncedPaintballRound == 0)
- {
- AnnouncedPaintballRound = 1;
- if(PlayerPaintballing[i] != 0)
- {
- SendClientMessage(i, COLOR_YELLOW, "Meciul de Paintball va fi anuntat in 15 secunde (Pentru a obtine mai multi jucatori la paintball).");
- }
- }
- if(StartingKartRound == 1 && AnnouncedKartRound == 0)
- {
- AnnouncedKartRound = 1;
- if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0)
- {
- SendClientMessage(i, COLOR_YELLOW, "Cursa de Kart va fi anuntata in 15 secunde (Pentru a obtine mai multi jucatori la cursa de Kart).");
- }
- }
- if(EndingKartRound == 1)
- {
- if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0)
- {
- DisablePlayerCheckpoint(i);
- CP[i] = 0;
- }
- }
- if(FindTime[i] > 0 && PlayerInfo[i][pDetSkill] < 400)
- {
- if(FindTime[i] == FindTimePoints[i]) { FindTime[i] = 0; FindTimePoints[i] = 0; DisablePlayerCheckpoint(i); 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(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(PlayerInfo[i][pRequestingBackup] > 0)
- {
- for(new j;j<MAX_PLAYERS;j++)
- {
- if(gTeam[j] == 2)
- {
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(i, X, Y, Z);
- SetPlayerCheckpoint(j, X, Y, Z, 5);
- }
- }
- }
- if(FindTime[i] > 0 && PlayerInfo[i][pDetSkill] >= 400)
- {
- if(PlayerToFind[i] < 999)
- {
- if(IsPlayerConnected(PlayerToFind[i]))
- {
- new Float:X,Float:Y,Float:Z;
- if(InHouse[PlayerToFind[i]] != 0 && GetPlayerInterior(PlayerToFind[i]) != 0)
- {
- SetPlayerCheckpoint(i, HouseData[InHouse[PlayerToFind[i]]][hEntrancex], HouseData[InHouse[PlayerToFind[i]]][hEntrancey], HouseData[InHouse[PlayerToFind[i]]][hEntrancez], 6);
- return 1;
- }
- else if(InBizz[PlayerToFind[i]] != 0 && GetPlayerInterior(PlayerToFind[i]) != 0)
- {
- SetPlayerCheckpoint(i, BizzData[InBizz[PlayerToFind[i]]][bEntranceX], BizzData[InBizz[PlayerToFind[i]]][bEntranceY], BizzData[InBizz[PlayerToFind[i]]][bEntranceZ], 6);
- return 1;
- }
- else if(InHQ[PlayerToFind[i]] != 0 && GetPlayerInterior(PlayerToFind[i]) != 0)
- {
- switch(InHQ[PlayerToFind[i]])
- {
- case 1:
- {
- CP[i] = 385;
- SetPlayerCheckpoint(i, 1541.8402,-1675.0847,13.5533,5.0);
- }
- case 2:
- {
- CP[i] = 385;
- SetPlayerCheckpoint(i, 332.2330,-1515.9069,35.8672,5.0);
- }
- case 3:
- {
- CP[i] = 385;
- SetPlayerCheckpoint(i, 199.2403,1810.6952,17.6406,5.0);
- }
- case 4:
- {
- CP[i] = 385;
- SetPlayerCheckpoint(i, 1184.2267,-1323.4495,13.5750,5.0);
- }
- case 5:
- {
- CP[i] = 385;
- SetPlayerCheckpoint(i, 1484.7910,-1730.9409,6.7187,5.0);
- }
- case 6:
- {
- CP[i] = 385;
- SetPlayerCheckpoint(i, 1642.2660,-2335.1223,13.5469,5.0);
- }
- case 7:
- {
- CP[i] = 385;
- SetPlayerCheckpoint(i, 951.0085,1736.6096,8.6484,5.0);
- }
- case 8:
- {
- CP[i] = 385;
- SetPlayerCheckpoint(i, 1065.9196,-330.0515,73.9922,5.0);
- }
- case 9:
- {
- CP[i] = 385;
- SetPlayerCheckpoint(i, 1240.1818,-1828.5950,13.4059,5.0);
- }
- case 10:
- {
- CP[i] = 385;
- SetPlayerCheckpoint(i, 912.7196,-1254.0244,15.6798,5.0);
- }
- case 11:
- {
- CP[i] = 385;
- SetPlayerCheckpoint(i, 2495.2285,-1683.1901,13.3388,5.0);
- }
- case 12:
- {
- CP[i] = 385;
- SetPlayerCheckpoint(i, 2185.9377,1676.9407,11.0960,5.0);
- }
- case 13:
- {
- CP[i] = 385;
- SetPlayerCheckpoint(i, 2228.8982,-1159.3516,25.7988,5.0);
- }
- case 14:
- {
- CP[i] = 385;
- SetPlayerCheckpoint(i, 725.6159,-1446.5382,17.6953,5.0);
- }
- case 15:
- {
- CP[i] = 385;
- SetPlayerCheckpoint(i, 2023.5360,1007.3212,10.8203,5.0);
- }
- case 16:
- {
- CP[i] = 385;
- SetPlayerCheckpoint(i, 1131.9651,-2036.8180,69.0078,5.0);
- }
- case 17:
- {
- CP[i] = 385;
- SetPlayerCheckpoint(i, 1773.3737,-2030.0369,13.4950,5.0);
- }
- case 18:
- {
- CP[i] = 385;
- SetPlayerCheckpoint(i, 1481.0828,-1764.4248,18.7958,5.0);
- }
- }
- return 1;
- }
- else
- {
- GetPlayerPos(PlayerToFind[i], X,Y,Z);
- SetPlayerCheckpoint(i, X,Y,Z, 6);
- }
- //new Float:X,Float:Y,Float:Z;
- //GetPlayerPos(PlayerToFind[i], X, Y, Z);
- //SetPlayerCheckpoint(i, X, Y, Z, 5);
- }
- }
- }
- if(MedicCallTime[i] > 0)
- {
- if(MedicCallTime[i] == 30) { MedicCallTime[i] = 0; DisablePlayerCheckpoint(i); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~r~RedMarker gone", 2500, 1); }
- else
- {
- format(string, sizeof(string), "%d", 30 - MedicCallTime[i]);
- GameTextForPlayer(i, string, 1500, 6);
- MedicCallTime[i] += 1;
- }
- }
- if(RemorcariCallTime[i] > 0)
- {
- if(RemorcariCallTime[i] == 30) { RemorcariCallTime[i] = 0; DisablePlayerCheckpoint(i); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~r~RedMarker gone", 2500, 1); }
- else
- {
- format(string, sizeof(string), "%d", 30 - RemorcariCallTime[i]);
- GameTextForPlayer(i, string, 1500, 6);
- RemorcariCallTime[i] += 1;
- }
- }
- if(MechanicCallTime[i] > 0)
- {
- if(MechanicCallTime[i] == 30) { MechanicCallTime[i] = 0; DisablePlayerCheckpoint(i); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~r~RedMarker gone", 2500, 1); }
- else
- {
- format(string, sizeof(string), "%d", 30 - 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~Ai rupt catusele, esti liber!", 2500, 3);
- TogglePlayerControllable(i, 1);
- PlayerCuffed[i] = 0;
- PlayerCuffedTime[i] = 0;
- }
- else
- {
- PlayerCuffedTime[i] -= 1;
- }
- }
- /* if(PlayerToPoint(20, i,2015.4500,1017.0900,996.8750))
- {//Four Dragons
- GameTextForPlayer(i, "~r~Closed", 5000, 1);
- SetPlayerInterior(i, 0);
- SetPlayerPosEx(i,1022.599975,-1123.699951,23.799999);
- }
- else if(PlayerToPoint(20, i,2233.9099,1710.7300,1011.2987))
- {//Caligula
- GameTextForPlayer(i, "~r~Closed", 5000, 1);
- SetPlayerInterior(i, 0);
- SetPlayerPosEx(i,1022.599975,-1123.699951,23.799999);
- }
- else if(PlayerToPoint(10, i,2265.7900,1619.5800,1090.4453))
- {//Caligula Roof 1
- GameTextForPlayer(i, "~r~Closed", 5000, 1);
- SetPlayerInterior(i, 0);
- SetPlayerPosEx(i,1022.599975,-1123.699951,23.799999);
- }
- else if(PlayerToPoint(10, i,2265.7800,1675.9301,1090.4453))
- {//Caligula Roof 2
- GameTextForPlayer(i, "~r~Closed", 5000, 1);
- SetPlayerInterior(i, 0);
- SetPlayerPosEx(i,1022.599975,-1123.699951,23.799999);
- }
- else if(PlayerToPoint(20, i,1133.0699,-9.5731,1000.6797))
- {//West Casino place
- GameTextForPlayer(i, "~r~Closed", 5000, 1);
- SetPlayerInterior(i, 0);
- SetPlayerPosEx(i,1022.599975,-1123.699951,23.799999);
- } */
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment