Szerző Téma: civil kocsik vezethetoek  (Megtekintve 990 alkalommal)

civil kocsik vezethetoek
« Dátum: 2013. augusztus 30. - 13:39:16 »
0 Show voters
udv van egy gamemodom es a playeerek tudnak minden kocsit vezetnni mi lehet a baj pls help
 

#include <a_samp>
#include <core>
#include <float>
#include <time>
#include <file>
#include <utils>
#include <morphinc>
static gTeam[MAX_PLAYERS];
 
#define REACTION_TIME (60) //Time in minutes between each reaction test.
#define R_STATE_ACTIVE (true)//------
#define R_STATE_NOT_ACTIVE (false) //Reaction states
#define PASSIVE_OFF (false)
#define PASSIVE_ON (true)
#define MIN_WINNINGS (1000) //Lowest amount you can win
#define MAX_WINNINGS (5000) //Highest amount you can win
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == \'\\0\') && (dcmd_%1(playerid, \"\"))) || (((%3)[(%2) + 1] == \' \') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
#define DRUGS_DELAY 6
#define MAX_STRING 255
#define COLOR_V 0xFDD017FF
#define COLOR_AZ 0x43BFC7FF
#define COLOR_GRO 0x347235FF
#define COLOR_MA 0x595454FF
#define COLOR_TX 0xFFF380FF
#define COLOR_NR 0xE8ADAAFF
#define TEAM_MEDIC_COLOR 0xE56E94FF
#define SCM SendClientMessage
#define CHECKPOINT_NONE 0
#define CHECKPOINT_HOME 12
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_VT 0x659EC7FF
#define COLOR_DP 0x7D1B7EFF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD3 0xCBCCCEFF
#define COLOR_GRAD4 0xD8D8D8FF
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_GRAD6 0xF0F0F0FF
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_AFK 0x565656FF
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BBLUE 0x1E519DAA
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_YELLOW2 0xF5DEB3AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_FADE1 0xE6E6E6E6
#define COLOR_FADE2 0xC8C8C8C8
#define COLOR_FADE3 0xAAAAAAAA
#define COLOR_FADE4 0x8C8C8C8C
#define COLOR_FADE5 0x6E6E6E6E
#define COLOR_PURPLE 0xC2A2DAAA
#define COLOR_DBLUE 0x2641FEAA
#define COLOR_ALLDEPT 0xFF8282AA
#define COLOR_NEWS 0xFFA500AA
#define COLOR_OOC 0xE0FFFFAA
#define TEAM_CYAN 1
#define TEAM_BLUE 2
#define TEAM_GREEN 3
#define TEAM_ORANGE 4
#define TEAM_COR 5
#define TEAM_BAR 6
#define TEAM_TAT 7
#define TEAM_CUN 8
#define TEAM_STR 9
#define TEAM_HIT 10
#define TEAM_ADMIN 11
#define OBJECTIVE_COLOR 0x64000064
#define TEAM_GREEN_COLOR 0xFFFFFFAA
#define TEAM_JOB_COLOR 0xFFB6C1AA
#define TEAM_HIT_COLOR 0xFFFFFF00
#define TEAM_BLUE_COLOR 0x8D8DFF00
#define TEAM_GROVE_COLOR 0x00D900C8
#define TEAM_NORTENOS_COLOR 0xFFC801C8
#define TEAM_BALLAS_COLOR 0xD900D3C8
#define TEAM_AZTECAS_COLOR 0x01FCFFC8
#define TEAM HITMANS_COLOR 0x8C0000FF
#define TEAM_CYAN_COLOR 0xFF8282AA
#define COLOR_ORANGE 0xFF9900AA
#define TEAM_COR_COLOR 0x39393900
#define TEAM_BAR_COLOR 0x00D90000
#define TEAM_TAT_COLOR 0xBDCB9200
#define TEAM_CUN_COLOR 0xD900D300
#define TEAM_STR_COLOR 0x01FCFF00
#define TEAM_ADMIN_COLOR 0x00808000
#define COLOR_INVIS 0xAFAFAF00
#define COLOR_SPEC 0xBFC0C200
#pragma tabsize 0
#define ADMIN_SPEC_TYPE_NONE 0
#define ADMIN_SPEC_TYPE_PLAYER 1
#define ADMIN_SPEC_TYPE_VEHICLE 2
#define COLOR_1BLUE 0x0080FFFF
#define COLOR_1GREEN 0x6BD700FF
#define COLOR_1RED 0xFF5B5BFF
#define COLOR_LICENSES 0x0080C0FF
#define COLOR_ADMIN 0xFF4A4AFF
#define COLOR_3DTEXT 0x0063C6FF
//where the player will spawn
#define player_x -250.9738
#define player_y 2585.6497
#define player_z 63.5703
#define player_angle 210.3500
//PLAYER CAMERA, THE ONE YOU CREATE SO YOU CAN SEE THE PLAYER
//note: for a better effect, let the camera be a few meters away from the player
#define camera_x -248.9410
#define camera_y 2581.5327
#define camera_z 64.9334
//ATTENTION; THESE ARE MILISECONDS
//untested, but it should work in theory. The smaller the value, the faster the camera.
#define moving_speed 50
//
#define DIALOGID 1347
#define PTP PlayerToPoint
forward MoveCamera(playerid);
forward LoadDynamicFactions();
forward SaveDynamicFactions();
forward OnPlayerEnterFood(playerid, foodid);
forward OnPlayerExitFood(playerid);
forward OnPlayerSelectedMenuRow(playerid, row);
forward Float:GetDistance(playerid, Float:x, Float:y);
forward UpdateBurgerPositions();
forward ShowMenuBurger(i);
forward UpdateChickenPositions();
forward ShowMenuChicken(i);
forward GateClossse();
forward GateClosse();
forward ReactionTest();
forward LoadProperty();
forward LoadBizz();
forward LoadSBizz();
forward LoadStuff();
forward SaveStuff();
forward LoadCK();
forward SaveCK();
forward LoadFamilies();
forward SaveFamilies();
forward LoadTurfs();
forward SaveTurfs();
forward LoadIRC();
forward SaveIRC();
forward LoadPapers();
forward SavePapers();
forward BackupClear(playerid, calledbytimer);
forward LoadBoxer();
forward SaveBoxer();
forward OnPropUpdate();
forward ExtortionBiz(bizid, money);
forward ExtortionSBiz(bizid, money);
forward JoinChannel(playerid, number, line[]);
forward JoinChannelNr(playerid, number);
forward IsAtClothShop(playerid);
forward IsAtGasStation(playerid);
forward IsAtFishPlace(playerid);
forward IsAtCookPlace(playerid);
forward IsAtBar(playerid);
forward SearchingHit(playerid);
forward DollahScoreUpdate();
forward SetPlayerSpawn(playerid);
forward SetupPlayerForClassSelection(playerid);
forward SetPlayerTeamFromClass(playerid,classid);
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
forward CrimInRange(Float:radi, playerid,copid);
forward SendEnemyMessage(color, string[]);
forward SendTeamBeepMessage(team, color, string[]);
forward ABroadCast(color,const string[],level);
forward DateProp(playerid);
forward GetClosestPlayer(p1);
forward IsPlayerInTurf(playerid, turfid);
forward LoadMission(playerid,name[]);
forward SaveMission(playerid,name[]);
forward PrintBizInfo(playerid,targetid);
forward PrintSBizInfo(playerid,targetid);
forward SetPlayerUnjail();
forward OtherTimer();
forward RingTonerRev();
forward RingToner();
forward HireCost(carid);
forward BanLog(string[]);
forward KickLog(string[]);
forward IsAHarvest(carid);
forward PayLog(string[]);
forward CKLog(string[]);
forward IsATruck(carid);
forward IsAnAmbulance(carid);
forward IsACopCar(carid);
forward IsAPlane(carid);
forward IsABoat(carid);
forward IsACop(playerid);
forward IsAMember(playerid);
forward IsAnInstructor(playerid);
forward Spectator();
forward ConvertTicks(ticks);
forward Encrypt(string[]);
forward KartingEnded();
forward StartKarting();
forward PrepareKarting();
forward PaintballEnded();
forward StartPaintball();
forward PreparePaintball();
forward Float:GetDistanceBetweenPlayers(p1,p2);
forward GameModeExitFunc();
forward SetAllPlayerCheckpoint(Float:allx, Float:ally, Float:allz, Float:radi, num);
forward SetAllCopCheckpoint(Float:allx, Float:ally, Float:allz, Float:radi);
forward SetPlayerCriminal(playerid,declare,reason[]);
forward SetPlayerFree(playerid,declare,reason[]);
forward ShowStats(playerid,targetid);
forward SetPlayerToTeamColor(playerid);
forward GameModeInitExitFunc();
forward OnPlayerChangePass(playerid, password[]);
forward split(const strsrc[], strdest[][], delimiter);
forward OnPlayerLogin(playerid,password[]);
forward OnPlayerUpdate(playerid);
forward OnPlayerRegister(playerid, password[]);
forward BroadCast(color,const string[]);
forward OOCOff(color,const string[]);
forward HBroadCast(color,const string[]);
forward OOCNews(color,const string[]);
forward SendJobMessage(job, color, string[]);
forward SendFamilyMessage(family, color, string[]);
forward SendNewFamilyMessage(family, color, string[]);
forward SendIRCMessage(channel, color, string[]);
forward SendTeamMessage(team, color, string[]);
forward SendRadioMessage(member, color, string[]);
forward SendAdminMessage(color, string[]);
forward SendLeaderMessage(color, string[]);
forward SendFAMessage(color, string[]);
forward SendFA2Message(color, string[]);
forward SendLCNMessage(color, string[]);
forward SendYKZMessage(color, string[]);
forward SendBZMessage(color, string[]);
forward SendCZMessage(color, string[]);
forward SendNTMessage(color, string[]);
forward SendSTMessage(color, string[]);
forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
forward ProxDetectorS(Float:radi, playerid, targetid);
forward ClearCK(ck);
forward ClearFamily(family);
forward ClearMarriage(playerid);
forward ClearPaper(paper);
forward ClearCrime(playerid);
forward FishCost(playerid, fish);
forward ClearFishes(playerid);
forward ClearFishID(playerid, fish);
forward ClearCooking(playerid);
forward ClearCookingID(playerid, cook);
forward ClearGroceries(playerid);
forward Lotto(number);
forward CarCheck();
forward CarInit();
forward CarTow(carid);
forward CarRespawn(carid);
forward LockCar(carid);
forward UnLockCar(carid);
forward InitLockDoors(playerid);
forward CheckGas();
forward Fillup();
forward StoppedVehicle();
forward SyncTime();
forward SyncUp();
forward SaveAccounts();
forward IsPlayerInZone(playerid, zoneid);
forward Production();
forward Checkprop();
forward PayDay();
forward ini_GetKey( line[] );
forward ini_GetValue( line[] );
forward PlayerPlayMusic(playerid);
forward StopMusic();
forward PlayerFixRadio(playerid);
forward PlayerFixRadio2();
forward HouseLevel(playerid);
forward CHouseLevel(houseid);
forward CustomPickups();
forward SetCamBack(playerid);
forward SendHelperMessage(color, string[]);
forward FixHour(hour);
forward AddsOn();
forward OnPlayerPrivmsg(playerid,recieverid,text[]);
//forward TextdrawColorChange();
forward PlayersUpdate();
 
 
//------------------------------------------------------------------------------------------------------
enum Factions
{
fName[50],
Float:fX,
Float:fY,
Float:fZ,
fMats,
fDrugs,
fBank,
fSafe,
};
new CreatedCars[100];
new CreatedCar = 0;
new mrilusion;
new darkpgl;
new devil;
new don;
new amigos;
new aragonnn;
new zrud;
new demolatoru;
new civ1;
new civ2;
new civ3;
new civ4;
new civ5;
new civ6;
new civ7;
new civ8;
new civ9;
new civ10;
new civ11;
new civ12;
new civ13;
new civ14;
new civ15;
new civ16;
new civ17;
new civ18;
new civ19;
new civ20;
new civ21;
new civ22;
new civ23;
new civ24;
new civ25;
new civ26;
new civ27;
new civ28;
new civ29;
new civ30;
new civ31;
new civ32;
new civ33;
new civ34;
new civ35;
new civ36;
new civ37;
new civ38;
new civ39;
new civ40;
new civ41;
new civ42;
new civ43;
new civ44;
new civ45;
new civ46;
new civ47;
new civ48;
new civ49;
new civ50;
new civ51;
new civ52;
new civ53;
new civ54;
new civ55;
new civ56;
new civ57;
new civ58;
new civ59;
new civ60;
new civ61;
new civ62;
new plane1;
new plane2;
new plane3;
new plane4;
new plane5;
new plane6;
new plane7;
new plane8;
new bike1;
new bike2;
new bike3;
new bike4;
new bike5;
new bike6;
new bike7;
new bike8;
new news1;
new news2;
new news3;
new kart1;
new kart2;
new kart3;
new kart4;
new kart5;
new kart6;
new taxi1;
new taxi2;
new taxi3;
new taxi4;
new boat1;
new boat2;
new boat3;
new boat4;
new boat5;
new rent1;
new rent2;
new rent3;
new rent4;
new rent5;
new rent6;
new truck1;
new truck2;
new truck3;
new truck4;
new school1;
new school2;
new school3;
new school4;
new school5;
new school6;
new bus1;
new bus2;
new camion1;
new camion2;
new hitman1;
new hitman2;
new hitman3;
new hitman4;
new medic1;
new medic2;
new medic3;
new medic4;
new medic5;
new medic6;
new cop1;
new cop2;
new cop3;
new cop4;
new cop5;
new cop6;
new cop7;
new cop8;
new cop9;
new cop10;
new cop11;
new cop12;
new cop13;
new cop14;
new cop15;
new cop16;
new cop17;
new cop18;
new cop19;
new cop20;
new cop21;
new cop22;
new cop23;
new cop24;
new cop25;
new cop26;
new cop27;
new cop28;
new cop29;
new cop30;
new cop31;
new cop32;
new cop33;
new cop34;
new cop35;
new cop36;
new cop37;
new cop38;
new cop39;
new cop40;
new cop41;
new cop42;
new cop43;
new cop44;
new cop45;
new cop46;
new cop47;
new cop48;
new cop49;
new cop50;
new DynamicFactions[16][Factions];
new lcn1;
new lcn2;
new lcn3;
new lcn4;
new lcn5;
new yakuza1;
new yakuza2;
new yakuza3;
new yakuza4;
new yakuza5;
new bloodz1;
new bloodz2;
new bloodz3;
new bloodz4;
new bloodz5;
new bloodz6;
new bloodz7;
new cripz1;
new cripz2;
new cripz3;
new cripz4;
new cripz5;
new cripz6;
new nortenoscart1;
new nortenoscart2;
new nortenoscart3;
new nortenoscart4;
new nortenoscart5;
new nortenoscart6;
new surenoscart1;
new surenoscart2;
new surenoscart3;
new surenoscart4;
new surenoscart5;
new surenoscart6;
new swat[MAX_PLAYERS];
new authorizeswat;
new IsMenuShowed[MAX_PLAYERS] = 0;
new BurgerPickUp[9];
new ChickenPickUp[9];
new Menu:cabinet5;
new Menu:cabinet6;
new Menu:cabinet12;
new Menu:cabinet13;
new Menu:cabinet14;
new Menu:cabinet15;
new Menu:BurgerShot;
new Menu:CluckinBell;
new InAFoodPlace[MAX_PLAYERS];
new Menu:burgermenu, Menu:chickenmenu, Menu:pizzamenu, Menu:donutshop;
new burgertimer;
new   chickentimer;
//3D TEXT
new Text3D:housesale;
new Text3D:bizsale;
new Text3D:sbizsale;
//
new JustReported[MAX_PLAYERS];
new PlayerNeedsHelp[MAX_PLAYERS];
new Text:Textdraw0;
new STIPlayer[MAX_PLAYERS];
new CrackOffer[MAX_PLAYERS];
new CrackPrice[MAX_PLAYERS];
new CrackGram[MAX_PLAYERS];
new UsedCrack[MAX_PLAYERS];
new vama1;
new vama2;
new vama3;
new vama4;
new Security = 0;
new Tax = 0;
new vamapd;
new TaxValue = 0;
new IsSmoking[MAX_PLAYERS];
new UsingSmokeAnim[MAX_PLAYERS];
new gatepd;
new specplayerid;
new doorpd;
new gSpectateID[MAX_PLAYERS];
new gSpectateType[MAX_PLAYERS];
new Jackpot = 0;
new StartingPaintballRound = 0;
new AnnouncedPaintballRound = 0;
new PaintballPlayers = 0;
new PaintballRound = 0;
new PaintballWinner = 999;
new PaintballWinnerKills = 0;
new StartingKartRound = 0;
new EndingKartRound = 0;
new AnnouncedKartRound = 0;
new KartingPlayers = 0;
new KartingRound = 0;
new FirstKartWinner = 999;
new SecondKartWinner = 999;
new ThirdKartWinner = 999;
new InRing = 0;
new RoundStarted = 0;
new BoxDelay = 0;
new Boxer1 = 255;
new Boxer2 = 255;
new TBoxer = 255;
new PlayerBoxing[MAX_PLAYERS];
new hitfound = 0;
new hitid = 999;
new Medics = 0;
new MedicCall = 999;
new MedicCallTime[MAX_PLAYERS];
new Mechanics = 0;
new MechanicCall = 999;
new MechanicCallTime[MAX_PLAYERS];
new TaxiDrivers = 0;
new TaxiCall = 999;
new TaxiCallTime[MAX_PLAYERS];
new TaxiAccepted[MAX_PLAYERS];
new BusDrivers = 0;
new BusCall = 999;
new BusCallTime[MAX_PLAYERS];
new BusAccepted[MAX_PLAYERS];
new TransportDuty[MAX_PLAYERS];
new TransportValue[MAX_PLAYERS];
new TransportMoney[MAX_PLAYERS];
new TransportTime[MAX_PLAYERS];
new TransportCost[MAX_PLAYERS];
new TransportDriver[MAX_PLAYERS];
new JobDuty[MAX_PLAYERS];
new RegistrationStep[MAX_PLAYERS];
new MapIconsShown[MAX_PLAYERS];
new OnCK[MAX_PLAYERS];
new GettingCK[MAX_PLAYERS];
new PlayerPaintballing[MAX_PLAYERS];
new PlayerPaintballKills[MAX_PLAYERS];
new PlayerKarting[MAX_PLAYERS];
new PlayerInKart[MAX_PLAYERS];
new PlayerIsHarvesting[MAX_PLAYERS];
new SchoolSpawn[MAX_PLAYERS];
new TakingLesson[MAX_PLAYERS];
new UsedFind[MAX_PLAYERS];
new PlayersChannel[MAX_PLAYERS];
new PlayerOnMission[MAX_PLAYERS];
new MissionCheckpoint[MAX_PLAYERS];
new WatchingTV[MAX_PLAYERS];
new NoFuel[MAX_PLAYERS];
new MatsHolding[MAX_PLAYERS];
new DivorceOffer[MAX_PLAYERS];
new MarriageCeremoney[MAX_PLAYERS];
new ProposeOffer[MAX_PLAYERS];
new ProposedTo[MAX_PLAYERS];
new GotProposedBy[MAX_PLAYERS];
new MarryWitness[MAX_PLAYERS];
new MarryWitnessOffer[MAX_PLAYERS];
new TicketOffer[MAX_PLAYERS];
new TicketMoney[MAX_PLAYERS];
new PlayerStoned[MAX_PLAYERS];
new ConsumingMoney[MAX_PLAYERS];
new BringingPaper[MAX_PLAYERS]; //Paper Boys must pick up a Paper first, then use /deliver
new GotPaper[MAX_PLAYERS]; //The player has a paper so he can use /read
new WritingPaper[MAX_PLAYERS]; //Used for onplayertext so he can type in lines
new WritingPaperNumber[MAX_PLAYERS]; //To which Paper in PaperInfo will it be written
new WritingLine[MAX_PLAYERS]; //Used for onplayertext to see which line he\'s at
new FishCount[MAX_PLAYERS];
new SpawnChange[MAX_PLAYERS];
new TutTime[MAX_PLAYERS];
new PlayerDrunk[MAX_PLAYERS];
new PlayerDrunkTime[MAX_PLAYERS];
new PlayerTazeTime[MAX_PLAYERS];
new FindTimePoints[MAX_PLAYERS];
new FindTime[MAX_PLAYERS];
new BoxWaitTime[MAX_PLAYERS];
new TestFishes[MAX_PLAYERS];
new PaperOffer[MAX_PLAYERS];
new BoxOffer[MAX_PLAYERS];
new CarOffer[MAX_PLAYERS];
new paynext[MAX_PLAYERS];
new CarPrice[MAX_PLAYERS];
new CarID[MAX_PLAYERS];
new CarCalls[MAX_PLAYERS];
new GotHit[MAX_PLAYERS];
new GoChase[MAX_PLAYERS];
new GetChased[MAX_PLAYERS];
new OrderReady[MAX_PLAYERS];
new ConnectedToPC[MAX_PLAYERS];
new MedicTime[MAX_PLAYERS];
new NeedMedicTime[MAX_PLAYERS];
new MedicBill[MAX_PLAYERS];
new PlayerTied[MAX_PLAYERS];
new PlayerCuffed[MAX_PLAYERS];
new PlayerCuffedTime[MAX_PLAYERS];
new LiveOffer[MAX_PLAYERS];
new TalkingLive[MAX_PLAYERS];
new PlacedNews[MAX_PLAYERS];
new SelectChar[MAX_PLAYERS];
new SelectCharID[MAX_PLAYERS];
new SelectCharPlace[MAX_PLAYERS];
new ChosenSkin[MAX_PLAYERS];
new GettingJob[MAX_PLAYERS];
new GuardOffer[MAX_PLAYERS];
new GuardPrice[MAX_PLAYERS];
new ApprovedLawyer[MAX_PLAYERS];
new CallLawyer[MAX_PLAYERS];
new WantLawyer[MAX_PLAYERS];
new CurrentMoney[MAX_PLAYERS];
new KickPlayer[MAX_PLAYERS];
new Robbed[MAX_PLAYERS];
new RobbedTime[MAX_PLAYERS];
new CP[MAX_PLAYERS];
new MoneyMessage[MAX_PLAYERS];
new Condom[MAX_PLAYERS];
new STDPlayer[MAX_PLAYERS];
new SexOffer[MAX_PLAYERS];
new SexPrice[MAX_PLAYERS];
new RepairOffer[MAX_PLAYERS];
new RepairPrice[MAX_PLAYERS];
new RefillOffer[MAX_PLAYERS];
new RefillPrice[MAX_PLAYERS];
new RepairCar[MAX_PLAYERS];
new DrugOffer[MAX_PLAYERS];
new DrugPrice[MAX_PLAYERS];
new DrugGram[MAX_PLAYERS];
new JailPrice[MAX_PLAYERS];
new WantedPoints[MAX_PLAYERS];
new WantedLevel[MAX_PLAYERS];
new OnDuty[MAX_PLAYERS];
new gPlayerCheckpointStatus[MAX_PLAYERS];
new gPlayerLogged[MAX_PLAYERS];
new gPlayerLogTries[MAX_PLAYERS];
new gPlayerSpawned[MAX_PLAYERS];
new gActivePlayers[MAX_PLAYERS];
new gLastCar[301];
new gOoc[MAX_PLAYERS];
new gNews[MAX_PLAYERS];
new gFam[MAX_PLAYERS];
new BigEar[MAX_PLAYERS];
new Spectate[MAX_PLAYERS];
new CellTime[MAX_PLAYERS];
new StartTime[MAX_PLAYERS];
new HireCar[MAX_PLAYERS];
new SafeTime[MAX_PLAYERS];
new HidePM[MAX_PLAYERS];
new PhoneOnline[MAX_PLAYERS];
new gDice[MAX_PLAYERS];
new gGas[MAX_PLAYERS];
new gSpeedo[MAX_PLAYERS];
new gSpentCash[MAX_PLAYERS];
new FirstSpawn[MAX_PLAYERS];
new SwitchKey[MAX_PLAYERS];
new Fixr[MAX_PLAYERS];
new Locator[MAX_PLAYERS];
new Mobile[MAX_PLAYERS];
new RingTone[MAX_PLAYERS];
new CallCost[MAX_PLAYERS];
new gPlayerAccount[MAX_PLAYERS];
new gPlayerMission[MAX_PLAYERS];
new gLastDriver[302];
new gCarLock[265];
new MissionPlayable = 0;
new noooc = 1;
new adds = 1;
new addtimer = 60000;
new Float:rx, Float:ry, Float:rz;
new carselect[15];
new objstore[128];
new cbjstore[128];
new motd[256];
//new RStart;
new ghour = 0;
new gminute = 0;
new gsecond = 0;
new numplayers = 0;
new dollah = 1000; // Amount player recieves on spawn.
new realtime = 1;
new wtime = 15;
new levelcost = 2500;
new deathcost = 50;
new callcost = 10; //20 seconds
new realchat = 1;
new timeshift = -1;
new shifthour;
new othtimer;
new synctimer;
new newmistimer;
new unjailtimer;
new turftimer;
new pickuptimer;
new spectatetimer;
new productiontimer;
new accountstimer;
new checkgastimer;
new stoppedvehtimer;
new cartimer;
new intrate = 1;
new levelexp = 2;
new civnokill = 0;
new suecost = 1000;
new cchargetime = 60;
new txtcost = 25;
new pickups;
new surenos;
new bloods;
new crips;
new nortenos;
new LCN;
new PlayersTimer;
new CIV[] = {7,19,20,23,73,101,122};
new STD1[] = {0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3};
new STD2[] = {0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3};
new STD3[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3};
new STD4[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 3};
new SELLCAR1[] = { 600, 671, 689, 571, 861, 751, 1267, 678, 874, 698, 1000 };
new SELLCAR2[] = { 2099, 2135, 2255, 2378, 2457, 2563, 2614, 2721, 2878, 2988, 3000 };
new SELLCAR3[] = { 3058, 3175, 3212, 3377, 3454, 3555, 3678, 3751, 3865, 3964, 4000 };
new SELLCAR4[] = { 4077, 4123, 4275, 4378, 4422, 4565, 4613, 4752, 4897, 4911, 5000 };
new Float:ChangePos[MAX_PLAYERS][3];
new ChangePos2[MAX_PLAYERS][2];
new Float:TeleportDest[MAX_PLAYERS][3];
new Float:TelePos[MAX_PLAYERS][6];
new vehName[][] = { \"Landstalker\", \"Bravura\", \"Buffalo\", \"Linerunner\", \"Perrenial\", \"Sentinel\", \"Dumper\", \"Firetruck\", \"Trashmaster\", \"Stretch\", \"Manana\", \"Infernus\", \"Voodoo\", \"Pony\", \"Mule\", \"Cheetah\", \"Ambulance\", \"Leviathan\", \"Moonbeam\", \"Esperanto\", \"Taxi\", \"Washington\", \"Bobcat\", \"Whoopee\", \"BF Injection\", \"Hunter\", \"Premier\",
\"Enforcer\", \"Securicar\", \"Banshee\", \"Predator\", \"Bus\", \"Rhino\", \"Barracks\", \"Hotknife\", \"Trailer\", \"Previon\", \"Coach\", \"Cabbie\", \"Stallion\", \"Rumpo\", \"RC Bandit\", \"Romero\", \"Packer\", \"Monster\", \"Admiral\", \"Squalo\", \"Seasparrow\", \"Pizzaboy\", \"Tram\", \"Trailer\", \"Turismo\", \"Speeder\", \"Reefer\", \"Tropic\", \"Flatbed\", \"Yankee\", \"Caddy\",
\"Solair\", \"Berkley\'s RC Van\", \"Skimmer\", \"PCJ-600\", \"Faggio\", \"Freeway\", \"RC Baron\", \"RC Raider\", \"Glendale\", \"Oceanic\", \"Sanchez\", \"Sparrow\", \"Patriot\", \"Quad\", \"Coastguard\", \"Dinghy\", \"Hermes\", \"Sabre\", \"Rustler\", \"ZR-350\", \"Walton\", \"Regina\", \"Comet\", \"BMX\", \"Burrito\", \"Camper\", \"Marquis\", \"Baggage\", \"Dozer\", \"Maverick\",
\"News Chopper\", \"Rancher\", \"FBI Rancher\", \"Virgo\", \"Greenwood\", \"Jetmax\", \"Hotring\", \"Sandking\", \"Blista Compact\", \"Police Maverick\", \"Boxvillde\", \"Benson\", \"Mesa\", \"RC Goblin\", \"Hotring Racer A\", \"Hotring Racer B\", \"Bloodring Banger\", \"Rancher\", \"Super GT\", \"Elegant\", \"Journey\", \"Bike\", \"Mountain Bike\", \"Beagle\", \"Cropduster\",
\"Stunt\", \"Tanker\", \"Roadtrain\", \"Nebula\", \"Majestic\", \"Buccaneer\", \"Shamal\", \"Hydra\", \"FCR-900\", \"NRG-500\", \"HPV1000\", \"Cement Truck\", \"Tow Truck\", \"Fortune\", \"Cadrona\", \"FBI Truck\", \"Willard\", \"Forklift\", \"Tractor\", \"Combine\", \"Feltzer\", \"Remington\", \"Slamvan\", \"Blade\", \"Freight\", \"Streak\", \"Vortex\", \"Vincent\", \"Bullet\", \"Clover\",
\"Sadler\", \"Firetruck\", \"Hustler\", \"Intruder\", \"Primo\", \"Cargobob\", \"Tampa\", \"Sunrise\", \"Merit\", \"Utility\", \"Nevada\", \"Yosemite\", \"Windsor\", \"Monster\", \"Monster\", \"Uranus\", \"Jester\", \"Sultan\", \"Stratum\", \"Elegy\", \"Raindance\", \"RC Tiger\", \"Flash\", \"Tahoma\", \"Savanna\", \"Bandito\", \"Freight Flat\", \"Streak Carriage\", \"Kart\", \"Mower\", \"Dune\",
\"Sweeper\", \"Broadway\", \"Tornado\", \"AT-400\", \"DFT-30\", \"Huntley\", \"Stafford\", \"BF-400\", \"News Van\", \"Tug\", \"Trailer\", \"Emperor\", \"Wayfarer\", \"Euros\", \"Hotdog\", \"Club\", \"Freight Box\", \"Trailer\", \"Andromada\", \"Dodo\", \"RC Cam\", \"Launch\", \"Police Car\", \"Police Car\", \"Police Car\", \"Police Ranger\", \"Picador\", \"S.W.A.T\", \"Alpha\", \"Phoenix\",
\"Glendale\", \"Sadler\", \"Luggage\", \"Luggage\", \"Stairs\", \"Boxville\", \"Tiller\", \"Utility Trailer\" };
new bool:ReactionState = R_STATE_NOT_ACTIVE,
ReactionString[128],
ReactionCash = 0,
bool:PassiveMode = PASSIVE_OFF,
ReactionTimer;
#define GasMax 100
#define RunOutTime 15000
#define RefuelWait 5000
#define CAR_AMOUNT 700 //Change to Your Vehicle Amount
new Gas[CAR_AMOUNT];
 
enum vcInfo
{
Model,
Color1,
Color2,
NumberPlate[16],
Owner[32],
Premium,
};
 

new Refueling[MAX_PLAYERS];
enum SavePlayerPosEnum
{
    Float:LastX,
    Float:LastY,
    Float:LastZ
}
new SavePlayerPos[MAX_PLAYERS][savePlayerPosEnum];
new SpeedMode = 1;
new UpdateSeconds = 1;
public Float:GetDistanceBetweenPlayers(p1,p2)
{
new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2))
{
return -1.00;
}
GetPlayerPos(p1,x1,y1,z1);
GetPlayerPos(p2,x2,y2,z2);
return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
}
new Music[MAX_PLAYERS];
new Songs[7][1] = {
{1187},
{1185},
{1183},
{1097},
{1076},
{1068},
{1062}
};
new Float:BurgerDriveIn[6][3] = {
{801.5522, -1628.91, 13.3828},
{1209.958,-896.7405, 42.9259},
{-2341.86, 1021.184, 50.6953},
{2485.291, 2022.611, 10.8203},
{1859.496, 2084.797, 10.8203},
{-2349.49, -152.182, 35.3203}
};
new Float:ChickenDriveIn[3][3] = {
{2409.651, -1488.65, 23.8281},
{2377.733, -1909.27, 13.3828},
{2375.014, 2021.186, 10.8203}
};
new FishNamesNumber = 22;
new FishNames[22][20] = {
{\"Jacket\"},
{\"Amberjack\"},
{\"Grouper\"},
{\"Red Snapper\"},
{\"Pants\"},
{\"Trout\"},
{\"Blue Marlin\"},
{\"Can\"},
{\"Mackeral\"},
{\"Sea Bass\"},
{\"Shoes\"},
{\"Pike\"},
{\"Sail Fish\"},
{\"Garbage\"},
{\"Tuna\"},
{\"Eel\"},
{\"Dolphin\"},
{\"Shark\"},
{\"Turtle\"},
{\"Catfish\"},
{\"Money Bag\"},
{\"Swordfish\"}
};
new Float:gHarvestPoints[18][3] = {
{-327.6164,-1426.6062,14.5598}, //1
{-306.3139,-1423.9146,14.0919},
{-284.2643,-1421.5404,11.3721},
{-257.2285,-1418.4603,8.0542},
{-222.3625,-1414.0945,5.4301},
{-186.8593,-1409.2898,2.6096},
{-188.4802,-1384.9474,4.4206},
{-210.7086,-1384.4906,5.7144},
{-236.2897,-1384.3077,9.0351},
{-275.0979,-1384.0779,10.3435},
{-311.3219,-1362.3798,8.7448},
{-283.3843,-1360.8395,8.7376},
{-248.1003,-1359.4078,8.7565},
{-197.9429,-1356.7544,4.8841},
{-189.4476,-1330.7228,7.4653},
{-223.2126,-1327.1349,11.0196},
{-262.2792,-1326.7549,8.3698},
{-307.5043,-1328.0129,8.1253} //18
};
new Float:PaintballSpawns[7][3] = {
{-394.8027,2232.2317,42.4297},
{-430.8412,2240.5371,42.9834},
{-369.2361,2248.3127,42.4844},
{-350.8910,2218.0215,42.4912},
{-384.0544,2206.2908,42.4235},
{-395.7100,2214.9480,42.4297},
{-445.3718,2222.5481,42.4297}
};
new Float:gRandomPlayerSpawns[1][3] = {
{2223.8,-1147.1,1025.7} // sp1
};
new Float:gInviteSpawns[10][4] = {
{-1976.5912,166.1818,36.9623,272.6393},
{-1975.8610,162.1945,36.9623,272.0126},
{-1975.7461,157.5404,36.9623,276.1093},
{-1975.2136,151.4920,36.9623,268.2993},
{-1974.9963,145.3430,36.9623,269.2628},
{-1975.5842,140.8170,36.9623,269.8895},
{-1975.7874,134.0368,36.9623,271.7696},
{-1975.1681,129.0926,36.9623,270.8531},
{-1975.9069,121.4700,36.9623,270.5631},
{-1975.3311,112.7078,36.9623,267.7665}
};
/*new Float:gMedicSpawns[2][3] = {
{317.9066,315.6765,999.1484},
{317.6252,311.8465,999.1484}
};*/
new Float:gCopPlayerSpawns[2][3] = {
{1530.8369,-1664.8872,6.2188},
{1530.6913,-1669.4760,6.2188}
//{614.8,-608.2,17.2},
//{611.5,-607.8,17.2}
};
new Float:gMedPlayerSpawns[2][3] = {
{1178.1,-1321.0,14.1},
{1177.7,-1325.0,14.0}
};
enum pBoxingStats
{
    TitelName[128],
    TitelWins,
    TitelLoses,
};
new Titel[pBoxingStats];
enum cCKInfo
{
cSendername[20],
cGiveplayer[20],
cUsed,
};
new CKInfo[10][cCKInfo];
enum pPaperInfo
{
PaperUsed,
PaperMaker[20],
PaperTitle[64],
PaperText1[128],
PaperText2[128],
PaperText3[128],
PaperText4[128],
PaperText5[128],
PaperText6[128],
PaperText7[128],
SafeSaving,
};
new PaperInfo[10][pPaperInfo];
enum pPaper
{
pMaker[20],
pTitle[64],
pLine1[128],
pLine2[128],
pLine3[128],
pLine4[128],
pLine5[128],
pLine6[128],
pLine7[128],
};
new Paper[MAX_PLAYERS][pPaper];
enum fInfo
{
FamilyTaken,
FamilyName[20],
FamilyMOTD[128],
FamilyColor[20],
FamilyLeader[MAX_PLAYER_NAME],
FamilyMembers,
Float:FamilySpawn[4],
FamilyInterior,
};
new FamilyInfo[10][fInfo];
enum zInfo
{
zOwner[64],
zColor[20],
    Float:zMinX,
    Float:zMinY,
    Float:zMaxX,
    Float:zMaxY,
};
new TurfInfo[6][zInfo];
new Turfs[6];
enum pFishing
{
pFish1[20],
pFish2[20],
pFish3[20],
pFish4[20],
pFish5[20],
pWeight1,
pWeight2,
pWeight3,
pWeight4,
pWeight5,
pFid1,
pFid2,
pFid3,
pFid4,
pFid5,
pLastFish,
pFishID,
pLastWeight,
};
new Fishes[MAX_PLAYERS][pFishing];
enum pCooking
{
pCook1[20],
pCook2[20],
pCook3[20],
pCook4[20],
pCook5[20],
pCWeight1,
pCWeight2,
pCWeight3,
pCWeight4,
pCWeight5,
pCookID1,
pCookID2,
pCookID3,
pCookID4,
pCookID5,
};
new Cooking[MAX_PLAYERS][pCooking];
enum pGroceries
{
pChickens,
pChicken,
pHamburgers,
pHamburger,
pPizzas,
pPizza,
};
new Groceries[MAX_PLAYERS][pGroceries];
enum pSpec
{
Float:Coords[3],
Float:sPx,
Float:sPy,
Float:sPz,
sPint,
sLocal,
sCam,
};
new Unspec[MAX_PLAYERS][pSpec];
enum eCars
{
model_id,
Float:pos_x,
Float:pos_y,
Float:pos_z,
Float:z_angle,
};
enum hNews
{
hTaken1,
hTaken2,
hTaken3,
hTaken4,
hTaken5,
hAdd1[128],
hAdd2[128],
hAdd3[128],
hAdd4[128],
hAdd5[128],
hContact1[128],
hContact2[128],
hContact3[128],
hContact4[128],
hContact5[128],
};
new News[hNews];
enum pInfo
{
pKey[128],
pLevel,
pAdmin,
pHelper,
pDonateRank,
gPupgrade,
pConnectTime,
pHMuted,
pReg,
pSex,
pAge,
pOrigin,
pCK,
pMuted,
pMuteTime,
pExp,
pCash,
pAccount,
pCrimes,
pKills,
pDeaths,
pArrested,
    pWantedLevel,
pWantedDeaths,
pPhoneBook,
pLottoNr,
pFishes,
pBiggestFish,
pJob,
pPayCheck,
pHeadValue,
pJailed,
pWarns,
pJailTime,
pMats,
pDrugs,
pLeader,
pMember,
pFMember,
pRank,
pRequestingBackup,
pChar,
pContractTime,
pDetSkill,
pSexSkill,
pBoxSkill,
pLawSkill,
pMechSkill,
pJackSkill,
pCarSkill,
pNewsSkill,
pDrugsSkill,
pCookSkill,
pFishSkill,
Float:pHealth,
Float:pSHealth,
pInt,
pLocal,
pTeam,
pModel,
pPnumber,
pPhousekey,
pPbiskey,
Float:pPos_x,
Float:pPos_y,
Float:pPos_z,
pCarLic,
pFlyLic,
pBoatLic,
pFishLic,
pGunLic,
pGun1,
pGun2,
pGun3,
pGun4,
pAmmo1,
pAmmo2,
pAmmo3,
pAmmo4,
pCarTime,
pPayDay,
pPayDayHad,
pCDPlayer,
pWins,
pLoses,
pAlcoholPerk,
pDrugPerk,
pMiserPerk,
pPainPerk,
pTraderPerk,
pTut,
pMissionNr,
pAdjustable,
pFuel,
pMarried,
pMarriedTo[128],
pPassport,
pCrack,
pCabinetTime,
bool:SpawnDance,
Float:SpawnAngle,
SpawnTimer,
};
new PlayerInfo[MAX_PLAYERS][pInfo];
enum hInfo
{
Float:hEntrancex,
Float:hEntrancey,
Float:hEntrancez,
Float:hExitx,
Float:hExity,
Float:hExitz,
hHealthx,
hHealthy,
hHealthz,
hArmourx,
hArmoury,
hArmourz,
hOwner[MAX_PLAYER_NAME],
hDiscription[MAX_PLAYER_NAME],
hValue,
hHel,
hArm,
hInt,
hLock,
hOwned,
hRooms,
hRent,
hRentabil,
hTakings,
hVec,
hVcol1,
hVcol2,
hDate,
hLevel,
};
new HouseInfo[34][hInfo];
enum bInfo
{
    bOwned,
bOwner[64],
bMessage[128],
bExtortion[MAX_PLAYER_NAME],
Float:bEntranceX,
Float:bEntranceY,
Float:bEntranceZ,
Float:bExitX,
Float:bExitY,
Float:bExitZ,
bLevelNeeded,
bBuyPrice,
bEntranceCost,
bTill,
bLocked,
bInterior,
bProducts,
bMaxProducts,
bPriceProd,
};
new BizzInfo[5][bInfo];
enum sbInfo
{
sbOwned,
sbOwner[64],
sbMessage[128],
sbExtortion[MAX_PLAYER_NAME],
Float:sbEntranceX,
Float:sbEntranceY,
Float:sbEntranceZ,
sbLevelNeeded,
sbBuyPrice,
sbEntranceCost,
sbTill,
sbLocked,
sbInterior,
sbProducts,
sbMaxProducts,
sbPriceProd,
};
new SBizzInfo[12][sbInfo];
enum pHaul
{
pCapasity,
pLoad,
};
new PlayerHaul[100][pHaul];
enum pCrime
{
pBplayer[32],
pAccusing[32],
pAccusedof[32],
pVictim[32],
};
new PlayerCrime[MAX_PLAYERS][pCrime];
enum mInfo
{
    mTitle[128],
    mText1[128],
    mText2[128],
    mText3[128],
    mText4[128],
    mText5[128],
    mText6[128],
    mText7[128],
    mText8[128],
    mText9[128],
    mText10[128],
    mText11[128],
    mText12[128],
    mText13[128],
    mText14[128],
    mText15[128],
    mText16[128],
    mText17[128],
    mText18[128],
    mGText1[128],
    mGText2[128],
    mGText3[128],
    mGText4[128],
    mGText5[128],
    mGText6[128],
Float:mCP1[3],
Float:mCP2[3],
Float:mCP3[3],
Float:mCP4[3],
Float:mCP5[3],
Float:mCP6[3],
mReward,
mToggle,
};
new MissionInfo[mInfo];
enum kInfo
{
    kTitle[128],
    kMaker[MAX_PLAYER_NAME],
    kText1[128],
    kText2[128],
    kText3[128],
    kText4[128],
    kText5[128],
    kText6[128],
    kText7[128],
    kText8[128],
    kText9[128],
    kText10[128],
    kText11[128],
    kText12[128],
    kText13[128],
    kText14[128],
    kText15[128],
    kText16[128],
    kText17[128],
    kText18[128],
    kGText1[128],
    kGText2[128],
    kGText3[128],
    kGText4[128],
    kGText5[128],
    kGText6[128],
Float:kCP1[3],
Float:kCP2[3],
Float:kCP3[3],
Float:kCP4[3],
Float:kCP5[3],
Float:kCP6[3],
kNumber,
kReward,
kToggle,
};
new PlayMission[kInfo];
enum iInfo
{
iAdmin[128],
iMOTD[128],
iPassword[128],
iNeedPass,
iLock,
iPlayers,
};
new IRCInfo[10][iInfo];
new RandCars[20][1] = {
{496},{542},{507},{585},
{466},{492},{579},{559},
{400},{551},{516},{475},
{561},{550},{566},{558},
{562},{562},{603},{560}
};
 
new RandLCars[1][1] = {
{431}// coach
};
 
new GunPrice[30][1] = {
{500}, //parachute
{400}, //golfclub
{300}, //nightstick
{200}, //knife
{700}, //baseballbat
{300}, //shovel
{100}, //poolcue
{400}, //purpledildo
{780}, //whitedildo
{560}, //longwhitedildo
{530}, //whitedildo2
{200}, //flowers
{600}, //cane
{500}, //sdpistol
{1000}, //colt45
{500}, //deagle
{2000}, //Tec9
{3000}, //uzi
{1000}, //mp5
{1200}, //shotgun
{6000}, //spas12
{4000}, //sawnoff
{5000}, //ak47
{5000}, //m4
{1000}, //rifle
{25}, //pistolammo
{40}, //shotgunammo
{25}, //smgammo
{40}, //assaultammo
{50} //rifle
};
new JoinPed[77][1] = {
{280},//POLICE_FORCE
{281},
{282},
{283},
{284},
{285},
{288},
{71},
{166},
{295},
{148},
{286},//FBI/ATF
{164},
{163},
{287},//NATIONAL_GUARD
{285},
{70},//FIRE/AMBULANCE
{274},
{275},
{276},
{277},
{278},
{279},
{258},//LA_COSA_NOSTRA
{127},
{126},
{125},
{124},
{113},
{111},
{98},
{120},//YAKUZA
{121},
{122},
{123},
{169},
{186},
{228},
{127},//HITMANS
{165},
{186},
{93},
{141},
{148},//NEWS_REPORTERS
{188},
{187},
{255},//TAXI_CAB_COMPANY
{253},
{59},//DRIVING/FLYING_SCHOOL
{60},//DRIVING/FLYING_SCHOOL
{76},//DRIVING/FLYING_SCHOOL
{150},//DRIVING/FLYING_SCHOOL
{19},
{180},
{107},
{102},
{103},
{104},
{108},
{109},
{110},
{114},
{116},
{173},
{174},
{175},
{100},
{247},
{248},
{33},
{34},
{161},
{202},
{200},
{269},
(195),
{151}
};
new Peds[217][1] = {
{60},
{288},//TEAM_ADMIN
{286},{287},{228},{113},{120},{147},{294},{227},{61},{171},
{247},//CIVILIANS DOWN HERE
{248},{100},{256},{263},{262},{261},{260},{259},{258},{257},{256},{255},
{253},{252},{251},{249},{246},{245},{244},{243},{242},{241},{240},{239},
{238},{237},{236},{235},{234},{233},{232},{231},{230},{229},
{226},{225},{173},{174},{175},{224},{223},{222},{221},{220},{219},{218},
{217},{216},{215},{214},{213},{212},{211},{210},{209},
{207},{206},{205},{204},{203},{202},{201},{200},{199},{198},{197},{196},
{195},{194},{193},{192},{191},{190},{189},{185},{184},{183},
{182},{181},{180},{179},{178},{176},{172},{170},{168},{167},{162},
{161},{160},{159},{158},{157},{156},{155},{154},{153},{152},{151},
{146},{145},{144},{143},{142},{141},{140},{139},{138},{137},{136},{135},
{134},{133},{132},{131},{130},{129},{128},{254},{99},{97},{96},{95},{94},
{92},{90},{89},{88},{87},{85},{84},{83},{82},{81},{80},{79},{78},{77},{76},
{75},{73},{72},{69},{68},{67},{66},{64},{63},{62},{58},{57},{56},{55},
{54},{53},{52},{51},{50},{49},{45},{44},{43},{41},{39},{38},{37},{36},{35},
{34},{33},{32},{31},{30},{29},{28},{27},{26},{25},{24},{23},{22},{21},{20},
{19},{18},{17},{16},{15},{14},{13},{12},{11},{10},{1},{2},
{290},//ROSE
{291},//PAUL
{292},//CESAR
{293},//OGLOC
{187},
{296},//JIZZY
{297},//MADDOGG
{298},//CAT
{299}//ZERO
};
new Float:HouseCarSpawns[34][4] = {
{-2637.2544,165.0454,4.2919,179.9976},//House 2
{2064.4,-1694.4,13.1,271.1561},//House 1
{-2712.7625,870.3005,70.5348,89.1608},//House 2
{1109.8,-968.0,42.7,0.0},//house 3
{2497.6274,-2025.6306,13.2521,355.4281}, // House 4
{2645.0,-1990.8,13.1,180.0},//House - 5
{-2724.8965,914.8384,67.4253,110.1072},//house 6
{1910.5149,-1120.5304,25.4493,177.8350},//house 7
{828.8,-887.0,68.5,230.7095},//House 8
{2149.6,-1610.9,14.0,90.7904},//House 9
{760.1,-1687.8,4.3,180.6},//House 10
{645.5,-1616.1,14.9,0.0},//House 11
{-2635.2371,931.1931,71.5643,215.3709},//House 12
{-2665.9224,989.9724,64.6955,1.7814},//House 13
{959.5864,-901.0845,45.8584,177.3087},//House 14
{2445.8,-1326.8,23.6,18.4},//House 15
{2845.9,-1286.8,18.9,90.0},//house 16
{2159.8,-1803.9,13.3,271.4}, //House 17
{-2693.7847,132.3186,4.1676,89.5330},//House 18
{-2723.0105,977.7357,54.2926,359.9068},//House 19
{1514.0,-694.6,94.5,90.0},//House 20
{1246.7,-1107.6,25.5,266.4},//House 21
{831.7,-857.5,69.9,180.0},//House 22
{1007.9,-659.4,121.1,130.6194},//House 23
{1110.0,-726.4,100.1,90.0},//House 24
{259.7,-1221.0,74.7,202.0011},//House 25
{1463.7,-901.7,55.8,359.0},//house 26
{1440.1,-890.6,51.2,0.0},//house 27
{-2528.8298,2250.2998,4.8112,334.9590},//house 28
{-2554.7874,2270.5356,4.9064,333.9774}, //House 29
{-2371.1323,2438.4104,9.0698,159.2582},//House 30
{-2237.9492,893.7390,66.4872,89.7571},//House 31
{-2529.4817,-142.6608,19.7107,4.2929}, //House 32
{-2616.1897,-108.4479,4.1693,269.8246}//House 33
};
 
//------------------------------------------------------------------------------------------------------
main()
{
print(\" VenoM Roleplay \");
print(\" \");
}
//------------------------------------------------------------------------------------------------------
 
public SearchingHit(playerid)
{
new string[256];
new giveplayer[MAX_PLAYER_NAME];
new searchhit = 0;
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
    if(searchhit == 0)
    {
       if(PlayerInfo[pHeadValue] > 0 && GotHit == 0 && PlayerInfo[pMember] != 8)
       {
           GetPlayerName(i, giveplayer, sizeof(giveplayer));
           searchhit = 1;
           hitfound = 1;
           hitid = i;
           for(new h = 0; h < GetMaxPlayers(); h++)
         {
            if(IsPlayerConnected(h))
            {
                 if(PlayerInfo[h][pMember] == 8 || PlayerInfo[h][pLeader] == 8)
                 {
                           SendClientMessage(h, COLOR_WHITE, \"|__________________ Hitman ujdonságok __________________|\");
                      SendClientMessage(h, COLOR_DBLUE, \"*** bejövö üzenet: Hitman elérhetõvé vált. ***\");
                      format(string, sizeof(string), \"Ember: %s   ID: %d   Érték: %d $\", giveplayer, i, PlayerInfo[pHeadValue]);
                  SendClientMessage(h, COLOR_DBLUE, string);
                  SendClientMessage(h, COLOR_YELLOW, \"Használd a Givehit és a Hitmanid parancsot, hogy szerzõdj a hitmannel.\");
                  SendClientMessage(h, COLOR_WHITE, \"|________________________________________________________|\");
                     }
             }
         }
         return 0;
       }
   }
}
}
if(searchhit == 0)
{
    SendClientMessage(playerid, COLOR_YELLOW, \"Nincs fent Hitman!\");
}
return 0;
}
 
public ExtortionBiz(bizid, money)
{
    new string[256];
    format(string, sizeof(string), \"No-one\");
    if(strcmp(BizzInfo[bizid][bExtortion],string, true ) == 0 )
{
    return 0;
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        new name[MAX_PLAYER_NAME];
   new wstring[MAX_PLAYER_NAME];
   GetPlayerName(i, name, sizeof(name));
   format(string, sizeof(string), \"%s\", name);
   strmid(wstring, string, 0, strlen(string), 255);
   if(strcmp(BizzInfo[bizid][bExtortion] ,wstring, true ) == 0 )
   {
       new value = money / 100;
       value = value * 10;
       GivePlayerMoney(i, value);
       BizzInfo[bizid][bTill] -= value;
   }
}
}
return 1;
}
public ExtortionSBiz(bizid, money)
{
    new string[256];
    format(string, sizeof(string), \"No-one\");
    if(strcmp(SBizzInfo[bizid][sbExtortion],string, true ) == 0 )
{
    return 0;
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        new name[MAX_PLAYER_NAME];
   new wstring[MAX_PLAYER_NAME];
   GetPlayerName(i, name, sizeof(name));
   format(string, sizeof(string), \"%s\", name);
   strmid(wstring, string, 0, strlen(string), 255);
   if(strcmp(SBizzInfo[bizid][sbExtortion] ,wstring, true ) == 0 )
   {
       new value = money / 100;
       value = value * 10;
       GivePlayerMoney(i, value);
       SBizzInfo[bizid][sbTill] -= value;
   }
}
}
return 1;
}
public PreparePaintball()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        if(PlayerPaintballing != 0)
        {
            SendClientMessage(i, COLOR_YELLOW, \"Paintball ütközet 20 másodperc mulva.\");
        }
}
}
SetTimer(\"StartPaintball\", 20000, 0);
return 1;
}
public StartPaintball()
{
PaintballRound = 1;
StartingPaintballRound = 0;
PaintballWinner = 999;
PaintballWinnerKills = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        if(PlayerPaintballing != 0)
        {
            ResetPlayerWeapons(i);
            GivePlayerWeapon(i, 29, 999);
            TogglePlayerControllable(i, 1);
            SendClientMessage(i, COLOR_YELLOW, \"Paintball ütközés  4 másodperc mulva vége.\");
            PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
        }
    }
}
SetTimer(\"PaintballEnded\", 240000, 0);
return 1;
}
public PaintballEnded()
{
new string[256];
new name[MAX_PLAYER_NAME];
    for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        if(PlayerPaintballing != 0)
        {
            if(IsPlayerConnected(PaintballWinner))
            {
                GetPlayerName(PaintballWinner, name, sizeof(name));
                format(string,sizeof(string), \"** %s nyert! %d embert gyilkolt **\",name,PaintballWinnerKills);
                SendClientMessage(i, COLOR_WHITE, string);
            }
            ResetPlayerWeapons(i);
            PlayerPaintballing = 0;
            SetPlayerPos(i, SBizzInfo[10][sbEntranceX],SBizzInfo[10][sbEntranceY],SBizzInfo[10][sbEntranceZ]);
        }
}
}
AnnouncedPaintballRound = 0;
    PaintballRound = 0;
return 1;
}
public PrepareKarting()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        if(PlayerKarting != 0 && PlayerInKart != 0)
        {
            CP = 9;
      SetPlayerCheckpoint(i,2308.3540,-2354.0039,12.6842,8.0);
      SendClientMessage(i, COLOR_YELLOW, \"a gocart verseny 20 másodperc mulva indul, menyj a starthoz.\");
        }
}
}
SetTimer(\"StartKarting\", 20000, 0);
return 1;
}
public StartKarting()
{
KartingRound = 1;
StartingKartRound = 0;
EndingKartRound = 0;
FirstKartWinner = 999;
SecondKartWinner = 999;
ThirdKartWinner = 999;
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        if(PlayerKarting != 0 && PlayerInKart != 0)
        {
            CP = 10;
            SendClientMessage(i, COLOR_YELLOW, \"Zöld lámpa, nyomjadneki! :D\");
            PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
            SetPlayerCheckpoint(i,2308.3540,-2354.0039,12.6842,8.0);
        }
    }
}
SetTimer(\"KartingEnded\", 240000, 0);
return 1;
}
public KartingEnded()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        if(PlayerKarting != 0 && PlayerInKart != 0)
        {
            CP = 0;
            DisablePlayerCheckpoint(i);
        }
}
}
AnnouncedKartRound = 0;
    KartingRound = 0;
return 1;
}
public DollahScoreUpdate()
{
new LevScore;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
            LevScore = PlayerInfo[pLevel];
   SetPlayerScore(i, LevScore);
}
}
return 1;
}
public Encrypt(string[])
{
for(new x=0; x < strlen(string); x++)
  {
  string
  • += (3^x) * (x % 15);

  if(string
  • > (0xff))

  {
     string
  • -= 256;

  }
  }
return 1;
}
stock right(source[], len)
{
new retval[MAX_STRING], srclen;
srclen = strlen(source);
strmid(retval, source, srclen - len, srclen, MAX_STRING);
return retval;
}
public Spectator()
{
new string[256];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
    if(KickPlayer==1) { Kick(i); }
   else if(KickPlayer==2) { Ban(i); }
   //if(GetPlayerPing(i) >= 500 && PlayerInfo[pAdmin] < 1) { Kick(i); }
   if(Spectate < 253 && Spectate != 255)
   {
      SetPlayerColor(i,COLOR_SPEC);
      TogglePlayerControllable(i, 0);
      new targetid = Spectate;
      if(IsPlayerConnected(targetid))
      {
          TogglePlayerSpectating(i, 1);
          if(PlayerInfo[pAdmin] >= 1)
          {
              new Float:health;
             new name[MAX_PLAYER_NAME];
             GetPlayerName(targetid, name, sizeof(name));
             GetPlayerHealth(targetid, health);
             format(string, sizeof(string), \"~n~~n~~n~~n~~n~~n~~y~%s(ID:%d)~n~~y~health:%.1f\",name,targetid,health);
             GameTextForPlayer(i, string, 2500, 3);
          }
          if(IsPlayerInAnyVehicle(targetid))
         {
             new carid = GetPlayerVehicleID(targetid);
             PlayerSpectateVehicle(i, carid);
         }
         else
         {
             PlayerSpectatePlayer(i, targetid);
         }
         if(GetPlayerInterior(targetid) == 0)
         {
            SetPlayerInterior(i,0);
         }
         else if(GetPlayerInterior(targetid) > 0)
         {
            SetPlayerInterior(i,GetPlayerInterior(targetid));
         }
      }//Targetid connected
   }
   if(Spectate == 253)
   {
      TogglePlayerControllable(i, 1);
      TogglePlayerSpectating(i, 0);
      SetPlayerInterior(i,Unspec[sPint]);
      PlayerInfo[pInt] = Unspec[sPint];
      PlayerInfo[pLocal] = Unspec[sLocal];
      Unspec[sLocal] = 255;
      SetSpawnInfo(i, PlayerInfo[pTeam], PlayerInfo[pModel], Unspec[sPx],  Unspec[sPy], Unspec[sPz]-1.0, 1.0, -1, -1, -1, -1, -1, -1);
      gTeam = PlayerInfo[pTeam];
      SetPlayerToTeamColor(i);
      MedicBill = 0;
      if(PlayerInfo[pDonateRank] > 0)
        {
            SetSpawnInfo(i, PlayerInfo[pTeam], PlayerInfo[pModel], Unspec[Coords][0], Unspec[Coords][1], Unspec[Coords][2], 10.0, -1, -1, -1, -1, -1, -1);
         SpawnPlayer(i);
         SetCameraBehindPlayer(i);
        }
        else
        {
         SpawnPlayer(i);
      }
      Spectate = 255;
   }
   if(Spectate == 254)
   {
      TogglePlayerControllable(i, 1);
      SetPlayerInterior(i,Unspec[sPint]);
      PlayerInfo[pInt] = Unspec[sPint];
      PlayerInfo[pLocal] = Unspec[sLocal];
      SetPlayerPos(i, Unspec[sPx],  Unspec[sPy], Unspec[sPz]);
      Spectate = 255;
   }
   if(Spectate == 256)
   {
      SetPlayerToTeamColor(i);
      Spectate = 255;
   }
   if(Spectate == 257)
   {
      Spectate = 254;
   }
}
}
}
//------------------------------------------------------------------------------------------------------
public IsAnInstructor(playerid)
{
if(IsPlayerConnected(playerid))
{
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==11)
{
    return 1;
}
if(leader==11)
{
    return 1;
}
}
return 0;
}
public IsAMember(playerid)
{
if(IsPlayerConnected(playerid))
{
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==5 || member==6 || member==12 || member==13 || member==14 || member==15)
{
    return 1;
}
if(leader==5 || leader==6 || leader==12 || leader==13 || leader==14 || leader==15)
{
    return 1;
}
}
return 0;
}
public IsACop(playerid)
{
if(IsPlayerConnected(playerid))
{
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==1 || member==2 || member==3)
{
    return 1;
}
else if(leader==1 || leader==2 || leader==3)
{
    return 1;
}
}
return 0;
}
public IsAtClothShop(playerid)
{
    if(IsPlayerConnected(playerid))
{
        if(PlayerToPoint(25.0,playerid,20.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))
{//Binco & Suburban
    return 1;
}
else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047))
{//Zip & Victim
    return 1;
}
}
return 0;
}
public IsAtGasStation(playerid)
{
    if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(6.0,playerid,1004.0070,-939.3102,42.1797) || PlayerToPoint(6.0,playerid,1944.3260,-1772.9254,13.3906))
{//LS
    return 1;
}
else if(PlayerToPoint(6.0,playerid,-90.5515,-1169.4578,2.4079) || PlayerToPoint(6.0,playerid,-1609.7958,-2718.2048,48.5391))
{//LS
    return 1;
}
else if(PlayerToPoint(6.0,playerid,-2029.4968,156.4366,28.9498) || PlayerToPoint(8.0,playerid,-2408.7590,976.0934,45.4175))
{//SF
    return 1;
}
else if(PlayerToPoint(5.0,playerid,-2243.9629,-2560.6477,31.8841) || PlayerToPoint(8.0,playerid,-1676.6323,414.0262,6.9484))
{//Between LS and SF
    return 1;
}
else if(PlayerToPoint(6.0,playerid,2202.2349,2474.3494,10.5258) || PlayerToPoint(10.0,playerid,614.9333,1689.7418,6.6968))
{//LV
    return 1;
}
else if(PlayerToPoint(8.0,playerid,-1328.8250,2677.2173,49.7665) || PlayerToPoint(6.0,playerid,70.3882,1218.6783,18.5165))
{//LV
    return 1;
}
else if(PlayerToPoint(8.0,playerid,2113.7390,920.1079,10.5255) || PlayerToPoint(6.0,playerid,-1327.7218,2678.8723,50.0625))
{//LV
    return 1;
}
}
return 0;
}
public IsAtFishPlace(playerid)
{
if(IsPlayerConnected(playerid))
{
    if(PlayerToPoint(1.0,playerid,403.8266,-2088.7598,7.8359) || PlayerToPoint(1.0,playerid,398.7553,-2088.7490,7.8359))
{//Fishplace at the bigwheel
    return 1;
}
else if(PlayerToPoint(1.0,playerid,396.2197,-2088.6692,7.8359) || PlayerToPoint(1.0,playerid,391.1094,-2088.7976,7.8359))
{//Fishplace at the bigwheel<br

 
[mod]Máskor használj code tageket![/mod]
« Utoljára szerkesztve: 2013. augusztus 30. - 13:44:48 írta ZyZu »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal