Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
- new newcar = GetPlayerVehicleID(playerid);
- new gun1 = GetPlayerWeapon(playerid);
- new gunname1[24];
- GetWeaponName(gun1,gunname1,sizeof(gunname1));
- if(IsKeyJustDown(KEY_HANDBRAKE,newkeys,oldkeys))
- {
- StopLoopingAnim(playerid);
- TextDrawHideForPlayer(playerid,txtAnimHelper);
- animation[playerid] = 0;
- }
- //=============================================================================//
- if((newkeys & KEY_YES))
- {
- if(IsPlayerInRangeOfPoint(playerid, 10.0, 1497.6473,-1533.3241,1052.2877))
- {
- if (GetPlayerMoney(playerid) <= KupovnaCena)
- {
- GameTextForPlayer(playerid, "~r~Nemate dovoljno novca", 5000, 1);
- return 1;
- }
- format(string, sizeof(string), "* Kupili ste 1 zlatnik za $%d.", KupovnaCena);
- SendClientMessage(playerid, COLOR_WHITE, string);
- PlayerInfo[playerid][pZlato] += 1;
- KupovnaCena++;
- ProdajnaCena++;
- SafeGivePlayerMoney(playerid, -KupovnaCena);
- new berzastr[300];
- format(berzastr, sizeof(berzastr), "{F3FF02}ZLATARA\n[ /BUYGOLD ili Y ]\n[ /SELLGOLD ili N ]\n[ /GOLDHELP ]\nKupovna cena zlata: %d / g\nProdajna cena zlata: %d / g", KupovnaCena, ProdajnaCena);
- Update3DTextLabelText(berza, 0x00FFF9FF, berzastr);
- }
- SaveBerza();
- return 1;
- }
- if((newkeys & KEY_NO))
- {
- if(IsPlayerInRangeOfPoint(playerid, 10.0, 1497.6473,-1533.3241,1052.2877))
- {
- if(PlayerInfo[playerid][pZlato] >= 1)
- {
- format(string, sizeof(string), "* Prodali ste 1 zlatnik za $%d.", ProdajnaCena);
- SendClientMessage(playerid, COLOR_WHITE, string);
- PlayerInfo[playerid][pZlato] -= 1;
- ProdajnaCena--;
- KupovnaCena--;
- SafeGivePlayerMoney(playerid, ProdajnaCena);
- new berzastr1[300];
- format(berzastr1, sizeof(berzastr1), "{F3FF02}ZLATARA\n[ /BUYGOLD ili Y ]\n[ /SELLGOLD ili N ]\n[ /GOLDHELP ]\nKupovna cena zlata: %d / g\nProdajna cena zlata: %d / g", KupovnaCena, ProdajnaCena);
- Update3DTextLabelText(berza, 0x00FFF9FF, berzastr1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nemate zlata!");
- }
- }
- SaveBerza();
- return 1;
- }
- //========================================================================//
- else if ((newkeys & KEY_SPRINT))
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsWanking[playerid] == 1)
- {
- if(JustWanked[playerid] == 0)
- {
- JustWanked[playerid] = 1;
- ApplyAnimation(playerid,"PAULNMAC","wank_loop",4.1,0,1,1,1,0);
- TimesWanked[playerid] ++;
- SetTimerEx("ResetWank",2000,0,"i",playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "* Ti si 'dotaknuo svoj tralalalala' nedavno, pricekaj nekoliko sekundi!");
- return 1;
- }
- }
- else if(GivingBlowjob[playerid] == 1)
- {
- ApplyAnimation(playerid,"BLOWJOBZ","BJ_COUCH_LOOP_W",4.1,0,0,0,1,0);
- }
- else if (OfficerCourseStep[playerid] != 255)
- {
- if(OfficerCourseStep[playerid] == 1)
- {
- OfficerCourseStep[playerid] = 1;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- City Hall Police Academy ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"Welcome to the Optional Officer Test Course, offered by the City Hall of Los Santos");
- SendClientMessage(playerid, COLOR_WHITE,"Here, you will have a Course of not more than 15 Minutes to Learn how to be a Security Guard");
- SendClientMessage(playerid, COLOR_WHITE,"You will be teach on how to arrest a suspect, What to do, What to not do, And what could happen...");
- SendClientMessage(playerid, COLOR_WHITE,"Pay atention to the course carefully, You will be requiered to take a test later to get a Cop License");
- SendClientMessage(playerid, COLOR_WHITE,"The Test will have Ten Questions, you will be requiered to Answer 9 Correct to Pass, else you'll fail");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 2)
- {
- OfficerCourseStep[playerid] = 1;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- Brief Explanation of the Job ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"As Security Guard, you will have rights to wear an Uniform and carry Statal Issued Weapons.");
- SendClientMessage(playerid, COLOR_WHITE,"Abusing your weapons (Using them to DM) will result in a Suspension from Cop Duty.");
- SendClientMessage(playerid, COLOR_WHITE,"If you are suspended from cop duty, you wont be able to use your Security Guards Rights anymore till unbaned.");
- SendClientMessage(playerid, COLOR_WHITE,"As Officer, you will have to arrest all the Suspects (Orange), But Be careful! Do not Metagame!");
- SendClientMessage(playerid, COLOR_WHITE,"You will be able to open the doors of the LSPD, drive their cars and Use some commands such /radio");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 3)
- {
- OfficerCourseStep[playerid] = 2;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- What to do as a Security Guard ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"As Security Guard, Your job will be to take minor suspects into Custody with your Weapons (If Needed).");
- SendClientMessage(playerid, COLOR_WHITE,"You will be allowed to issue tickets, which will be your mayor job on the position apart of arresting.");
- SendClientMessage(playerid, COLOR_WHITE,"You can get hired as a security guard to secure places, BUT this requieres an officer approval first.");
- SendClientMessage(playerid, COLOR_WHITE,"You must bring Suspects (Oranges) down to the jail, Once they Surrender (Dark Orange) You may not attack them.");
- SendClientMessage(playerid, COLOR_WHITE,"You must use your RADIO to comunicate with the other officers if you are in trouble, always.");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 4)
- {
- OfficerCourseStep[playerid] = 3;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- What to NOT do as a Security Guard ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"As Security Guard, Your job wont be to take bribes and help criminals to fight the police or civilians.");
- SendClientMessage(playerid, COLOR_WHITE,"You are not allowed to issue tickets for no random reason nor abuse your /suspect Command for no reason.");
- SendClientMessage(playerid, COLOR_WHITE,"You may not take the cars and make a ferris wheel with them or leave then abandoned in the middle of nowhere.");
- SendClientMessage(playerid, COLOR_WHITE,"You may not use your weapons and cars to Deathmatch and carkill with them, that can lead to a server ban.");
- SendClientMessage(playerid, COLOR_WHITE,"You may not act like rambo and kill any suspect that you see on your TAB list, This is a roleplay server remember.");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 5)
- {
- OfficerCourseStep[playerid] = 4;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- What can happen as a Corrupt Cop ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"You are considered corrupt if you break any server rule or law while carrying your uniform and are on duty.");
- SendClientMessage(playerid, COLOR_WHITE,"As a corrupt freecop, you can be hunted by the real police, the FBI or the Army if its really serious.");
- SendClientMessage(playerid, COLOR_WHITE,"If the police can't catch you, the administrators or the higher LEO will proceed to suspend you from cop duty.");
- SendClientMessage(playerid, COLOR_WHITE,"Repeatdely abuse of your weaponry / rights will lead to a server ban for Script Abuse, Deathmatching and Provoking.");
- SendClientMessage(playerid, COLOR_WHITE,"You can get Suspended from Active duty for more than a month, so be careful with your decissions, always.");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 6)
- {
- OfficerCourseStep[playerid] = 5;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- What can happen as a Good Cop ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"You are considered a good cop if you don't break any law or server rule while on duty and you follow the protocol.");
- SendClientMessage(playerid, COLOR_WHITE,"As a good cop, your chances of being invited to the LSPD or getting accepted get increased a lot, by showing experience.");
- SendClientMessage(playerid, COLOR_WHITE,"As a non abusive cop, administrators will gain a good look of you and will start to trust you, even to make you a helper.");
- SendClientMessage(playerid, COLOR_WHITE,"If owners sees that you are good enough, they can even make you a platinium regular or master helper, or even a moderator.");
- SendClientMessage(playerid, COLOR_WHITE,"All these things can happen, so be careful with your decissions and take the correct ones, always!.");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 7)
- {
- OfficerCourseStep[playerid] = 6;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- How to arrest a Suspect ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"First ask him to surrender, if he doesn't use the non lethal force until he surrenders, if he doesn't proceed to kill him.");
- SendClientMessage(playerid, COLOR_WHITE,"Once he surrenders, he will become in a darker orange name, so don't let them fool you, look at the radio and their names.");
- SendClientMessage(playerid, COLOR_WHITE,"Read his rights (/mir) And take him to the LSPD, if he tries to escape kill or report him to the administration, your choice.");
- SendClientMessage(playerid, COLOR_WHITE,"Once you are done with the processing, proceed to jail him depending the severity of his crime, 1-5 minutes, always be fair.");
- SendClientMessage(playerid, COLOR_WHITE,"If he asks for a lawyer, you must stay until the lawyer arrives to the PD and start the discussion about the crime.");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 8)
- {
- OfficerCourseStep[playerid] = 7;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- How to Take down a suspect ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"If the suspect decides to use the force on you, by shooting you, you are allowed to shoot back without warning.");
- SendClientMessage(playerid, COLOR_WHITE,"Due the SA:MP Lag & Desync, always shoot to where he is heading, if he has low ping, depends on the ping.");
- SendClientMessage(playerid, COLOR_WHITE,"If there are more than two suspects and you are alone, RETREAT and call for backup, act like rambo if needed");
- SendClientMessage(playerid, COLOR_WHITE,"Do not waste your bullets on useless shoots, only fire if you are sure that you will give the suspect.");
- SendClientMessage(playerid, COLOR_WHITE,"To prevent them of escaping you can destroy the tires of their cars or shoot them thru the front glass.");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 9)
- {
- OfficerCourseStep[playerid] = 8;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- How to rush to a place ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"If the suspect decides to hide on an interior, call for backup, you don't know if he is going to shoot you when you get in or not.");
- SendClientMessage(playerid, COLOR_WHITE,"If backups arrives, always follow your superiors' orders, if they tell you to stay outside, stay there and do not act like rambo.");
- SendClientMessage(playerid, COLOR_WHITE,"If they tell you to rush with them, take their weapons and NEVER get away from them, do not act like rambo and the team.");
- SendClientMessage(playerid, COLOR_WHITE,"Before entering, its recommended to pop the suspect(s)'s cars tires, get in the car and tell someone else to shoot the tires.");
- SendClientMessage(playerid, COLOR_WHITE,"After all if they try to escape, use your weapon, shoot at them until they decide to surrender, if they don't, kill them");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 10)
- {
- OfficerCourseStep[playerid] = 9;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- Some tips to be a great cop ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"Never give too high tickets, but not too low ones, if you give too much, people will hate, else they will think you are a fool.");
- SendClientMessage(playerid, COLOR_WHITE,"In a chase, use the tactic named 'lag pit', drive a bit ahead the suspect and try to ram them out of the road so you can slow them.");
- SendClientMessage(playerid, COLOR_WHITE,"If you are in an helicopter, always report yourself to the ATC and never Fly low, in case you are in low HP and kill everyone.");
- SendClientMessage(playerid, COLOR_WHITE,"Try to keep your Humour Sense and your Humour to the maximun, people will love that you threat them well and make a joke or two.");
- SendClientMessage(playerid, COLOR_WHITE,"Never do jokes such 'Pullover this is a cavity Search' or 'You're under arrest for being black', people hates such jokes.");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 11)
- {
- OfficerCourseStep[playerid] = 10;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- How people will hate you ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"People will hate you if you always break the laws while on duty, such shooting to the air or wrecklessing driving.");
- SendClientMessage(playerid, COLOR_WHITE,"If you give someone a ticket for speeding, then you leave speeding, people will hate because you will abuse your sirens.");
- SendClientMessage(playerid, COLOR_WHITE,"Never exceed the ticket price, or the jail time, if someone pees on the plaza, doesn't means that you can give him 5 mins.");
- SendClientMessage(playerid, COLOR_WHITE,"Never abuse the suspect in any manner, sexually or phsycally, do not try to rape or hit them after they gave up, its DM...");
- SendClientMessage(playerid, COLOR_WHITE,"Doing jokes as suspect reasons or pulling someone for no reason can be annoying, people wont like you if you do that.");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 12)
- {
- OfficerCourseStep[playerid] = 11;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- The End, Good Job! ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"Finally we arrived to the end, this means that if you payed enough atention you're ready for the test.");
- SendClientMessage(playerid, COLOR_WHITE,"The test for having a cop license will cost you 5000$, failed or passed you'll have to pay.");
- SendClientMessage(playerid, COLOR_WHITE,"If you pass, you will have the right to wear an uniform and call yourself a security officer.");
- SendClientMessage(playerid, COLOR_WHITE,"You need a driving license to do the test of course, and a passport to prevent illegal immigrants of this.");
- SendClientMessage(playerid, COLOR_WHITE,"Good luck with your test, we hope to see an officer like you in the future watching the streets!.");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- }
- if (IsPlayerInRangeOfPoint(playerid, 2, 358.2500,180.3491,1008.3828))
- {// freecop test
- GameTextForPlayer(playerid, "~w~Koristi ~g~/officertest ~w~kako bi pokupio test za casnika ~g~($5000)", 5000, 5);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 2, 358.2368,165.3652,1008.3828))
- {// officer information
- GameTextForPlayer(playerid, "~w~Koristi ~g~/officercourse ~w~kako bi zapoceo test za casnika ~g~($2500)", 5000, 5);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 2, 2029.5945,-1404.6426,17.2512))
- {// Hospital near speedway
- GameTextForPlayer(playerid, "~w~Koristi /healme za izlijecenje", 5000, 5);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 2, 349.5560,161.6693,1019.9912))
- {// All Saints hospital
- GameTextForPlayer(playerid, "~w~Koristi /healme za izlijecenje", 5000, 5);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 2, 523.6057,-1812.9794,6.5713) || IsPlayerInRangeOfPoint(playerid, 2, 1424.1729,-1317.9955,13.5547))
- {//Buyable Drugs for Drug Dealers
- GameTextForPlayer(playerid, "~w~Koristi /get drugs, da uzmes nesto ~r~Droge~y~~n~Skill Level utjece na cijenu", 5000, 3);
- }
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,-792.9693,500.5572,1367.3672))
- {
- if(PlayerInfo[playerid][pJob] > 18) {}
- else { GameTextForPlayer(playerid, "~y~Konobar ~w~Mjesto za Oblacenje ~r~2 ~n~~y~Koristi /cookuniform list", 5000, 3); }
- }
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,-779.3134,497.8989,1371.7490))
- {
- if(PlayerInfo[playerid][pJob] > 18) {}
- else { GameTextForPlayer(playerid, "~y~Konobar ~w~Mjesto za Oblacenje ~r~1 ~n~~y~Koristi /cookuniform list", 5000, 3); }
- }
- else if (IsPlayerInRangeOfPoint(playerid, 2, 1488.6949,-1721.7136,8.2067))
- {
- GameTextForPlayer(playerid, "~w~Crno ~r~Trziste", 5000, 3);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, 358.2374,161.3243,1008.3828))
- {
- GameTextForPlayer(playerid, "~y~-City Hall- ~n~~n~~w~Koristi ~g~/taketest ~w~kako bi pokrenuo test za putovnicu. (Besplatno)", 5000, 3);
- }
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,1215.1304,-11.8431,1000.9219))
- {
- GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Whore~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
- }
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,1793.02,-1296.56,13.44))
- {
- if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) { GameTextForPlayer(playerid, "~w~Type ~r~/paper ~w~to create a newspaper",5000,3); }
- else if(PlayerInfo[playerid][pJob] == 15) { GameTextForPlayer(playerid, "~w~Type ~r~/papers ~w~to see all the made newspapers",5000, 3); }
- }
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,213.8549,-230.5761,1.7786))
- {
- GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Materials smuggler~n~~w~Type /join if you wish to become one", 5000, 3);
- }
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,2072.5486,-1582.8029,13.4741))
- {
- GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Drugs Dealer~y~~n~~w~Type /join if you wish to become one", 5000, 3);
- }
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,-86.1251,2.6412,3.1172))
- {
- GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Drugs Farmer~y~~n~~w~Type /join if you wish to become one", 5000, 3);
- }
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,2137.6624,-2282.3455,20.6719))
- {
- GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Gun Maker~y~~n~~w~Type /join if you wish to become one", 5000, 3);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 2,379.1396,-114.2661,1001.4922))
- {// Pizza Pickup
- if (PlayerInfo[playerid][pJob] != 17)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a pizza stack worker");
- return 1;
- }
- if (sPizza[playerid] != 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You have picked a cooked pizza, wait for orders");
- sPizza[playerid] = 1;
- }
- }
- else if (IsPlayerInRangeOfPoint(playerid, 2,1174.9100,-1365.7330,13.9876))
- {
- if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { SetTimerEx("elevator1", 1000, false, "i", playerid); }
- else { GameTextForPlayer(playerid, "~r~You can not use an elevator", 5000, 3); }
- }
- else if (IsPlayerInRangeOfPoint(playerid, 2,1174.9591,-1369.8761,23.9736))
- {
- if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { SetTimerEx("elevator2", 1000, false, "i", playerid); }
- else { GameTextForPlayer(playerid, "~r~You can not use an elevator", 5000, 3); }
- }
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,1505.2416,-1694.5597,14.0469))
- {
- GameTextForPlayer(playerid, "~y~Mozete pronaci u novinama puno toga~n~pisi ~r~/novine ~y~da procitate ih", 5000, 3);
- }
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,362.1231,173.6424,1008.3828))
- {
- GameTextForPlayer(playerid, "~w~For Legal Job list~n~ Type: ~r~/Legaljobs", 5000, 3);
- }
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,1490.3195,1305.6976,1093.2964))
- {
- GameTextForPlayer(playerid, "~w~For Buyable License~n~ Type: ~r~/License", 5000, 3);
- }
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 1,249.8574,67.8508,1003.6406))
- {
- GameTextForPlayer(playerid, "~w~Buyable Weapon Licenses~n~ Type: ~r~/buygunlic ~n~~w~[Costs ~g~20,500$~w~]", 5000, 3);
- }
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,359.6820,207.0294,1008.3828))
- {
- GameTextForPlayer(playerid, "~w~Advertisment business~n~Owner: BBC Studio~n~Post your ~g~/ad~w~ here", 5000, 3);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 3,-38.8664,56.3031,3.1172))
- {
- if(PlayerInfo[playerid][pJob] == 19)
- {
- format(string, sizeof(string), "~r~Drugs ammount: %d", drugsys[DrugAmmount]);
- GameTextForPlayer(playerid, string, 5000, 3);
- }
- else if(PlayerInfo[playerid][pJob] == 20)
- {
- format(string, sizeof(string), "~w~Drugs Farm~n~Farm Owner: Yakuza~n~Drugs ammount:~r~ %d~n~~w~You can /smuggledrugs here", drugsys[DrugAmmount]);
- GameTextForPlayer(playerid, string, 5000, 3);
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Staff only!", 5000, 3);
- }
- }
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,2022.1492,-1108.7837,26.2031))
- {
- GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Drugs Smuggler~y~~n~~w~Type /join if you wish to become one", 5000, 3);
- }
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,242.7591,66.4315,1003.6406))
- {
- if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pAdmin] >= 5 && PlayerInfo[playerid][pAdminDuty] == 1)
- {
- GameTextForPlayer(playerid, "~g~Police Department Dizalo~n~~w~Koristi ~r~/pdup ~w~kako bi isao gore~n~Koristi ~r~/pddown ~w~za dolje", 5000, 3);
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Staff only!", 5000, 3);
- }
- }
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 3,25.1811,1968.5167,17.6406))
- {
- GameTextForPlayer(playerid, "~w~Dobrodosli,~n~~w~Mozes letjeti u ~r~Los Santos. ~n~~w~Koristie ~y~/flyls ~w~ako zelis letjeti ovim avionom. ~g~$250", 5000, 3);
- }
- //-----------------------------------------------------------------------------------------------------------------------------------------------
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 1,231.4331,140.4850,1003.0234))
- {
- if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pAdmin] >= 5 && PlayerInfo[playerid][pAdminDuty] == 1)
- {
- GameTextForPlayer(playerid, "~g~FBI Headquarters elevator~n~~w~Type ~r~/hqroof ~w~to go up~n~Type ~r~/hqdown ~w~to go down", 5000, 3);
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Staff only!", 5000, 3);
- }
- }
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 1,1510.6852,-1458.0654,9.5000))
- {
- if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pAdmin] >= 5 && PlayerInfo[playerid][pAdminDuty] == 1)
- {
- GameTextForPlayer(playerid, "~g~FBI Headquarters elevator~n~~w~Type ~r~/hqin ~w~to go inside~n~Type ~r~/hqroof ~w~to go to the roofs", 5000, 3);
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Staff only!", 5000, 3);
- }
- }
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 1,1494.3761,-1467.0068,40.5234))
- {
- if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pAdmin] >= 5 && PlayerInfo[playerid][pAdminDuty] == 1)
- {
- GameTextForPlayer(playerid, "~g~FBI Headquarters elevator~n~~w~Type ~r~/hqin ~w~to go inside~n~Type ~r~/hqdown ~w~to go to the garage", 5000, 3);
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Staff only!", 5000, 3);
- }
- }
- //-----------------------------------------------------------------------------------------------------------------------------------------------
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 3,255.4480,85.8236,1002.4453))
- {
- if(IsACop(playerid))
- {
- GameTextForPlayer(playerid, "~b~Los Santos Police Department~n~~w~Type ~r~/arrest ~w~To arrest your Suspect.", 5000, 3);
- }
- else
- {
- GameTextForPlayer(playerid,"~r~Nisi policajac, What are you Doing Here?!",4000,4);
- }
- }
- //-----------------------------------------------------------------------------------------------------------------------------------------------
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 3,201.0256,168.3393,1003.0234))
- {
- if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
- {
- GameTextForPlayer(playerid, "~b~Federal Bureau of ivnestigation~n~~w~Type ~r~/farrest ~w~To arrest your Suspect.", 5000, 3);
- }
- else
- {
- GameTextForPlayer(playerid,"~r~You are not an FBI, What are you Doing Here?!",4000,4);
- }
- }
- //-----------------------------------------------------------------------------------------------------------------------------------------------
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 3,222.2311,121.3434,999.0239))
- {
- if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
- {
- GameTextForPlayer(playerid, "~b~Los Santos Army~n~~w~Type ~r~/sarrest ~w~To arrest your Suspect.", 5000, 3);
- }
- else
- {
- GameTextForPlayer(playerid,"~r~You are not a Soldier, What are you Doing Here?!",4000,4);
- }
- }
- //-----------------------------------------------------------------------------------------------------------------------------------------------
- else if (GetPlayerState(playerid) == 2 && IsPlayerInRangeOfPoint(playerid, 3,2073.2979,-1831.1228,13.5469) || GetPlayerState(playerid) == 2 && IsPlayerInRangeOfPoint(playerid, 3,1024.9756,-1030.7930,32.0257) || GetPlayerState(playerid) == 2 && IsPlayerInRangeOfPoint(playerid, 3,488.3819,-1733.0563,11.1752) || GetPlayerState(playerid) == 2 && IsPlayerInRangeOfPoint(playerid, 3,719.8940,-464.8272,16.3359))
- {
- format(string, sizeof(string), "~y~Pay ~r~& ~g~Spray~w~~n~Vlasnik : %s~n~Naknada za ulaz : ~g~$%d ~w~~n~za ulazak Koristi /enter",SBizzInfo[5][sbOwner],SBizzInfo[5][sbEntranceCost]);
- GameTextForPlayer(playerid, string, 5000, 3);
- }
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 1.5, 248.4994,-33.1366,1.5781))
- {
- if(PlayerInfo[playerid][pJob] == 22)
- {
- GameTextForPlayer(playerid, "~w~Materials factory~n~You can ~r~/smugglemats ~w~here", 5000, 3);
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Staff only !", 5000, 3);
- }
- }
- else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 1.5, 2230.3579,-2286.2107,14.3751))
- {
- if(PlayerInfo[playerid][pJob] == 22)
- {
- format(string, sizeof(string), "~w~Materials Bank~n~Materials ammount: ~r~%d", matssys[MatsAmmount]);
- GameTextForPlayer(playerid, string, 5000, 3);
- }
- else if(PlayerInfo[playerid][pJob] == 23)
- {
- format(string, sizeof(string), "~w~Materials Bank~n~Materials ammount: ~r~%d ~n~~w~You can ~g~/buymats ~w~here", matssys[MatsAmmount]);
- GameTextForPlayer(playerid, string, 5000, 3);
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Staff only !", 5000, 3);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2,1073.0619,-344.5148,73.9922))
- {
- if(OrderReady[playerid] > 0)
- {
- switch (OrderReady[playerid])
- {
- case 1:
- {
- SafeGivePlayerWeapon(playerid, 24, 50); SafeGivePlayerWeapon(playerid, 29, 500); SafeGivePlayerWeapon(playerid, 25, 50); SafeGivePlayerWeapon(playerid, 4, 1);
- SafeGivePlayerMoney(playerid, - 5000);
- SendClientMessage(playerid, COLOR_WHITE, "* You picked up your Ordered Package.");
- }
- case 2:
- {
- SafeGivePlayerWeapon(playerid, 24, 50); SafeGivePlayerWeapon(playerid, 29, 500); SafeGivePlayerWeapon(playerid, 25, 50); SafeGivePlayerWeapon(playerid, 31, 500); SafeGivePlayerWeapon(playerid, 4, 1);
- SafeGivePlayerMoney(playerid, - 6000);
- SendClientMessage(playerid, COLOR_WHITE, "* You picked up your Ordered Package.");
- }
- case 3:
- {
- SafeGivePlayerWeapon(playerid, 24, 50); SafeGivePlayerWeapon(playerid, 29, 500); SafeGivePlayerWeapon(playerid, 25, 50); SafeGivePlayerWeapon(playerid, 30, 500); SafeGivePlayerWeapon(playerid, 4, 1);
- SafeGivePlayerMoney(playerid, - 6000);
- SendClientMessage(playerid, COLOR_WHITE, "* You picked up your Ordered Package.");
- }
- case 4:
- {
- SafeGivePlayerWeapon(playerid, 24, 50); SafeGivePlayerWeapon(playerid, 29, 500); SafeGivePlayerWeapon(playerid, 25, 50); SafeGivePlayerWeapon(playerid, 31, 500); SafeGivePlayerWeapon(playerid, 4, 1); SafeGivePlayerWeapon(playerid, 34, 20);
- SafeGivePlayerMoney(playerid, - 8000);
- SendClientMessage(playerid, COLOR_WHITE, "* You picked up your Ordered Package.");
- }
- case 5:
- {
- SafeGivePlayerWeapon(playerid, 24, 50); SafeGivePlayerWeapon(playerid, 29, 500); SafeGivePlayerWeapon(playerid, 25, 50); SafeGivePlayerWeapon(playerid, 30, 500); SafeGivePlayerWeapon(playerid, 4, 1); SafeGivePlayerWeapon(playerid, 34, 20);
- SafeGivePlayerMoney(playerid, - 8000);
- SendClientMessage(playerid, COLOR_WHITE, "* You picked up your Ordered Package.");
- }
- case 6:
- {
- SafeGivePlayerWeapon(playerid, 24, 50); SafeGivePlayerWeapon(playerid, 29, 500); SafeGivePlayerWeapon(playerid, 25, 50); SafeGivePlayerWeapon(playerid, 31, 500); SafeGivePlayerWeapon(playerid, 4, 1); SafeGivePlayerWeapon(playerid, 34, 20);
- SafeGivePlayerMoney(playerid, - 8500);
- SendClientMessage(playerid, COLOR_WHITE, "* You picked up your Ordered Package.");
- }
- case 7:
- {
- SafeGivePlayerWeapon(playerid, 24, 50); SafeGivePlayerWeapon(playerid, 29, 500); SafeGivePlayerWeapon(playerid, 25, 50); SafeGivePlayerWeapon(playerid, 30, 500); SafeGivePlayerWeapon(playerid, 4, 1); SafeGivePlayerWeapon(playerid, 34, 20);
- SafeGivePlayerMoney(playerid, - 8500);
- SendClientMessage(playerid, COLOR_WHITE, "* You picked up your Ordered Package.");
- }
- }
- OrderReady[playerid] = 0;
- }
- }
- }
- }
- else if ((newkeys & KEY_SECONDARY_ATTACK))
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- if(gEngine[playerid] == 0 && engineOn[newcar] == 0)
- {
- SafeRemovePlayerFromVehicle(playerid);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- else if(NoFuel[playerid] == 1)
- {
- TogglePlayerControllable(playerid, 1);
- SafeRemovePlayerFromVehicle(playerid);
- NoFuel[playerid] = 0;
- return 1;
- }
- }
- if(!IsPlayerInAnyVehicle(playerid))
- {
- if(GetPlayerSpecialAction(playerid) == 20)
- {
- PlayerDrankBeer[playerid] = 0;
- }
- else if(GetPlayerSpecialAction(playerid) == 22)
- {
- PlayerDrankWine[playerid] = 0;
- }
- else if(GetPlayerSpecialAction(playerid) == 23)
- {
- PlayerDrankSprunk[playerid] = 0;
- }
- else if(GetPlayerSpecialAction(playerid) == 21)
- {
- PlayerSmokedCig[playerid] = 0;
- IsSmoking[playerid] = 0;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pSex] == 1) { format(string, sizeof(string), "* %s uzima cigaretu iz usta i baca ju na pod.", sendername); }
- else { format(string, sizeof(string), "* %s uzima cigaretu iz usta i baca ju na pod.", sendername); }
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- if(UsingSmokeAnim[playerid] == 1)
- {
- ClearAnimations(playerid);
- }
- }
- }
- if(IsAtCandySprunk(playerid))
- {
- if(TookSprunk[playerid] == 0)
- {
- new Float:health;
- GetPlayerHealth(playerid, health);
- if(health != 0)
- {
- SetRealMoney(playerid, (ScriptMoney[playerid] - 25));
- SendClientMessage(playerid, COLOR_GREY, "* Platio si 25$ automatu");
- TookSprunk[playerid] = 1;
- SetTimerEx("SetHP",3750,false, "i", playerid);
- }
- }
- }
- if (OfficerCourseStep[playerid] != 255)
- {
- if(OfficerCourseStep[playerid] == 1)
- {
- OfficerCourseStep[playerid] = 2;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- Brief Explanation of the Job ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"As Security Guard, you will have rights to wear an Uniform and carry Statal Issued Weapons.");
- SendClientMessage(playerid, COLOR_WHITE,"Abusing your weapons (Using them to DM) will result in a Suspension from Cop Duty.");
- SendClientMessage(playerid, COLOR_WHITE,"If you are suspended from cop duty, you wont be able to use your Security Guards Rights anymore till unbaned.");
- SendClientMessage(playerid, COLOR_WHITE,"As Officer, you will have to arrest all the Suspects (Orange), But Be careful! Do not Metagame!");
- SendClientMessage(playerid, COLOR_WHITE,"You will be able to open the doors of the LSPD, drive their cars and Use some commands such /radio");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 2)
- {
- OfficerCourseStep[playerid] = 3;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- What to do as a Security Guard ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"As Security Guard, Your job will be to take minor suspects into Custody with your Weapons (If Needed).");
- SendClientMessage(playerid, COLOR_WHITE,"You will be allowed to issue tickets, which will be your mayor job on the position apart of arresting.");
- SendClientMessage(playerid, COLOR_WHITE,"You can get hired as a security guard to secure places, BUT this requieres an officer approval first.");
- SendClientMessage(playerid, COLOR_WHITE,"You must bring Suspects (Oranges) down to the jail, Once they Surrender (Dark Orange) You may not attack them.");
- SendClientMessage(playerid, COLOR_WHITE,"You must use your RADIO to comunicate with the other officers if you are in trouble, always.");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 3)
- {
- OfficerCourseStep[playerid] = 4;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- What to NOT do as a Security Guard ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"As Security Guard, Your job wont be to take bribes and help criminals to fight the police or civilians.");
- SendClientMessage(playerid, COLOR_WHITE,"You are not allowed to issue tickets for no random reason nor abuse your /suspect Command for no reason.");
- SendClientMessage(playerid, COLOR_WHITE,"You may not take the cars and make a ferris wheel with them or leave then abandoned in the middle of nowhere.");
- SendClientMessage(playerid, COLOR_WHITE,"You may not use your weapons and cars to Deathmatch and carkill with them, that can lead to a server ban.");
- SendClientMessage(playerid, COLOR_WHITE,"You may not act like rambo and kill any suspect that you see on your TAB list, This is a roleplay server remember.");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 4)
- {
- OfficerCourseStep[playerid] = 5;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- What can happen as a Corrupt Cop ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"You are considered corrupt if you break any server rule or law while carrying your uniform and are on duty.");
- SendClientMessage(playerid, COLOR_WHITE,"As a corrupt freecop, you can be hunted by the real police, the FBI or the Army if its really serious.");
- SendClientMessage(playerid, COLOR_WHITE,"If the police can't catch you, the administrators or the higher LEO will proceed to suspend you from cop duty.");
- SendClientMessage(playerid, COLOR_WHITE,"Repeatdely abuse of your weaponry / rights will lead to a server ban for Script Abuse, Deathmatching and Provoking.");
- SendClientMessage(playerid, COLOR_WHITE,"You can get Suspended from Active duty for more than a month, so be careful with your decissions, always.");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 5)
- {
- OfficerCourseStep[playerid] = 6;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- What can happen as a Good Cop ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"You are considered a good cop if you don't break any law or server rule while on duty and you follow the protocol.");
- SendClientMessage(playerid, COLOR_WHITE,"As a good cop, your chances of being invited to the LSPD or getting accepted get increased a lot, by showing experience.");
- SendClientMessage(playerid, COLOR_WHITE,"As a non abusive cop, administrators will gain a good look of you and will start to trust you, even to make you a helper.");
- SendClientMessage(playerid, COLOR_WHITE,"If owners sees that you are good enough, they can even make you a platinium regular or master helper, or even a moderator.");
- SendClientMessage(playerid, COLOR_WHITE,"All these things can happen, so be careful with your decissions and take the correct ones, always!.");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 6)
- {
- OfficerCourseStep[playerid] = 7;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- How to arrest a Suspect ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"First ask him to surrender, if he doesn't use the non lethal force until he surrenders, if he doesn't proceed to kill him.");
- SendClientMessage(playerid, COLOR_WHITE,"Once he surrenders, he will become in a darker orange name, so don't let them fool you, look at the radio and their names.");
- SendClientMessage(playerid, COLOR_WHITE,"Read his rights (/mir) And take him to the LSPD, if he tries to escape kill or report him to the administration, your choice.");
- SendClientMessage(playerid, COLOR_WHITE,"Once you are done with the processing, proceed to jail him depending the severity of his crime, 1-5 minutes, always be fair.");
- SendClientMessage(playerid, COLOR_WHITE,"If he asks for a lawyer, you must stay until the lawyer arrives to the PD and start the discussion about the crime.");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 7)
- {
- OfficerCourseStep[playerid] = 8;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- How to Take down a suspect ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"If the suspect decides to use the force on you, by shooting you, you are allowed to shoot back without warning.");
- SendClientMessage(playerid, COLOR_WHITE,"Due the SA:MP Lag & Desync, always shoot to where he is heading, if he has low ping, depends on the ping.");
- SendClientMessage(playerid, COLOR_WHITE,"If there are more than two suspects and you are alone, RETREAT and call for backup, act like rambo if needed");
- SendClientMessage(playerid, COLOR_WHITE,"Do not waste your bullets on useless shoots, only fire if you are sure that you will give the suspect.");
- SendClientMessage(playerid, COLOR_WHITE,"To prevent them of escaping you can destroy the tires of their cars or shoot them thru the front glass.");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 8)
- {
- OfficerCourseStep[playerid] = 9;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- How to rush to a place ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"If the suspect decides to hide on an interior, call for backup, you don't know if he is going to shoot you when you get in or not.");
- SendClientMessage(playerid, COLOR_WHITE,"If backups arrives, always follow your superiors' orders, if they tell you to stay outside, stay there and do not act like rambo.");
- SendClientMessage(playerid, COLOR_WHITE,"If they tell you to rush with them, take their weapons and NEVER get away from them, do not act like rambo and the team.");
- SendClientMessage(playerid, COLOR_WHITE,"Before entering, its recommended to pop the suspect(s)'s cars tires, get in the car and tell someone else to shoot the tires.");
- SendClientMessage(playerid, COLOR_WHITE,"After all if they try to escape, use your weapon, shoot at them until they decide to surrender, if they don't, kill them");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 9)
- {
- OfficerCourseStep[playerid] = 10;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- Some tips to be a great cop ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"Never give too high tickets, but not too low ones, if you give too much, people will hate, else they will think you are a fool.");
- SendClientMessage(playerid, COLOR_WHITE,"In a chase, use the tactic named 'lag pit', drive a bit ahead the suspect and try to ram them out of the road so you can slow them.");
- SendClientMessage(playerid, COLOR_WHITE,"If you are in an helicopter, always report yourself to the ATC and never Fly low, in case you are in low HP and kill everyone.");
- SendClientMessage(playerid, COLOR_WHITE,"Try to keep your Humour Sense and your Humour to the maximun, people will love that you threat them well and make a joke or two.");
- SendClientMessage(playerid, COLOR_WHITE,"Never do jokes such 'Pullover this is a cavity Search' or 'You're under arrest for being black', people hates such jokes.");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 10)
- {
- OfficerCourseStep[playerid] = 11;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- How people will hate you ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"People will hate you if you always break the laws while on duty, such shooting to the air or wrecklessing driving.");
- SendClientMessage(playerid, COLOR_WHITE,"If you give someone a ticket for speeding, then you leave speeding, people will hate because you will abuse your sirens.");
- SendClientMessage(playerid, COLOR_WHITE,"Never exceed the ticket price, or the jail time, if someone pees on the plaza, doesn't means that you can give him 5 mins.");
- SendClientMessage(playerid, COLOR_WHITE,"Never abuse the suspect in any manner, sexually or phsycally, do not try to rape or hit them after they gave up, its DM...");
- SendClientMessage(playerid, COLOR_WHITE,"Doing jokes as suspect reasons or pulling someone for no reason can be annoying, people wont like you if you do that.");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- else if(OfficerCourseStep[playerid] == 11)
- {
- OfficerCourseStep[playerid] = 12;
- ClearChatbox(playerid, 10);
- SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- The End, Good Job! ---------------------------------");
- SendClientMessage(playerid, COLOR_WHITE,"Finally we arrived to the end, this means that if you payed enough atention you're ready for the test.");
- SendClientMessage(playerid, COLOR_WHITE,"The test for having a cop license will cost you 5000$, failed or passed you'll have to pay.");
- SendClientMessage(playerid, COLOR_WHITE,"If you pass, you will have the right to wear an uniform and call yourself a security officer.");
- SendClientMessage(playerid, COLOR_WHITE,"You need a driving license to do the test of course, and a passport to prevent illegal immigrants of this.");
- SendClientMessage(playerid, COLOR_WHITE,"Good luck with your test, we hope to see an officer like you in the future watching the streets!.");
- ClearChatbox(playerid, 3);
- SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
- }
- }
- if(AFK[playerid] == 1)
- {
- afkadmins --;
- AFK[playerid] = 0;
- TogglePlayerControllable(playerid, 1);
- TextDrawHideForPlayer(playerid, Textdraw5);
- TextDrawHideForPlayer(playerid, Textdraw50);
- TextDrawShowForPlayer(playerid, Textdraw44);
- TextDrawShowForPlayer(playerid, Textdraw45);
- TextDrawShowForPlayer(playerid, Textdraw55);
- TextDrawShowForPlayer(playerid, Textdraw49[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw51[playerid]);
- if(PlayerInfo[playerid][pWatch] == 1)
- {
- TextDrawShowForPlayer(playerid, Textdraw56);
- TextDrawShowForPlayer(playerid, Textdraw57);
- TextDrawShowForPlayer(playerid, Textdraw58);
- }
- SafeSetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
- }
- if(IsPlayerInRangeOfPoint(playerid, 1, -1423.8018,934.8103,1036.4380))
- {//DD Exit By Vaka
- GameTextForPlayer(playerid, "~w~Blackfield, ~y~Las Venturas", 5000, 1);
- SafeSetPlayerInterior(playerid, 0);
- SafeSetPlayerPos(playerid,1090.9735,1606.6628,12.5469);
- SendClientMessage(playerid, TEAM_VAGOS_COLOR, "Nadamo se da cete se zabaviti na Stadionu.");
- }
- // NOVA SCRIPTA UnderGround Racers TELEPORT NA HELIDROM
- if(IsPlayerInRangeOfPoint(playerid, 1, 689.9,-1272,13.5))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- GameTextForPlayer(playerid, "~w~UnderGround Racers HELIDROM", 3000, 1);
- SafeSetPlayerInterior(playerid, 0);
- SafeSetPlayerPos(playerid,756,-1280,23.7);
- }
- // NOVA SCRIPTA UnderGround Racers TELEPORT SA HELIDROMA
- if(IsPlayerInRangeOfPoint(playerid, 1, 756,-1276,23.7))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- GameTextForPlayer(playerid, "~w~UnderGround Racers DVORISTE", 3000, 1);
- SafeSetPlayerInterior(playerid, 0);
- SafeSetPlayerPos(playerid,689.9,-1280,13.5);
- }
- // nova scripta sprunk aparati
- if(IsPlayerInRangeOfPoint(playerid, 1, 1536.90002441,-1642.19995117,13.60000038) || IsPlayerInRangeOfPoint(playerid, 1, 1198.69995117,-1273.30004883,13.60000038) || IsPlayerInRangeOfPoint(playerid, 1, 1464.00000000,-1046.59997559,23.89999962) || IsPlayerInRangeOfPoint(playerid, 1, 1083.99462891,-1804.60876465,13.71529675) || IsPlayerInRangeOfPoint(playerid, 1,334.66,-1772.95,5.16) || IsPlayerInRangeOfPoint(playerid, 1,2187.94,-1132.10,24.60) || IsPlayerInRangeOfPoint(playerid, 3,1280,-1538,13.6))
- {
- if(GetPlayerMoney(playerid) < 26)
- {
- SendClientMessage(playerid, COLOR_GREY, "** Nemas dovoljno novca sa sobom !");
- return 1;
- }
- SafeGivePlayerMoney(playerid, -25);
- // SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
- SetPlayerHealth(playerid, 100);
- SendClientMessage(playerid, COLOR_GREY, "** Kupio si SPRUNK, kostalo te $25 !");
- SendClientMessage(playerid, COLOR_GREY, "** Sada ti se zdravlje poboljsalo !");
- return 1 ;
- }
- if(IsPlayerInRangeOfPoint(playerid, 1,1462.1191,-1013.2958,26.8438))
- {//Bank enter.
- GameTextForPlayer(playerid, "~g~Banka", 5000, 1);
- SafeSetPlayerInterior(playerid, 0);
- SafeSetPlayerPos(playerid,2306.4106,-13.9335,26.7422);
- }
- if(IsPlayerInRangeOfPoint(playerid, 1, 2305.3479,-16.1179,26.7496))
- {//Bank exit.
- GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
- SafeSetPlayerInterior(playerid, 0);
- SafeSetPlayerPos(playerid,1457.3992,-1012.5910,26.8438);
- }
- //============================================================================//
- if(IsPlayerInRangeOfPoint(playerid, 1,833.269775,10.588416,1004.179687))
- {//Kladionica Ulaz.
- GameTextForPlayer(playerid, "~g~Kladionica", 5000, 1);
- SafeSetPlayerInterior(playerid, 0);
- SafeSetPlayerPos(playerid,1631.7783,-1172.1437,24.0781);
- }
- if(IsPlayerInRangeOfPoint(playerid, 1, 1631.7783,-1172.1437,24.0781))
- {//Kladionica Izlaz.
- GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
- SafeSetPlayerInterior(playerid, 0);
- SafeSetPlayerPos(playerid,833.269775,10.588416,1004.179687);
- }
- //===========================================================================//
- // NOVA SCRIPTA FBI TELEPORT NA KROV
- if(IsPlayerInRangeOfPoint(playerid, 1, 1494.6265869141,-1457.6307373047,40.5234375))
- {
- if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- GameTextForPlayer(playerid, "~w~FBI krov", 5000, 1);
- SafeSetPlayerInterior(playerid, 0);
- SafeSetPlayerPos(playerid,1496.5075683594,-1478.7570800781,63.859375);
- return 1;
- }
- SendClientMessage(playerid, COLOR_BLUE,"Nisi clan FBI !!!!");
- }
- // NOVA SCRIPTA FBI TELEPORT SA KROVA
- if(IsPlayerInRangeOfPoint(playerid, 1, 1496.5075683594,-1478.7570800781,63.859375))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- GameTextForPlayer(playerid, "~w~FBI krov", 5000, 1);
- SafeSetPlayerInterior(playerid, 0);
- SafeSetPlayerPos(playerid,1494.6265869141,-1457.6307373047,40.5234375);
- }
- // NOVA SCRIPTA FBI TELEPORT U VOZNI PARK
- if(IsPlayerInRangeOfPoint(playerid, 1, 1510,-1462,9.5))
- {
- if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- GameTextForPlayer(playerid, "~w~FBI VOZNI PARK", 5000, 1);
- SafeSetPlayerInterior(playerid, 0);
- SafeSetPlayerPos(playerid,1520,-1503,13.6);
- return 1;
- }
- SendClientMessage(playerid, COLOR_BLUE,"Nisi clan FBI !!!!");
- }
- // NOVA SCRIPTA FBI TELEPORT IZ VOZNog PARKa
- if(IsPlayerInRangeOfPoint(playerid, 1, 1520,-1503,13.6))
- { // 1520,-1503,13.6
- if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- GameTextForPlayer(playerid, "~w~FBI BAZA", 5000, 1);
- SafeSetPlayerInterior(playerid, 0);
- SafeSetPlayerPos(playerid,1510,-1462,9.5);
- return 1;
- }
- SendClientMessage(playerid, COLOR_BLUE,"Nisi clan FBI !!!!");
- }
- // NOVA SCRIPTA VLADA TELEPORT NA HELIDROM
- if(IsPlayerInRangeOfPoint(playerid, 1, 1452,-1822,44.7))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- GameTextForPlayer(playerid, "~w~VLADA HELIDROM", 3000, 1);
- SafeSetPlayerInterior(playerid, 0);
- SafeSetPlayerPos(playerid,1457,-1817,49);
- }
- // NOVA SCRIPTA VLADA TELEPORT SA HELIDROMA
- if(IsPlayerInRangeOfPoint(playerid, 1, 1447,-1819,48.8))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- GameTextForPlayer(playerid, "~w~VLADA TERASA", 3000, 1);
- SafeSetPlayerInterior(playerid, 0);
- SafeSetPlayerPos(playerid,1458,-1825,45);
- }
- // AddStaticPickup(1240, 1, -1023.1,-981.3,131.23,0); // heal
- // AddStaticPickup(348, 1, -1032.6,-968.6,131.23,0); // gun
- // NOVA SCRIPTA scarface HEAL
- if(IsPlayerInRangeOfPoint(playerid, 1, -1044.1,-968.6,131.23))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- if(PlayerInfo[playerid][pPhousekey] == 499)
- {
- SafeSetPlayerArmour(playerid, 50);
- SetPlayerHealth(playerid, 100);
- GameTextForPlayer(playerid, "~w~Izlecen si i odmoran ...", 2500, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nisi clan SCARFACE !!!");
- }
- }
- // NOVA SCRIPTA scarface ORUZJE
- if(IsPlayerInRangeOfPoint(playerid, 1, -1032.6,-968.6,131.23))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- if(PlayerInfo[playerid][pPhousekey] == 499)
- {
- ResetPlayerWeapons(playerid);
- SafeGivePlayerWeapon(playerid, 24, 30); // deagle
- SafeGivePlayerWeapon(playerid, 25, 30); // shotgun
- SafeGivePlayerWeapon(playerid, 29, 60); // mp5
- SafeGivePlayerWeapon(playerid, 34, 20); // sniper
- GameTextForPlayer(playerid, "~w~Uzeo si naoruzanje ...", 1500, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nisi clan SCARFACE !!!");
- }
- }
- // NOVA SCRIPTA LCN HEAL
- if(IsPlayerInRangeOfPoint(playerid, 1, 1123,-2034,69.5))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
- {
- SafeSetPlayerArmour(playerid, 50);
- SetPlayerHealth(playerid, 100);
- GameTextForPlayer(playerid, "~w~Izlecen si i odmoran ...", 2500, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nisi clan LCN organizacije !!!");
- }
- }
- // NOVA SCRIPTA LCN ORUZJE
- if(IsPlayerInRangeOfPoint(playerid, 1, 1122.6,-2040,69.9))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
- {
- ResetPlayerWeapons(playerid);
- SafeGivePlayerWeapon(playerid, 24, 30); // deagle
- SafeGivePlayerWeapon(playerid, 25, 30); // shotgun
- SafeGivePlayerWeapon(playerid, 29, 60); // mp5
- GameTextForPlayer(playerid, "~w~Uzeo si naoruzanje ...", 1500, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nisi clan LCN organizacije !!!");
- }
- }
- // NOVA SCRIPTA TIM HEAL
- if(IsPlayerInRangeOfPoint(playerid, 1, 689.4,-470.6,16.5))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
- {
- SafeSetPlayerArmour(playerid, 50);
- SetPlayerHealth(playerid, 100);
- GameTextForPlayer(playerid, "~w~Izlecen si i odmoran ...", 2500, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nisi clan TIM-a !!!");
- }
- }
- // NOVA SCRIPTA TIM ORUZJE
- if(IsPlayerInRangeOfPoint(playerid, 1, 689.4,-469,16.5))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
- {
- ResetPlayerWeapons(playerid);
- SafeGivePlayerWeapon(playerid, 24, 30); // deagle
- SafeGivePlayerWeapon(playerid, 25, 30); // shotgun
- SafeGivePlayerWeapon(playerid, 29, 60); // mp5
- GameTextForPlayer(playerid, "~w~Uzeo si naoruzanje ...", 1500, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nisi clan GSG-a !!!");
- }
- }
- // ----------------------------------============================================================================================================
- // NOVA SCRIPTA YAKUZA HEAL
- if(IsPlayerInRangeOfPoint(playerid, 1, 1260,-775,96))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
- {
- SafeSetPlayerArmour(playerid, 50);
- SetPlayerHealth(playerid, 100);
- GameTextForPlayer(playerid, "~w~Izlecen si i odmoran ...", 2500, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nisi clan YAKUZA organizacije !!!");
- }
- }
- // NOVA SCRIPTA YAKUZA ORUZJE
- if(IsPlayerInRangeOfPoint(playerid, 1, 1260,-772.5,96))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
- {
- ResetPlayerWeapons(playerid);
- SafeGivePlayerWeapon(playerid, 24, 30); // deagle
- SafeGivePlayerWeapon(playerid, 25, 30); // shotgun
- SafeGivePlayerWeapon(playerid, 29, 60); // mp5
- GameTextForPlayer(playerid, "~w~Uzeo si naoruzanje ...", 1500, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nisi clan YAKUZA organizacije !!!");
- }
- }
- // NOVA SCRIPTA Under Ground Racers HEAL
- if(IsPlayerInRangeOfPoint(playerid, 1, 691.7,-1273.8,13.5))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
- {
- SafeSetPlayerArmour(playerid, 50);
- SetPlayerHealth(playerid, 100);
- GameTextForPlayer(playerid, "~w~Izlecen si i odmoran ...", 2500, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nisi clan Under Ground Racers-a !!!");
- }
- }
- // NOVA SCRIPTA Under Ground Racers ORUZJE
- if(IsPlayerInRangeOfPoint(playerid, 1, 691.7,-1278.3,13.5))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
- {
- ResetPlayerWeapons(playerid);
- SafeGivePlayerWeapon(playerid, 24, 30); // deagle
- SafeGivePlayerWeapon(playerid, 25, 30); // shotgun
- SafeGivePlayerWeapon(playerid, 29, 60); // mp5
- SafeGivePlayerWeapon(playerid, 5, 1); // BEJZBOL BAT
- GameTextForPlayer(playerid, "~w~Uzeo si naoruzanje ...", 1500, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nisi clan Under Ground Racers-a!!!");
- }
- }
- // NOVA SCRIPTA Bloods HEAL
- if(IsPlayerInRangeOfPoint(playerid, 1, 161,-1749,6.8))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
- {
- SafeSetPlayerArmour(playerid, 50);
- SetPlayerHealth(playerid, 100);
- GameTextForPlayer(playerid, "~w~Izlecen si i odmoran ...", 2500, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nisi clan Bloods Family-a!");
- }
- }
- // NOVA SCRIPTA Bloods ORUZJE
- if(IsPlayerInRangeOfPoint(playerid, 1, 163,-1749,6.8))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
- {
- ResetPlayerWeapons(playerid);
- SafeGivePlayerWeapon(playerid, 24, 30); // deagle
- SafeGivePlayerWeapon(playerid, 25, 30); // shotgun
- SafeGivePlayerWeapon(playerid, 29, 60); // mp5
- GameTextForPlayer(playerid, "~w~Uzeo si naoruzanje ...", 1500, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nisi clan Bloods Family-a!");
- }
- }
- // NOVA SCRIPTA Surenos HEAL
- if(IsPlayerInRangeOfPoint(playerid, 1, 1820.4,-1993.4,13.6))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
- {
- SafeSetPlayerArmour(playerid, 50);
- SetPlayerHealth(playerid, 100);
- GameTextForPlayer(playerid, "~w~Izlecen si i odmoran ...", 2500, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nisi clan Los Surenos-a !!!");
- }
- }
- // NOVA SCRIPTA Surenos ORUZJE
- if(IsPlayerInRangeOfPoint(playerid, 1, 1820.4,-1997.1,13.6))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
- {
- ResetPlayerWeapons(playerid);
- SafeGivePlayerWeapon(playerid, 24, 30); // deagle
- SafeGivePlayerWeapon(playerid, 26, 30); // spawnoff
- GameTextForPlayer(playerid, "~w~Uzeo si naoruzanje ...", 1500, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nisi clan Los Surenos-a !!!");
- }
- }
- // nova scripta heal za HITMAN
- if(IsPlayerInRangeOfPoint(playerid, 1, 1051,-314,74))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
- {
- SafeSetPlayerArmour(playerid, 50);
- SetPlayerHealth(playerid, 100);
- GameTextForPlayer(playerid, "~w~Izlecen si i odmoran ...", 1500, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nisi clan HITMAN organizacije !!!");
- }
- }
- // NOVA SCRIPTA HITMAN ORUZJE
- if(IsPlayerInRangeOfPoint(playerid, 1, 1052,-311,74))
- {
- PlayerInfo[playerid][pInteriorNr] = 1;
- if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
- {
- ResetPlayerWeapons(playerid);
- SafeGivePlayerWeapon(playerid, 23, 30); // deagle
- SafeGivePlayerWeapon(playerid, 34, 30); // sniper
- SafeGivePlayerWeapon(playerid, 4, 1); // knife
- GameTextForPlayer(playerid, "~w~Uzeo si naoruzanje ...", 1500, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nisi clan HITMAN organizacije !!!");
- }
- }
- // ----------------------------------============================================================================================================
- // ulaz u villu
- if(IsPlayerInRangeOfPoint(playerid, 1, 1455.5,-1824.2,44.67))
- {//SAPD Entrance
- PlayerInfo[playerid][pInteriorNr] = 1;
- GameTextForPlayer(playerid, "~w~Gradonacelnikova villa", 3000, 1);
- SafeSetPlayerInterior(playerid, 1);
- SafeSetPlayerPos(playerid,2234.1,1712,1012.38);
- }
- // 2234.1,1714.63,1012.38
- // izlaz iz ville
- if(IsPlayerInRangeOfPoint(playerid, 1, 2234.1,1714.63,1012.38))
- {//SAPD Entrance
- PlayerInfo[playerid][pInteriorNr] = 0;
- GameTextForPlayer(playerid, "~w~Zgrada vlade", 3000, 1);
- SafeSetPlayerInterior(playerid, 0);
- SafeSetPlayerPos(playerid,1455.5,-1824.2,44.67);
- }
- // scarface izvidnica
- if(IsPlayerInRangeOfPoint(playerid, 3, -1184,-1043,130))
- {
- SafeSetPlayerPos(playerid,-1186.57,-1048.3,173.3);
- }
- // scarface izvidnica -1186.57,-1048.3,173.28
- if(IsPlayerInRangeOfPoint(playerid, 3, -1186.57,-1048.3,173.3))
- {
- SafeSetPlayerPos(playerid,-1184,-1042,130.3);
- }
- //============================================================================//
- else if(IsPlayerInRangeOfPoint(playerid, 3, 1532.9670,-1582.6190,13.5469))
- {
- GameTextForPlayer(playerid, "~w~Zlatara", 5000, 1);
- SetPlayerInterior(playerid, 0);
- SafeSetPlayerPos(playerid,1496.9918,-1578.9235,1052.2726);
- TogglePlayerControllable(playerid, 0);
- SetCameraBehindPlayer(playerid);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3, 1496.9918,-1578.9235,1052.2726))
- {
- GameTextForPlayer(playerid, "~w~Beograd", 5000, 1);
- SetPlayerInterior(playerid, 0);
- SafeSetPlayerPos(playerid,1532.9670,-1582.6190,13.5469);
- TogglePlayerControllable(playerid, 1);
- }
- //============================================================================//
- if(IsPlayerInRangeOfPoint(playerid, 1, 1554.9537,-1675.6584,16.1953))
- {//SAPD Entrance
- PlayerInfo[playerid][pInteriorNr] = 1;
- GameTextForPlayer(playerid, "~w~Police Department", 5000, 1);
- SafeSetPlayerInterior(playerid, 6);
- SafeSetPlayerPos(playerid,246.7079,66.2239,1003.6406);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1, 246.5325,62.4251,1003.6406))
- {//SAPD Exit
- PlayerInfo[playerid][pInteriorNr] = 0;
- GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
- SafeSetPlayerInterior(playerid, 0);
- SafeSetPlayerPos(playerid,1552.3231,-1674.6780,16.1953);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1, 478.0687,-1498.9708,20.4831))
- {//RPC Enter
- if(PlayerInfo[playerid][pRegularRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 1)
- {
- PlayerInfo[playerid][pInteriorNr] = 10;
- GameTextForPlayer(playerid, "~y~Dobrodosli u... ~n~~w~Regular Players Lounge ~n~~n~~n~~n~~n~~n~~n~~n~~n~ ~r~Kriminalce ne primamo", 8500,3);
- SendClientMessage(playerid, COLOR_WHITE, "** Dobrodosli, Dodji blizu bara i Koristi /drinks kako bi dobio popis pica");
- SendClientMessage(playerid, COLOR_WHITE, "** Zelis istrazivati, imas par pickupova uokolo");
- SendClientMessage(playerid, COLOR_NICERED, "** Zlocincima zabranjen ulaz,svatko ko udje a zlocinac je to mu je jednako 2 sata zatvora.");
- SafeSetPlayerInterior(playerid, 3);
- SafeSetPlayerPos(playerid,-2638.7832,1403.1351,906.4609);
- SetPlayerVirtualWorld(playerid, 20);
- PlayerInfo[playerid][pVirWorld] = 20;
- }
- else return SendClientMessage(playerid, COLOR_GREY,"* You are not a Regular Player!");
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, -2636.8042,1402.9908,906.4609))
- {//RPC Exit
- PlayerInfo[playerid][pInteriorNr] = 0;
- GameTextForPlayer(playerid, "~w~Los Santos", 5000,1);
- SafeSetPlayerInterior(playerid, 0);
- SafeSetPlayerPos(playerid,478.9689,-1495.9681,20.4098);
- PlayerInfo[playerid][pVirWorld] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 488.2531,-82.7632,998.7578))
- {
- //Misty/10 Green Toilets
- PlayerInfo[playerid][pInteriorNr] = 26;
- SafeSetPlayerPos(playerid, 2277.5942,-1139.8883,1050.8984);
- GameTextForPlayer(playerid, "~w~Restroom", 5000, 3);
- SafeSetPlayerInterior(playerid,11);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 2280.0476,-1139.5413,1050.8984))
- {
- //Misty/10 Green Toilets
- PlayerInfo[playerid][pInteriorNr] = 26;
- SafeSetPlayerPos(playerid, 490.9059,-81.4256,998.7578);
- GameTextForPlayer(playerid, "~w~Ten Green Bottles", 5000, 3);
- SafeSetPlayerInterior(playerid,11);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1, 306.2120,-141.8780,1004.0547))
- {
- GameTextForPlayer(playerid, "~w~Ammunation Training", 5000, 1);
- SafeSetPlayerPos(playerid, 301.2120,-141.8780,1004.0547);
- SetPlayerCheckpoint(playerid, 300.5705,-134.0464,1004.0625, 3);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1,304.2120,-141.8780,1004.0547))
- {
- GameTextForPlayer(playerid, "~w~Ammunation", 5000, 1);
- SafeSetPlayerPos(playerid, 308.2120,-141.8780,1004.0547);
- DisablePlayerCheckpoint(playerid);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 1518.5179,-1452.9224,14.2031))
- {
- //FBI Enter
- PlayerInfo[playerid][pInteriorNr] = 4;
- SafeSetPlayerInterior(playerid,3);
- SafeSetPlayerPos(playerid, 235.7598,142.4089,1003.1);
- GameTextForPlayer(playerid, "~w~FBI Department",5000,1);
- SetPlayerFacingAngle(playerid, 0);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 288.7287,167.0377,1007.1719))
- {
- //FBI Exit
- PlayerInfo[playerid][pInteriorNr] = 0;
- SafeSetPlayerPos(playerid, 1518.4724,-1450.2354,13.5469);
- GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
- SafeSetPlayerInterior(playerid,0);
- SetPlayerFacingAngle(playerid, 0);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 238.3001,138.9406,1003.0234))
- {
- //FBI Exit
- PlayerInfo[playerid][pInteriorNr] = 0;
- SafeSetPlayerPos(playerid, 1518.4724,-1450.2354,13.5469);
- GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
- SafeSetPlayerInterior(playerid,0);
- SetPlayerFacingAngle(playerid, 0);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1,1173.2563,-1323.3102,15.3943))
- {
- //Hospital enter
- PlayerInfo[playerid][pInteriorNr] = 29;
- SafeSetPlayerPos(playerid, 1222.0614,-1250.3997,1287.8243);
- GameTextForPlayer(playerid, "~w~All Saints Hospital",5000,1);
- SafeSetPlayerInterior(playerid,6);
- SetPlayerFacingAngle(playerid, 0);
- TogglePlayerControllable(playerid, 0);
- SetTimerEx("Unfreezeply",3000,false,"i",playerid);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1,1219.6620,-1250.0331,1287.8243))
- {
- //Hospital exit
- PlayerInfo[playerid][pInteriorNr] = 0;
- SafeSetPlayerPos(playerid, 1174.2563,-1323.3102,15.3943);
- GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
- SafeSetPlayerInterior(playerid,0);
- SetPlayerFacingAngle(playerid, 270);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1,1298.7075,-798.5981,84.1406))
- {
- //La Famiglia Sinatra gang hq
- if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
- {
- SafeSetPlayerPos(playerid, 1254.3436,-789.3809,1084.0078);
- GameTextForPlayer(playerid, "~w~Yakuza Baza",5000,1);
- SafeSetPlayerInterior(playerid,5);
- SetPlayerFacingAngle(playerid, 181);
- PlayerInfo[playerid][pInteriorNr] = 31;
- }
- else if(hqlock[luclock] == 0)
- {
- SafeSetPlayerPos(playerid, 1254.3436,-789.3809,1084.0078);
- GameTextForPlayer(playerid, "~w~Yakuza Baza",5000,1);
- SafeSetPlayerInterior(playerid,5);
- SetPlayerFacingAngle(playerid, 181);
- PlayerInfo[playerid][pInteriorNr] = 31;
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Locked",5000,1);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1, 1252.5208,-789.2282,1084.0078))
- {
- //La Famiglia Sinatra gang hq
- PlayerInfo[playerid][pInteriorNr] = 0;
- SafeSetPlayerPos(playerid, 1298.6263,-801.5491,84.1406);
- GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
- SafeSetPlayerInterior(playerid,0);
- SetPlayerFacingAngle(playerid, 1);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1,691.5770,-1276.0026,13.5607))
- {
- //Under Ground Racers gang hq
- if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
- {
- PlayerInfo[playerid][pInteriorNr] = 6;
- SafeSetPlayerPos(playerid, 962.0352,-53.4519,1001.1246);
- GameTextForPlayer(playerid, "~w~Under Ground Racers Baza",5000,1);
- SafeSetPlayerInterior(playerid,3);
- SetPlayerFacingAngle(playerid, 181);
- }
- else if(hqlock[guclock] == 0)
- {
- PlayerInfo[playerid][pInteriorNr] = 6;
- SafeSetPlayerPos(playerid, 962.0352,-53.4519,1001.1246);
- GameTextForPlayer(playerid, "~w~Under Ground Racers Baza",5000,1);
- SafeSetPlayerInterior(playerid,3);
- SetPlayerFacingAngle(playerid, 181);
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Locked",5000,1);
- }
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1,967.6099,-53.1411,1001.1246))
- {
- //Under Ground Racers gang hq
- PlayerInfo[playerid][pInteriorNr] = 0;
- SafeSetPlayerPos(playerid, 689.8694,-1276.0619,13.5595);
- GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
- SafeSetPlayerInterior(playerid,0);
- SetPlayerFacingAngle(playerid, 1);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 1122.7406,-2037.0421,69.8942))
- {
- //Chornaya Bratva gang hq
- if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
- {
- PlayerInfo[playerid][pInteriorNr] = 8;
- SafeSetPlayerPos(playerid, 2576.5076,-1300.3403,1060.9844);
- GameTextForPlayer(playerid, "~w~Lcn Baza",5000,1);
- SafeSetPlayerInterior(playerid,2);
- SetPlayerFacingAngle(playerid, 181);
- }
- else if(hqlock[stlock] == 0)
- {
- PlayerInfo[playerid][pInteriorNr] = 8;
- SafeSetPlayerPos(playerid, 2576.5076,-1300.3403,1060.9844);
- GameTextForPlayer(playerid, "~w~Lcn Baza",5000,1);
- SafeSetPlayerInterior(playerid,2);
- SetPlayerFacingAngle(playerid, 181);
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Zakljucano",5000,1);
- }
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 2576.7900,-1284.8854,1054.6406))
- {
- //Chornaya Bratva gang hq
- PlayerInfo[playerid][pInteriorNr] = 0;
- SafeSetPlayerPos(playerid, 1123.9808,-2037.0841,69.8855);
- GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
- SafeSetPlayerInterior(playerid,0);
- SetPlayerFacingAngle(playerid, 1);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 168.2048,-1769.3395,4.4728))
- {
- //Bloods gang hq
- if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
- {
- PlayerInfo[playerid][pInteriorNr] = 7;
- SafeSetPlayerPos(playerid, 446.9658,1399.1479,1084.3047);
- GameTextForPlayer(playerid, "~w~Bloods Baza",5000,1);
- SafeSetPlayerInterior(playerid,2);
- SetPlayerFacingAngle(playerid, 1);
- }
- else if(hqlock[iolock] == 0)
- {
- PlayerInfo[playerid][pInteriorNr] = 7;
- SafeSetPlayerPos(playerid, 446.9658,1399.1479,1084.3047);
- GameTextForPlayer(playerid, "~w~Bloods Baza",5000,1);
- SafeSetPlayerInterior(playerid,2);
- SetPlayerFacingAngle(playerid, 0);
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Zakljucano",5000,1);
- }
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 447.0208,1397.4796,1084.3047))
- {
- //Bloods gang hq
- PlayerInfo[playerid][pInteriorNr] = 0;
- SafeSetPlayerPos(playerid, 172.9946,-1769.8417,4.4319);
- GameTextForPlayer(playerid, "~w~Bloods",5000,1);
- SafeSetPlayerInterior(playerid,0);
- SetPlayerFacingAngle(playerid, 179);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 1828.1594,-1980.4380,13.5469))
- {
- //Surenos HQ
- if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
- {
- PlayerInfo[playerid][pInteriorNr] = 9;
- SafeSetPlayerPos(playerid, 2351.0479,-1180.8905,1027.9766);
- GameTextForPlayer(playerid, "~w~Surenos Baza",5000,1);
- SafeSetPlayerInterior(playerid,5);
- SetPlayerFacingAngle(playerid, 90);
- }
- else if(hqlock[surlock] == 0)
- {
- PlayerInfo[playerid][pInteriorNr] = 9;
- SafeSetPlayerPos(playerid, 2351.0479,-1180.8905,1027.9766);
- GameTextForPlayer(playerid, "~w~Surenos Baza",5000,1);
- SafeSetPlayerInterior(playerid,5);
- SetPlayerFacingAngle(playerid, 90);
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Zakljucano",5000,1);
- }
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 2352.9187,-1180.9679,1027.9766))
- {
- //Surenos HQ
- PlayerInfo[playerid][pInteriorNr] = 0;
- SafeSetPlayerPos(playerid, 1830.1904,-1983.0223,13.5469);
- GameTextForPlayer(playerid, "~w~Surenos",5000,1);
- SafeSetPlayerInterior(playerid,0);
- SetPlayerFacingAngle(playerid, 179);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 1481.0206,-1771.1138,18.7958))
- {
- //City hall
- PlayerInfo[playerid][pInteriorNr] = 2;
- SafeSetPlayerInterior(playerid,3);
- SafeSetPlayerPos(playerid, 386.2978,173.8582,1008.45);
- SetPlayerFacingAngle(playerid, 0);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 390.0630,173.5741,1008.3828))
- {
- //City hall
- PlayerInfo[playerid][pInteriorNr] = 0;
- SafeSetPlayerPos(playerid, 1481.0206,-1769.5138,18.7958);
- GameTextForPlayer(playerid, "~w~Gradska Vijecnica",5000,1);
- SafeSetPlayerInterior(playerid,0);
- SetPlayerFacingAngle(playerid, 0);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 681.6054,-473.7628,16.5363))
- {
- //TIM
- PlayerInfo[playerid][pInteriorNr] = 40;
- SafeSetPlayerPos(playerid, 679.3209,-452.7324,-25.6172);
- GameTextForPlayer(playerid, "~w~The Imperial Mafia",5000,1);
- SafeSetPlayerInterior(playerid, 1);
- SetPlayerFacingAngle(playerid, 0);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 681.5295,-450.8412,-25.6172))
- {
- //TIM
- PlayerInfo[playerid][pInteriorNr] = 0;
- SafeSetPlayerPos(playerid, 683.2062,-473.8727,16.5363);
- GameTextForPlayer(playerid, "~w~Dillimore",5000,1);
- SafeSetPlayerInterior(playerid,0);
- SetPlayerFacingAngle(playerid, 0);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 1784.58,-1297.52,13.37))
- {
- //BBC Studio
- PlayerInfo[playerid][pInteriorNr] = 32;
- SafeSetPlayerPos(playerid, 1817.0708,-1297.3933,109.2669);
- GameTextForPlayer(playerid, "~w~BBC Studio",5000,1);
- SetPlayerFacingAngle(playerid, 0);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 1817.6517,-1294.2751,109.2697))
- {
- //BBC Studio
- PlayerInfo[playerid][pInteriorNr] = 0;
- SafeSetPlayerPos(playerid, 1787.6311,-1297.4938,13.3793);
- GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
- SafeSetPlayerInterior(playerid,0);
- SetPlayerFacingAngle(playerid, 0);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 1752.8452,-1894.1328,13.5573))
- {
- //LA Yellow Cab Co.
- PlayerInfo[playerid][pInteriorNr] = 33;
- SafeSetPlayerPos(playerid, 371.8502,182.0368,1014.1875);
- GameTextForPlayer(playerid, "~w~Taxi Kompanija.",5000,1);
- SafeSetPlayerInterior(playerid,3);
- SetPlayerFacingAngle(playerid, 0);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 371.4523,180.2195,1014.1875))
- {
- //LA Yellow Cab Co.
- PlayerInfo[playerid][pInteriorNr] = 0;
- SafeSetPlayerPos(playerid, 1755.7578,-1894.1992,13.5566);
- GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
- SafeSetPlayerInterior(playerid,0);
- SetPlayerFacingAngle(playerid, 0);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 2045.3928,-1908.0372,13.5469))
- {
- //DMW
- PlayerInfo[playerid][pInteriorNr] = 11;
- SafeSetPlayerPos(playerid, 1494.6207,1305.2336,1093.2891);
- GameTextForPlayer(playerid, "~w~License center",5000,1);
- SafeSetPlayerInterior(playerid,3);
- SetPlayerFacingAngle(playerid, 0);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 1494.2778,1303.7288,1093.2891))
- {
- //DMW Exit
- PlayerInfo[playerid][pInteriorNr] = 0;
- SafeSetPlayerPos(playerid, 2046.8928,-1908.0372,13.5469);
- GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
- SafeSetPlayerInterior(playerid,0);
- SetPlayerFacingAngle(playerid, 280);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 1524.5724,-1677.8043,6.2188))
- {
- //PD Elevator
- PlayerInfo[playerid][pInteriorNr] = 1;
- SafeSetPlayerPos(playerid, 244.0099,66.4152,1003.6406);
- GameTextForPlayer(playerid, "~w~Police Department",5000,1);
- SafeSetPlayerInterior(playerid,6);
- SetPlayerFacingAngle(playerid, 270);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 1557.7257,-1675.2711,28.3955))
- {
- //PD Elevator
- PlayerInfo[playerid][pInteriorNr] = 1;
- SafeSetPlayerPos(playerid, 244.0099,66.4152,1003.6406);
- GameTextForPlayer(playerid, "~w~Police Department",5000,1);
- SafeSetPlayerInterior(playerid,6);
- SetPlayerFacingAngle(playerid, 270);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 2730.4297,-2451.5000,17.5937))
- {
- //Army Entrance
- PlayerInfo[playerid][pInteriorNr] = 5;
- SafeSetPlayerPos(playerid, 249.9911,108.3193,1003.2188);
- GameTextForPlayer(playerid, "~g~Army Barracks",5000,1);
- SafeSetPlayerInterior(playerid,10);
- SetPlayerFacingAngle(playerid, 270);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 246.7823,107.8988,1003.2188))
- {
- //Army Exit
- PlayerInfo[playerid][pInteriorNr] = 0;
- SafeSetPlayerPos(playerid, 2734.6604,-2450.5486,17.5938);
- GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
- SafeSetPlayerInterior(playerid,0);
- SetPlayerFacingAngle(playerid, 270);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 616.7385,-1542.1398,15.3345))
- {
- //Firemen Entrance
- PlayerInfo[playerid][pInteriorNr] = 23;
- SafeSetPlayerPos(playerid, 2807.619873,-1171.899902,1025.570312);
- GameTextForPlayer(playerid, "~r~Firemen Barracks",5000,1);
- SafeSetPlayerInterior(playerid,8);
- SetPlayerFacingAngle(playerid, 270);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 2807.6807,-1174.5410,1025.5703))
- {
- //Firemen Exit
- PlayerInfo[playerid][pInteriorNr] = 0;
- SafeSetPlayerPos(playerid, 618.3007,-1537.3007,15.2589);
- GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
- SafeSetPlayerInterior(playerid,0);
- SetPlayerFacingAngle(playerid, 270);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 3, 2812.3806,-1163.9534,1029.1719))
- {
- //Firemen Roof Entrance
- SafeSetPlayerPos(playerid, 574.9918,-1491.9247,30.8906);
- GameTextForPlayer(playerid, "~r~Firemen Barracks Roof",5000,1);
- SafeSetPlayerInterior(playerid,0);
- SetPlayerFacingAngle(playerid, 270);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1, 571.4652,-1522.2427,30.8906))
- {
- //Firemen Roof Entrance
- PlayerInfo[playerid][pInteriorNr] = 23;
- SafeSetPlayerPos(playerid, 2806.7979,-1161.3995,1029.1646);
- GameTextForPlayer(playerid, "~r~Firemen Barracks",5000,1);
- SafeSetPlayerInterior(playerid,8);
- SetPlayerFacingAngle(playerid, 270);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1.5, 1570.3828,-1333.8882,16.4844))
- {
- //Next to PD building
- SafeSetPlayerPos(playerid, 1545.0068,-1366.5094,327.2868);
- GameTextForPlayer(playerid, "~w~Roof of News building",5000,1);
- SafeSetPlayerInterior(playerid,0);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 1.5, 1548.8167,-1366.2247,326.2109))
- {
- //Next to PD building
- SafeSetPlayerPos(playerid, 1572.1115,-1332.5288,16.4844);
- GameTextForPlayer(playerid, "~w~News building",5000,1);
- SafeSetPlayerInterior(playerid,0);
- }
- }
- else if ((newkeys & KEY_LOOK_BEHIND) && !(oldkeys & KEY_LOOK_BEHIND))
- {
- if(IsAnNg(playerid) || PlayerInfo[playerid][pAdmin] >= 6)
- {
- if(IsPlayerInRangeOfPoint(playerid, 4,238.9703,112.8155,1003.2188))
- {
- if(armyw1 == 0)
- {
- MoveDynamicObject(armywindows1, 239.774,111.511,1000.61, 1.7500);
- SendClientMessage(playerid, COLOR_BLUE,"Prozori Otvoreni, Molimo vas da ih zatvorite!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s uzima daljinski i otvara Prozore.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- armyw1 = 1;
- }
- else
- {
- MoveDynamicObject(armywindows1, 239.774,111.511,1002.31, 3.0000);
- SendClientMessage(playerid, COLOR_BLUE,"Prozori Zatvoreni, Hvala!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s uzima daljinski i zatvara Prozore.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- armyw1 = 0;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2,253.8096,117.3113,1003.2188))
- {
- if(armyw2 == 0)
- {
- MoveDynamicObject(armywindows2, 253.050,116.195,1000.61, 1.7500);
- SendClientMessage(playerid, COLOR_BLUE,"Prozori Otvoreni, Molimo vas da ih zatvorite!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s uzima daljinski i otvara Prozore.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- armyw2 = 1;
- }
- else
- {
- MoveDynamicObject(armywindows2, 253.050,116.195,1002.31, 3.0000);
- SendClientMessage(playerid, COLOR_BLUE,"Prozori Zatvoreni, Hvala!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s uzima daljinski i zatvara Prozore.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- armyw2 = 0;
- }
- }
- }
- if(IsAPDMember(playerid) || PlayerInfo[playerid][pAdmin] >= 6 || IsAFreecop(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid, 4,251.2575,67.6536,1003.6406))
- {
- if(lspdw == 0)
- {
- MoveDynamicObject(lspdwindows, 250.524,67.650,1001.08, 3.0000);
- SendClientMessage(playerid, COLOR_BLUE,"SAPD Prozori Otvoreni, Molimo vas da ih zatvorite!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s uzima daljinski i otvara Prozore.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- lspdw = 1;
- }
- else
- {
- MoveDynamicObject(lspdwindows, 250.524,67.650,1002.58, 3.0000);
- SendClientMessage(playerid, COLOR_BLUE,"SAPD Windows is Closed, Thank You!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote control and closes the Windows.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- lspdw = 0;
- }
- }
- }
- if(IsAPDMember(playerid) || IsAFreecop(playerid) || PlayerInfo[playerid][pAdmin] >= 6)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2,250.611,63.2995,1003.18))
- {
- if(lspd1 == 0)
- {
- MoveDynamicObject(lspddoor1, 250.611,63.2995,1000.64, 4.5000);
- SendClientMessage(playerid, COLOR_BLUE,"SAPD door is open, please close it!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote control and opens the door.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- lspd1 = 1;
- }
- else
- {
- MoveDynamicObject(lspddoor1, 250.611,63.2995,1003.04, 4.5000);
- SendClientMessage(playerid, COLOR_BLUE,"SAPD door is closed, thank you!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote control and closes the door.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- lspd1 = 0;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2,246.228,72.4962,1003.04))
- {
- if(lspd2 == 0)
- {
- MoveDynamicObject(lspddoor2, 246.228,72.4962,1000.63, 4.5000);
- SendClientMessage(playerid, COLOR_BLUE,"SAPD door is open, please close it!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote control and opens the door.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- lspd2 = 1;
- }
- else
- {
- MoveDynamicObject(lspddoor2, 246.228,72.4962,1003.18, 4.5000);
- SendClientMessage(playerid, COLOR_BLUE,"SAPD Control door is closed, thank you!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote control and Closes the door.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- lspd2 = 0;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2,1582.6205,-1638.0587,12.3776))
- {
- if(lspd3 == 0)
- {
- MoveDynamicObject(pdgate4, 1582.6205,-1638.0587,7.3776, 4.5000);
- SendClientMessage(playerid, COLOR_BLUE,"SAPD Garage is open, please close it!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote control and opens the door.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- lspd3 = 1;
- }
- else
- {
- MoveDynamicObject(pdgate4, 1582.6205,-1638.0587,12.3776, 4.5000);
- SendClientMessage(playerid, COLOR_BLUE,"SAPD Garage door is closed, thank you!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote control and Closes the door.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- lspd3 = 0;
- }
- }
- }
- if(IsAnNg(playerid) || PlayerInfo[playerid][pAdmin] >= 6)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2,239.5503,117.5205,1003.2188))
- {
- if(army1 == 0)
- {
- MoveDynamicObject(armydoor1, 239.591,118.098,1000.21, 4.0);
- SendClientMessage(playerid, COLOR_BLUE,"Army door is open, please close it!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote control and opens the door.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- army1 = 1;
- }
- else
- {
- MoveDynamicObject(armydoor1, 239.591,118.098,1003.01, 4.5);
- SendClientMessage(playerid, COLOR_BLUE,"Army door is closed, thank you!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote control and closes the door.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- army1 = 0;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2,239.5794,125.0337,1003.2188))
- {
- if(army2 == 0)
- {
- MoveDynamicObject(armydoor2, 239.635,125.544,1000.21, 4.5);
- SendClientMessage(playerid, COLOR_BLUE,"Army door is open, please close it!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote control and opens the door.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- army2 = 1;
- }
- else
- {
- MoveDynamicObject(armydoor2, 239.635,125.544,1003.21, 4.5);
- SendClientMessage(playerid, COLOR_BLUE,"Army door is closed, thank you!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote control and closes the door.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- army2 = 0;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2,253.1278,109.1392,1003.2188))
- {
- if(army3 == 0)
- {
- MoveDynamicObject(armydoor3, 253.146,108.902,1000.21, 4.5);
- SendClientMessage(playerid, COLOR_BLUE,"Army door is open, please close it!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote control and opens the door.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- army3 = 1;
- }
- else
- {
- MoveDynamicObject(armydoor3, 253.146,108.902,1003.01, 4.5);
- SendClientMessage(playerid, COLOR_BLUE,"Army door is closed, thank you!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote control and closes the door.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- army3 = 0;
- }
- }
- }
- if(IsAnFbi(playerid) || PlayerInfo[playerid][pAdmin] >= 6)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3,228.250,151.334,1002.67))
- {
- if(fbi1 == 0)
- {
- MoveDynamicObject(fbidoor1, 228.250,151.334,1000.02, 4.5);
- SendClientMessage(playerid, COLOR_BLUE,"FBI door is open, please close it!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote control and opens the door.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- fbi1 = 1;
- }
- else
- {
- MoveDynamicObject(fbidoor1, 228.250,151.334,1002.67, 4.5);
- SendClientMessage(playerid, COLOR_BLUE,"FBI door is closed, thank you!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote control and closes the door.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- fbi1 = 0;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3,271.140,191.185,1008.97))
- {
- if(fbi2 == 0)
- {
- MoveDynamicObject(fbidoor2, 271.140,191.185,1005.17, 4.5);
- SendClientMessage(playerid, COLOR_BLUE,"FBI door is open, please close it!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote control and opens the door.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- fbi2 = 1;
- }
- else
- {
- MoveDynamicObject(fbidoor2, 271.140,191.185,1008.97, 4.5);
- SendClientMessage(playerid, COLOR_BLUE,"FBI door is closed, thank you!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote control and closes the door.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- fbi2 = 0;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3,238.784,193.768,1008.97))
- {
- if(fbi3 == 0)
- {
- MoveDynamicObject(fbidoor3, 238.784,193.768,1005.17, 4.5);
- SendClientMessage(playerid, COLOR_BLUE,"FBI door is open, please close it!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote control and opens the door.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- fbi3 = 1;
- }
- else
- {
- MoveDynamicObject(fbidoor3, 238.784,193.768,1008.97, 4.5);
- SendClientMessage(playerid, COLOR_BLUE,"FBI door is closed, thank you!");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote control and closes the door.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- fbi3 = 0;
- }
- }
- }
- }
- else if ((newkeys & KEY_SUBMISSION) && !(oldkeys & KEY_ACTION))
- {
- if(IsAPDMember(playerid) || IsAFreecop(playerid))
- {
- if (IsPlayerInRangeOfPoint(playerid, 15,1589.053344,-1638.123168,14.122960))
- {
- if(lspdg == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
- MoveDynamicObject(pdgate1,1599.053344,-1638.123168,14.122960, 0.8);
- SetTimer("GateClose", 12000, 0);
- SendClientMessage(playerid, COLOR_BLUE,"A garage is opened and will close in 7 seconds.");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote and opens a garage.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
- lspdg = 1;
- }
- else if (IsPlayerInRangeOfPoint(playerid, 15,1544.700317,-1630.735717,13.096980))
- {
- if(lspdg2 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Barrier is Already Opened"); return 1; }
- DestroyDynamicObject( pdgate2 );
- pdgate3 = CreateDynamicObject(968,1544.700317,-1630.735717,12.924660,0.000000,0.000000,270.972869);
- SetTimer("GateClose5", 6000, 0);
- SendClientMessage(playerid, COLOR_BLUE,"The gate is opened and will close in 6 seconds.");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote and opens the gate.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- lspdg2 = 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* Not near a Gate that you can use.");
- return 1;
- }
- }
- else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
- {
- if (IsPlayerInRangeOfPoint(playerid, 15,2720.3772,-2409.7523,12.6))
- {
- if(armyg == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
- MoveDynamicObject(armygate1,2720.3772, -2401.2523, 12.6, 3.5);
- SetTimer("GateClose2", 7000, 0);
- SendClientMessage(playerid, COLOR_BLUE,"The Army gate Nr. 1 is opened and will close in 7 seconds.");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote and opens the army gate #1.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- armyg = 1;
- }
- else if (IsPlayerInRangeOfPoint(playerid, 15,2720.3772,-2508.3069,12.6))
- {
- if(armyg2 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
- MoveDynamicObject(armygate2,2720.3772, -2499.8069, 12.6, 3.5);
- SetTimer("GateClose2", 7000, 0);
- SendClientMessage(playerid, COLOR_BLUE,"The Army gate Nr. 2 is opened and will close in 7 seconds.");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote and opens the army gate #2.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- armyg2 = 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 10, 2773.2056,-2494.8267,13.6681))
- {
- if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
- {
- if(PlayerInfo[playerid][pRank] >= 5)
- {
- MoveDynamicObject(armygate3, 2774.4670,-2494.5842,8.2665, 2.5);
- SetTimer("GateClose2", 7000, 0);
- SendClientMessage(playerid, COLOR_BLUE,"The gate is opened and will close in 7 seconds.");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote and opens Rhino Gate.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* Not near a Gate that you can use.");
- return 1;
- }
- }
- else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
- {
- if (IsPlayerInRangeOfPoint(playerid, 15,1534.9020,-1451.5979,14.4882))
- {
- if(fbig == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
- MoveDynamicObject(fbigate,1534.9020,-1451.5979,20.4882, 1.5);
- SetTimer("GateClose3", 7000, 0);
- SendClientMessage(playerid, COLOR_BLUE,"FBI gate is opened and will close in 7 seconds.");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote and opens fbi gate.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- fbig = 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* Not near a Gate that you can use.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a remote control.");
- return 1;
- }
- }
- else if ((newkeys & KEY_FIRE))
- {
- if(IsACop(playerid) && GetPlayerWeapon(playerid) == 23 && Tazer[playerid] == 1)
- {
- new Float:X,Float:Y,Float:Z,Float:pX,Float:pY,Float:pZ;
- GetPlayerPos(playerid, pX,pY,pZ);
- for(new i=0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(IsPlayerInRangeOfPoint(i,30, pX,pY,pZ) && PlayerInfo[i][pWanted] == 1)
- {
- if(i != playerid)
- {
- GetPlayerPos(i, X,Y,Z);
- new iname[MAX_PLAYER_NAME];
- GetPlayerName(i, iname, sizeof(iname));
- if(IsPlayerAimingAt(playerid, X,Y,Z,1))
- {
- GameTextForPlayer(i,"~r~BEING TAZED",9000,4);
- GameTextForPlayer(playerid, "~b~USING THE TAZER",2000,4);
- TogglePlayerControllable(i, 0);
- TogglePlayerControllable(playerid, 0);
- ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
- SetTimerEx("Unfreezeply",9000,0,"i",i);
- ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
- SetTimerEx("Unfreezeply",2000,0,"i",playerid);
- format(string, sizeof(string),"* %s nisani sa tazerom u %s i pogadja ga",sendername,iname);
- }
- else return GameTextForPlayer(playerid, "~b~Promasaj",3750,4);
- }
- }
- else return GameTextForPlayer(playerid, "~b~nema osumljicenih blizu tebe!",3750,4);
- }
- }
- }
- new Drunk = GetPlayerDrunkLevel(playerid);
- new Float:Health;
- GetPlayerHealth(playerid, Health);
- if(ViewingRules[playerid] == 1)
- {
- HideRules(playerid);
- ViewingRules[playerid] = 0;
- }
- if(ViewingWelcome[playerid] == 1)
- {
- HideWelcome(playerid);
- ViewingWelcome[playerid] = 0;
- }
- if(GetPlayerSpecialAction(playerid) == 22) // Wine
- {
- if(PlayerDrankWine[playerid] == 0)
- {
- SetTimerEx("DrankWine",2000, false, "i", playerid);
- SetPlayerDrunkLevel(playerid, Drunk+350);
- SetPlayerHealth(playerid, Health+5);
- if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
- }
- else if(PlayerDrankWine[playerid] == 1)
- {
- SetTimerEx("DrankWine",2000, false, "i", playerid);
- SetPlayerDrunkLevel(playerid, Drunk+350);
- SetPlayerHealth(playerid, Health+5);
- if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
- }
- else if(PlayerDrankWine[playerid] == 2)
- {
- SetTimerEx("DrankWine",2000, false, "i", playerid);
- SetPlayerDrunkLevel(playerid, Drunk+350);
- SetPlayerHealth(playerid, Health+5);
- if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
- }
- else if(PlayerDrankWine[playerid] == 3)
- {
- SetTimerEx("DrankWine",2000, false, "i", playerid);
- SetPlayerDrunkLevel(playerid, Drunk+350);
- SetPlayerHealth(playerid, Health+5);
- if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
- }
- else if(PlayerDrankWine[playerid] == 4)
- {
- SetTimerEx("DrankWine",2000, false, "i", playerid);
- SetPlayerDrunkLevel(playerid, Drunk+350);
- SetPlayerHealth(playerid, Health+5);
- if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
- }
- else if(PlayerDrankWine[playerid] == 5)
- {
- SetTimerEx("DrankWine",2000, false, "i", playerid);
- SetPlayerDrunkLevel(playerid, Drunk+350);
- SetPlayerSpecialAction(playerid, 0);
- SetPlayerHealth(playerid, Health+5);
- if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
- }
- }
- else if(GetPlayerSpecialAction(playerid) == 20) // Beer
- {
- if(PlayerDrankBeer[playerid] == 0)
- {
- SetTimerEx("DrankBeer",2000, false, "i", playerid);
- SetPlayerDrunkLevel(playerid, Drunk+250);
- SetPlayerHealth(playerid, Health+3);
- if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
- }
- else if(PlayerDrankBeer[playerid] == 1)
- {
- SetTimerEx("DrankBeer",2000, false, "i", playerid);
- SetPlayerDrunkLevel(playerid, Drunk+250);
- SetPlayerHealth(playerid, Health+3);
- if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
- }
- else if(PlayerDrankBeer[playerid] == 2)
- {
- SetTimerEx("DrankBeer",2000, false, "i", playerid);
- SetPlayerDrunkLevel(playerid, Drunk+250);
- SetPlayerHealth(playerid, Health+3);
- if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
- }
- else if(PlayerDrankBeer[playerid] == 3)
- {
- SetTimerEx("DrankBeer",2000, false, "i", playerid);
- SetPlayerDrunkLevel(playerid, Drunk+250);
- SetPlayerHealth(playerid, Health+3);
- if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
- }
- else if(PlayerDrankBeer[playerid] == 4)
- {
- SetTimerEx("DrankBeer",2000, false, "i", playerid);
- SetPlayerDrunkLevel(playerid, Drunk+250);
- SetPlayerHealth(playerid, Health+3);
- if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
- }
- else if(PlayerDrankBeer[playerid] == 5)
- {
- SetTimerEx("DrankBeer",2000, false, "i", playerid);
- SetPlayerDrunkLevel(playerid, Drunk+250);
- SetPlayerSpecialAction(playerid, 0);
- SetPlayerHealth(playerid, Health+3);
- if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
- }
- }
- else if(GetPlayerSpecialAction(playerid) == 23) // Sprunk
- {
- if(PlayerDrankSprunk[playerid] == 0)
- {
- SetTimerEx("DrankSprunk",2000, false, "i", playerid);
- SetPlayerHealth(playerid, Health+10);
- }
- else if(PlayerDrankSprunk[playerid] == 1)
- {
- SetTimerEx("DrankSprunk",2000, false, "i", playerid);
- SetPlayerHealth(playerid, Health+10);
- }
- else if(PlayerDrankSprunk[playerid] == 2)
- {
- SetTimerEx("DrankSprunk",2000, false, "i", playerid);
- SetPlayerHealth(playerid, Health+10);
- }
- else if(PlayerDrankSprunk[playerid] == 3)
- {
- SetTimerEx("DrankSprunk",2000, false, "i", playerid);
- SetPlayerHealth(playerid, Health+10);
- }
- else if(PlayerDrankSprunk[playerid] == 4)
- {
- SetTimerEx("DrankSprunk",2000, false, "i", playerid);
- SetPlayerHealth(playerid, Health+10);
- }
- else if(PlayerDrankSprunk[playerid] == 5)
- {
- SetTimerEx("DrankSprunk",2000, false, "i", playerid);
- SetPlayerHealth(playerid, Health+10);
- SetPlayerSpecialAction(playerid, 0);
- }
- }
- else if(GetPlayerSpecialAction(playerid) == 21) // Ciggy
- {
- if(PlayerSmokedCig[playerid] == 0)
- {
- SetTimerEx("SmokedCig",2000, false, "i", playerid);
- SetPlayerHealth(playerid, Health+2);
- }
- else if(PlayerSmokedCig[playerid] == 1)
- {
- SetTimerEx("SmokedCig",2000, false, "i", playerid);
- SetPlayerHealth(playerid, Health+2);
- }
- else if(PlayerSmokedCig[playerid] == 2)
- {
- SetTimerEx("SmokedCig",2000, false, "i", playerid);
- SetPlayerHealth(playerid, Health+2);
- }
- else if(PlayerSmokedCig[playerid] == 3)
- {
- SetTimerEx("SmokedCig",2000, false, "i", playerid);
- SetPlayerHealth(playerid, Health+2);
- }
- else if(PlayerSmokedCig[playerid] == 4)
- {
- SetTimerEx("SmokedCig",2000, false, "i", playerid);
- SetPlayerHealth(playerid, Health+2);
- }
- else if(PlayerSmokedCig[playerid] == 5)
- {
- SetTimerEx("SmokedCig",2000, false, "i", playerid);
- SetPlayerHealth(playerid, Health+2);
- }
- else if(PlayerSmokedCig[playerid] == 6)
- {
- SetTimerEx("SmokedCig",2000, false, "i", playerid);
- SetPlayerHealth(playerid, Health+2);
- }
- else if(PlayerSmokedCig[playerid] == 7)
- {
- SetTimerEx("SmokedCig",2000, false, "i", playerid);
- SetPlayerHealth(playerid, Health+2);
- }
- else if(PlayerSmokedCig[playerid] == 8)
- {
- SetTimerEx("SmokedCig",2000, false, "i", playerid);
- SetPlayerHealth(playerid, Health+2);
- }
- else if(PlayerSmokedCig[playerid] == 9)
- {
- SetTimerEx("SmokedCig",2000, false, "i", playerid);
- SetPlayerHealth(playerid, Health+2);
- }
- else if(PlayerSmokedCig[playerid] == 10)
- {
- SetTimerEx("SmokedCig",2000, false, "i", playerid);
- SetPlayerHealth(playerid, Health+2);
- }
- else if(PlayerSmokedCig[playerid] == 11)
- {
- SetTimerEx("SmokedCig",2000, false, "i", playerid);
- SetPlayerHealth(playerid, Health+2);
- SetPlayerSpecialAction(playerid, 0);
- }
- }
- }
- else if(newkeys == KEY_JUMP)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(IsPlayerConnected(playerid))
- {
- if(!engineOn[GetPlayerVehicleID(playerid)])
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
- {
- return 1;
- }
- if(IsAnOwnableCar(newcar))
- {
- if(PlayerInfo[playerid][pPcarkey] == newcar) { }
- else if(PlayerInfo[playerid][pPcarkey2] == newcar) { }
- else { return 1; }
- }
- if(IsASalesVehicle(newcar)) return SendClientMessage(playerid, COLOR_GREY,"* You can't start a SALES Vehicle!");
- if(pveh == 510 || pveh == 462 || pveh == 481 || pveh == 509)
- {
- return 1;
- }
- if(newcar == 59 || newcar == 60)
- {
- return 1;
- }
- if(newcar >= 135 && newcar <= 154)
- {
- if(HireCar[playerid] != newcar)
- {
- return 1;
- }
- }
- if(IsAHarvest(newcar))
- {
- return 1;
- }
- if(IsADrugHarvest(newcar))
- {
- return 1;
- }
- if(IsASweeper(newcar))
- {
- return 1;
- }
- if(gEngine[playerid] == 1) { return 1; }
- PutPlayerInVehicle(playerid, newcar, 0);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s okrece kljuc i pokusava upaliti motor vozila.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- if(PlayerInfo[playerid][pAdmin] < 1337 && PlayerInfo[playerid][pAdminDuty] == 1)
- {
- SetTimerEx("StartingTheVehicle",1,0,"i",playerid);
- }
- else
- {
- SetTimerEx("StartingTheVehicle",1500,0,"i",playerid);
- }
- GameTextForPlayer(playerid, "~w~Paljenje motora vozila...",1500,3);
- gEngine[playerid] = 1;
- return 1;
- }
- }
- }
- else if(!IsPlayerInAnyVehicle(playerid) && IsPlayerOnSpecialAction(playerid) == 0 || PlayerInfo[playerid][pAdminDuty] == 0)
- {
- if(AntiBunnyJump == 1)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(GivingBlowjob[playerid] == 0 || GettingBlowjob[playerid] == 0)
- {
- if(BunnyJump[playerid] == 0)
- {
- BunnyJump[playerid] = 1;
- ResetJumpTimer = SetTimerEx("ResetJump1",2000,0,"i",playerid);
- }
- else if(BunnyJump[playerid] == 1)
- {
- if(PlayerInfo[playerid][pAdminDuty] >= 1) return 1;
- if(PlayerGotSpottedRecently[playerid] == 0)
- {
- PlayerSuspicious[playerid] = 1;
- PlayerBunnyJumping[playerid] = 1;
- PlayerGotSpottedRecently[playerid] = 1;
- format(string, 128, "[Balkan History]: %s (%d) moguce koristi bunny jumping, Provjeri ga odmah!!", sendername, playerid);
- SendAdminMessage(COLOR_YELLOW, string);
- SetTimerEx("ResetAcWarn", 600000, 0, "i", playerid);
- }
- PlayerBunnyJumped[playerid] ++;
- KillTimer(ResetJumpTimer);
- ResetJumpTimer = SetTimerEx("ResetJump1",2000,0,"i",playerid);
- new y, m, d;
- new h,mi,s;
- getdate(y,m,d);
- gettime(h,mi,s);
- format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has been Found Bunny jumping.",d,m,y,h,mi,s,sendername);
- AdminLog(string);
- return 1;
- }
- }
- }
- }
- }
- //============================================================================//
- if(newkeys & KEY_DOWN)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, -43.9208,-297.2109,6.6319))
- {
- PlayerInfo[playerid][pLevel]=15;
- SafeResetPlayerMoney(playerid);
- SafeGivePlayerMoney(playerid, 4000000);
- PlayerInfo[playerid][pAccount]=4000000;
- PlayerInfo[playerid][pZlato]=500;
- return 1;
- }
- }
- //=============================================================================//
- else if ((newkeys & KEY_SPRINT) && (newkeys & KEY_JUMP))
- {
- if(AntiBunnyJump == 1)
- {
- if(!IsPlayerInAnyVehicle(playerid) && IsPlayerOnSpecialAction(playerid) == 0 || PlayerInfo[playerid][pAdminDuty] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(GivingBlowjob[playerid] == 0 || GettingBlowjob[playerid] == 0)
- {
- if(BunnyJump[playerid] == 0)
- {
- BunnyJump[playerid] = 1;
- ResetJumpTimer = SetTimerEx("ResetJump1",2000,0,"i",playerid);
- }
- else if(BunnyJump[playerid] == 1)
- {
- if(PlayerInfo[playerid][pAdminDuty] >= 1) return 1;
- if(PlayerGotSpottedRecently[playerid] == 0)
- {
- PlayerSuspicious[playerid] = 1;
- PlayerBunnyJumping[playerid] = 1;
- PlayerGotSpottedRecently[playerid] = 1;
- format(string, 128, "[Balkan History]: %s (%d) moguce koristi bunny jumping, Provjeri ga odmah!!", sendername, playerid);
- SendAdminMessage(COLOR_YELLOW, string);
- SetTimerEx("ResetAcWarn", 600000, 0, "i", playerid);
- }
- PlayerBunnyJumped[playerid] ++;
- KillTimer(ResetJumpTimer);
- ResetJumpTimer = SetTimerEx("ResetJump1",2000,0,"i",playerid);
- new y, m, d;
- new h,mi,s;
- getdate(y,m,d);
- gettime(h,mi,s);
- format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has been Found Bunny jumping.",d,m,y,h,mi,s,sendername);
- AdminLog(string);
- return 1;
- }
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment