Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*//////////////||||||-CREDITS-||||||\\\\\\\\\\\\\\
- //Mustafa - Scripted gamemode from scratch
- //ZCMD
- //YINI
- //SAMP
- //SSCANF
- //Incagnito Streamer
- //SAMP Forums For Tutorials
- //Do Not Remove Credits
- //Credits to Y_Less, Dracoblue and Kush.*/
- #include <a_samp>
- #include <YSI\y_ini>
- #include <removebuilding>
- #include <a_vehicles>
- #include <zcmd>
- #include <sscanf2>
- #include <streamer>
- #include <OPSP>
- #include <House>
- #include <Crops>
- #define PATH "/Users/%s.ini"
- /*COLORS*/
- #define COLOR_BLUE 0x2641FEAA
- #define COLOR_TWWHITE 0xFFFFFFAA
- #define COLOR_TWYELLOW 0xFFFF00AA
- #define COLOR_TWPINK 0xE75480AA
- #define COLOR_TWRED 0xFF0000AA
- #define COLOR_TWBROWN 0x654321AA
- #define COLOR_TWGRAY 0x808080AA
- #define COLOR_TWOLIVE 0x808000AA
- #define COLOR_TWPURPLE 0x800080AA
- #define COLOR_TWTAN 0xD2B48CAA
- #define COLOR_TWAQUA 0x00FFFFAA
- #define COLOR_TWORANGE 0xFF8C00AA
- #define COLOR_TWAZURE 0x007FFFAA
- #define COLOR_TWGREEN 0x008000AA
- #define COLOR_TWBLUE 0x0000FFAA
- #define COLOR_TWBLACK 0x000000AA
- #define COLOR_ORANGE 0xFF8000FF
- #define COLOR_GRAD1 0xB4B5B7FF
- #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_GREEN 0x33AA33AA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_REALRED 0xFF0606FF
- #define COLOR_LIGHTRED 0xFF6347AA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_LIGHTGREEN 0x9ACD32AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_VIP 0xC93CCE00
- #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_PINK 0xFF66FFAA
- #define COLOR_DBLUE 0x2641FEAA
- #define COLOR_ALLDEPT 0xFF8282AA
- #define COLOR_BLACK 0x000000AA
- #define TEAM_SFPD 0x6699FF00
- #define TEAM_SASD 0xCC993300
- #define COLOR_NEWS 0xFFA500AA
- #define COLOR_OOC 0xE0FFFFAA
- #define COLOR_NG 0x9ACD3200
- #define COLOR_TR 0x56B9B900
- #define COLOR_TR2 0x11DCDC00
- #define COLOR_FBI 0x8D8DFFFF
- #define PUBLICRADIO_COLOR 0x6DFB6DFF
- #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 PAINTBALL_TEAM_RED 0xFF000000
- #define PAINTBALL_TEAM_BLUE 0x2641FE00
- #define WANTED_COLOR 0xFF0000FF
- #define FIND_COLOR 0xB90000FF
- // #define COLOR_NOOSE 0xC8B56000
- #define COLOR_NOOSE 0x930A1600
- #define TEAM_GREEN_COLOR 0xFFFFFFAA
- #define TEAM_LSSD_COLOR 0x33AA3300
- #define TEAM_JOB_COLOR 0xFFB6C1AA
- #define TEAM_HIT_COLOR 0xFFFFFF00
- #define TEAM_BLUE_COLOR 0x2641FE00
- #define TEAM_FBI_COLOR 0x8D8DFF00
- #define TEAM_NEWS_COLOR 0x049C7100
- #define TEAM_FDSA_COLOR 0xFF828200
- #define TEAM_TAXI_COLOR 0xF2FF0000
- #define COP_GREEN_COLOR 0x33AA33AA
- #define COLOR_ADD 0x63FF60AA
- #define TEAM_GROVE_COLOR 0x00D900C8
- #define TEAM_VAGOS_COLOR 0xFFC801C8
- #define TEAM_BALLAS_COLOR 0xD900D3C8
- #define TEAM_AZTECAS_COLOR 0x01FCFFC8
- #define TEAM_CYAN_COLOR 0xFF8282AA
- #define TEAM_MED_COLOR 0xFF828200
- #define TEAM_ORANGE_COLOR 0xFF800000
- #define TEAM_APRISON_COLOR 0x9C791200
- #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
- #define DEPTRADIO 0xFFD7004A
- #define RADIO 0x8D8DFFFF
- #define FRADIO 0xAA3333AA
- #define COLOR_NEWBIE 0x7DAEFFFF
- #define COLOR_COMBINEDCHAT 0x6CEFF0FF
- #define COLOR_JOINHELPERCHAT 0xAAC0E4FF
- #define COLOR_HELPERCHAT 0x0BBD5FEC8
- #define COLOR_REPORT 0xFFFF91FF
- #define COLOR_SHOP 0xE7E784FF
- enum pInfo
- {
- pPassword,
- pRegistered,
- pAge,
- pGender,
- pSkin,
- pOrigin,
- pAccent,
- pAdminLevel,
- Float:pHealth,
- Float:pArmour,
- pMoney,
- pBank,
- pJob,
- pFaction,
- pRank,
- pLicense,
- pCocaine,
- pMarijuana,
- pDonater,
- pDonaterPoints,
- pWatch,
- pPhone,
- pPhoneNumber,
- pHouse,
- pCigars,
- pLighter,
- pMask,
- pJailTime,
- pGun01,
- pAmmo01,
- pGun02,
- pAmmo02,
- pGun03,
- pAmmo03,
- pGun04,
- pAmmo04,
- pGun05,
- pAmmo05,
- pGun06,
- pAmmo06,
- pGun07,
- pAmmo07,
- pGun08,
- pAmmo08,
- pGun09,
- pAmmo09,
- pGun11,
- pAmmo11,
- }
- new PlayerInfo[MAX_PLAYERS][pInfo];
- new gPlayerLogged[MAX_PLAYERS];
- new AdminDuty[MAX_PLAYERS];
- new DisabledOOC;
- new PlayerTied[MAX_PLAYERS];
- new PlayerCuffed[MAX_PLAYERS];
- new CellTime[MAX_PLAYERS];
- new PhoneOnline[MAX_PLAYERS];
- new CopDuty[MAX_PLAYERS];
- new TazerCharged[MAX_PLAYERS];
- new Tazer[MAX_PLAYERS];
- new TazerTimeout[MAX_PLAYERS];
- new TryingClothes[MAX_PLAYERS];
- new Mobile[MAX_PLAYERS];
- new HandsupPlayer[MAX_PLAYERS];
- new PlayerRestrained[MAX_PLAYERS];
- new EatingFood[MAX_PLAYERS];
- new SmuggleDropOff[MAX_PLAYERS];
- new HoldingObject[MAX_PLAYERS];
- new RentedCarsTimer[MAX_PLAYERS];
- new Farming[MAX_PLAYERS];
- new PlantingSeeds[MAX_PLAYERS];
- new GrowingCrops[MAX_PLAYERS];
- new FarmingCrops[MAX_PLAYERS];
- new SmugglingMats[MAX_PLAYERS];
- new JackingCar[MAX_PLAYERS];
- new JailTimes[MAX_PLAYERS];
- new GettingJob[MAX_PLAYERS];
- new CollectingTrash[MAX_PLAYERS];
- new CollectingTrash1[MAX_PLAYERS];
- new CollectingTrash2[MAX_PLAYERS];
- new CollectingTrash3[MAX_PLAYERS];
- new CollectingTrash4[MAX_PLAYERS];
- new CollectingTrash5[MAX_PLAYERS];
- new CollectingTrash6[MAX_PLAYERS];
- new CollectingTrash7[MAX_PLAYERS];
- new CollectingTrash8[MAX_PLAYERS];
- new CollectingTrash9[MAX_PLAYERS];
- new CollectingTrash10[MAX_PLAYERS];
- new CollectingTrash11[MAX_PLAYERS];
- new CollectingTrash12[MAX_PLAYERS];
- new CollectingTrash13[MAX_PLAYERS];
- new GettingPacks[MAX_PLAYERS];
- new RentedCar[MAX_PLAYERS];
- new RentedCarTry[MAX_PLAYERS];
- new oldcar[MAX_PLAYERS];
- new newcar[MAX_PLAYERS];
- new DeliveryTruck[MAX_PLAYERS];
- new ShotPlayer[MAX_PLAYERS];
- new Spectating[MAX_PLAYERS];
- new RingTone[MAX_PLAYERS];
- new FarmerTractor[3];
- new FarmerHarvestor[3];
- new DeliveryJob[5];
- new TrashJob[2];
- new SmuggleJob[2];
- new RentalCar[13];
- new PoliceCars[7];
- new MedicCars[3];
- new Text:Textdraw0;
- new Text:Textdraw1;
- new tree1;
- new tree2;
- new tree3;
- new tree4;
- new tree5;
- new treeonetimer;
- new treetwotimer;
- new treethreetimer;
- new treefourtimer;
- new treefivetimer;
- new treeone;
- new treetwo;
- new treethree;
- new treefour;
- new treefive;
- new treeonehp;
- new treetwohp;
- new treethreehp;
- new treefourhp;
- new treefivehp;
- new Text3D:treeonetext;
- new Text3D:treetwotext;
- new Text3D:treethreetext;
- new Text3D:treefourtext;
- new Text3D:treefivetext;
- new Logging[MAX_PLAYERS];
- new ptree[MAX_PLAYERS];
- new engine, lights, alarm, doors, bonnet, boot , objective, panels, tires;
- forward LoadUser_data(playerid,name[],value[]);
- public LoadUser_data(playerid,name[],value[])
- {
- INI_Int("Password",PlayerInfo[playerid][pPassword]);
- INI_Int("Money",PlayerInfo[playerid][pMoney]);
- INI_Int("AdminLevel",PlayerInfo[playerid][pAdminLevel]);
- INI_Int("Registered",PlayerInfo[playerid][pRegistered]);
- INI_Int("Age",PlayerInfo[playerid][pAge]);
- INI_Int("Gender",PlayerInfo[playerid][pGender]);
- INI_Int("Skin",PlayerInfo[playerid][pSkin]);
- INI_Int("Origin",PlayerInfo[playerid][pOrigin]);
- INI_Int("Accent",PlayerInfo[playerid][pAccent]);
- INI_Int("AdminLevel",PlayerInfo[playerid][pAdminLevel]);
- INI_Float("Health",PlayerInfo[playerid][pHealth]);
- INI_Float("Armour",PlayerInfo[playerid][pArmour]);
- INI_Int("Bank",PlayerInfo[playerid][pBank]);
- INI_Int("Job",PlayerInfo[playerid][pJob]);
- INI_Int("Faction",PlayerInfo[playerid][pFaction]);
- INI_Int("Rank",PlayerInfo[playerid][pRank]);
- INI_Int("License",PlayerInfo[playerid][pLicense]);
- INI_Int("Cocaine",PlayerInfo[playerid][pCocaine]);
- INI_Int("Marijuana",PlayerInfo[playerid][pMarijuana]);
- INI_Int("Donater",PlayerInfo[playerid][pDonater]);
- INI_Int("DonaterPoints",PlayerInfo[playerid][pDonaterPoints]);
- INI_Int("Watch",PlayerInfo[playerid][pWatch]);
- INI_Int("Phone",PlayerInfo[playerid][pPhone]);
- INI_Int("PhoneNumber",PlayerInfo[playerid][pPhoneNumber]);
- INI_Int("House",PlayerInfo[playerid][pHouse]);
- INI_Int("Cigars",PlayerInfo[playerid][pCigars]);
- INI_Int("Lighter",PlayerInfo[playerid][pLighter]);
- INI_Int("Mask",PlayerInfo[playerid][pMask]);
- INI_Int("JailTime",PlayerInfo[playerid][pJailTime]);
- INI_Int("Gun01",PlayerInfo[playerid][pGun01]);
- INI_Int("Gun02",PlayerInfo[playerid][pGun02]);
- INI_Int("Gun03",PlayerInfo[playerid][pGun03]);
- INI_Int("Gun04",PlayerInfo[playerid][pGun04]);
- INI_Int("Gun05",PlayerInfo[playerid][pGun05]);
- INI_Int("Gun06",PlayerInfo[playerid][pGun06]);
- INI_Int("Gun07",PlayerInfo[playerid][pGun07]);
- INI_Int("Gun08",PlayerInfo[playerid][pGun08]);
- INI_Int("Gun09",PlayerInfo[playerid][pGun09]);
- INI_Int("Gun11",PlayerInfo[playerid][pGun11]);
- INI_Int("Ammo01",PlayerInfo[playerid][pAmmo01]);
- INI_Int("Ammo02",PlayerInfo[playerid][pAmmo02]);
- INI_Int("Ammo03",PlayerInfo[playerid][pAmmo03]);
- INI_Int("Ammo04",PlayerInfo[playerid][pAmmo04]);
- INI_Int("Ammo05",PlayerInfo[playerid][pAmmo05]);
- INI_Int("Ammo06",PlayerInfo[playerid][pAmmo06]);
- INI_Int("Ammo07",PlayerInfo[playerid][pAmmo07]);
- INI_Int("Ammo08",PlayerInfo[playerid][pAmmo08]);
- INI_Int("Ammo09",PlayerInfo[playerid][pAmmo09]);
- INI_Int("Ammo11",PlayerInfo[playerid][pAmmo11]);
- return 1;
- }
- stock UserPath(playerid)
- {
- new string[128],playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid,playername,sizeof(playername));
- format(string,sizeof(string),PATH,playername);
- return string;
- }
- /*Credits to Dracoblue*/
- stock udb_hash(buf[]) {
- new length=strlen(buf);
- new s1 = 1;
- new s2 = 0;
- new n;
- for (n=0; n<length; n++)
- {
- s1 = (s1 + buf[n]) % 65521;
- s2 = (s2 + s1) % 65521;
- }
- return (s2 << 16) + s1;
- }
- forward LoginTimer(playerid);
- forward IconRespawn(playerid, Float:x, Float:y, Float:z);
- forward Entering(playerid);
- forward Planting(playerid, Float:x, Float:y, Float:z);
- forward JailTimer(playerid);
- forward TrainRegister(playerid);
- forward AfterRegistration(playerid);
- forward Float:GetDistanceBetweenPlayers(p1,p2);
- forward SendRadioMessage(member, color, string[]);
- forward TrashTimer(playerid);
- public TrashTimer(playerid)
- {
- CollectingTrash1[playerid] = 0;
- CollectingTrash2[playerid] = 0;
- CollectingTrash3[playerid] = 0;
- CollectingTrash4[playerid] = 0;
- CollectingTrash5[playerid] = 0;
- CollectingTrash6[playerid] = 0;
- CollectingTrash7[playerid] = 0;
- CollectingTrash8[playerid] = 0;
- CollectingTrash9[playerid] = 0;
- CollectingTrash10[playerid] = 0;
- CollectingTrash11[playerid] = 0;
- CollectingTrash12[playerid] = 0;
- CollectingTrash13[playerid] = 0;
- return 1;
- }
- public SendRadioMessage(member, color, string[])
- {
- foreach(Player, i)
- {
- if(PlayerInfo[i][pFaction] == member)
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- /**/
- stock GetClosestPlayer(playerid) // Not created by me, Dont know who made this.
- {
- new Float:cdist, targetid = -1;
- for(new i; i<MAX_PLAYERS; i++)
- {
- if (IsPlayerConnected(i) && playerid != i && (targetid < 0 || cdist > GetDistanceBetweenPlayers(playerid, i)))
- {
- targetid = i;
- cdist = GetDistanceBetweenPlayers(playerid, i);
- }
- }
- return targetid;
- }
- public Float:GetDistanceBetweenPlayers(p1,p2) // Not created by me, Dont know who made this.
- {
- 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));
- }
- /*ProxDetector*/
- forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
- public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:posx, Float:posy, Float:posz;
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- if(col1 == COLOR_PURPLE || col2 == COLOR_PURPLE
- || col3 == COLOR_PURPLE || col4 == COLOR_PURPLE
- || col5 == COLOR_PURPLE)
- {
- SetPlayerChatBubble(playerid, string, COLOR_PURPLE, radi, 5000);
- }
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- foreach (Player, i)
- {
- if(gPlayerLogged[i] == 1)
- {
- GetPlayerPos(i, posx, posy, posz);
- tempposx = (oldposx -posx);
- tempposy = (oldposy -posy);
- tempposz = (oldposz -posz);
- if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
- {
- if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
- {
- SendClientMessage(i, col1, string);
- }
- }
- else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
- {
- if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
- {
- SendClientMessage(i, col2, string);
- }
- }
- else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
- {
- if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
- {
- SendClientMessage(i, col3, string);
- }
- }
- else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
- {
- if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
- {
- SendClientMessage(i, col4, string);
- }
- }
- else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
- {
- SendClientMessage(i, col5, string);
- }
- }
- }
- }
- }
- return 1;
- }
- stock BackupGuns(playerid)
- {
- GetPlayerWeaponData(playerid, 1, PlayerInfo[playerid][pGun01], PlayerInfo[playerid][pAmmo01]);
- GetPlayerWeaponData(playerid, 2, PlayerInfo[playerid][pGun02], PlayerInfo[playerid][pAmmo02]);
- GetPlayerWeaponData(playerid, 3, PlayerInfo[playerid][pGun03], PlayerInfo[playerid][pAmmo03]);
- GetPlayerWeaponData(playerid, 4, PlayerInfo[playerid][pGun04], PlayerInfo[playerid][pAmmo04]);
- GetPlayerWeaponData(playerid, 5, PlayerInfo[playerid][pGun05], PlayerInfo[playerid][pAmmo05]);
- GetPlayerWeaponData(playerid, 6, PlayerInfo[playerid][pGun06], PlayerInfo[playerid][pAmmo06]);
- GetPlayerWeaponData(playerid, 7, PlayerInfo[playerid][pGun07], PlayerInfo[playerid][pAmmo07]);
- GetPlayerWeaponData(playerid, 8, PlayerInfo[playerid][pGun08], PlayerInfo[playerid][pAmmo08]);
- GetPlayerWeaponData(playerid, 9, PlayerInfo[playerid][pGun09], PlayerInfo[playerid][pAmmo09]);
- GetPlayerWeaponData(playerid, 11, PlayerInfo[playerid][pGun11], PlayerInfo[playerid][pAmmo11]);
- return 1;
- }
- stock GiveGuns(playerid)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun01], PlayerInfo[playerid][pAmmo01]);
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun02], PlayerInfo[playerid][pAmmo02]);
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun03], PlayerInfo[playerid][pAmmo03]);
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun04], PlayerInfo[playerid][pAmmo04]);
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun05], PlayerInfo[playerid][pAmmo05]);
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun06], PlayerInfo[playerid][pAmmo06]);
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun07], PlayerInfo[playerid][pAmmo07]);
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun08], PlayerInfo[playerid][pAmmo08]);
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun09], PlayerInfo[playerid][pAmmo09]);
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun11], PlayerInfo[playerid][pAmmo11]);
- return 1;
- }
- stock ClearWeapons(playerid)
- {
- new INI:File = INI_Open(UserPath(playerid));
- INI_WriteInt(File,"Gun01",PlayerInfo[playerid][pGun01]);
- INI_WriteInt(File,"Gun02",PlayerInfo[playerid][pGun02]);
- INI_WriteInt(File,"Gun03",PlayerInfo[playerid][pGun03]);
- INI_WriteInt(File,"Gun04",PlayerInfo[playerid][pGun04]);
- INI_WriteInt(File,"Gun05",PlayerInfo[playerid][pGun05]);
- INI_WriteInt(File,"Gun06",PlayerInfo[playerid][pGun06]);
- INI_WriteInt(File,"Gun07",PlayerInfo[playerid][pGun07]);
- INI_WriteInt(File,"Gun08",PlayerInfo[playerid][pGun08]);
- INI_WriteInt(File,"Gun09",PlayerInfo[playerid][pGun09]);
- INI_WriteInt(File,"Gun11",PlayerInfo[playerid][pGun11]);
- INI_WriteInt(File,"Ammo01",PlayerInfo[playerid][pAmmo01]);
- INI_WriteInt(File,"Ammo02",PlayerInfo[playerid][pAmmo02]);
- INI_WriteInt(File,"Ammo03",PlayerInfo[playerid][pAmmo03]);
- INI_WriteInt(File,"Ammo04",PlayerInfo[playerid][pAmmo04]);
- INI_WriteInt(File,"Ammo05",PlayerInfo[playerid][pAmmo05]);
- INI_WriteInt(File,"Ammo06",PlayerInfo[playerid][pAmmo06]);
- INI_WriteInt(File,"Ammo07",PlayerInfo[playerid][pAmmo07]);
- INI_WriteInt(File,"Ammo08",PlayerInfo[playerid][pAmmo08]);
- INI_WriteInt(File,"Ammo09",PlayerInfo[playerid][pAmmo09]);
- INI_WriteInt(File,"Ammo11",PlayerInfo[playerid][pAmmo11]);
- ResetPlayerWeapons(playerid);
- return 1;
- }
- stock isNumeric(const string[])
- {
- new length=strlen(string);
- if (length==0) return false;
- for (new i = 0; i < length; i++)
- {
- if (
- (string[i] > '9' || string[i] < '0' && string[i]!='-' && string[i]!='+') // Not a number,'+' or '-'
- || (string[i]=='-' && i!=0) // A '-' but not at first.
- || (string[i]=='+' && i!=0) // A '+' but not at first.
- ) return false;
- }
- if (length==1 && (string[0]=='-' || string[0]=='+')) return false;
- return true;
- }
- stock ABroadCast(color,string[],level)
- {
- foreach(Player, i)
- {
- if (PlayerInfo[i][pAdminLevel] >= level || IsPlayerAdmin(i))
- {
- SendClientMessage(i, color, string);
- //printf("%s", string);
- }
- }
- return 1;
- }
- IsACopCar(carid)
- {
- for(new v = 0; v < sizeof(PoliceCars); v++)
- {
- if(carid == PoliceCars[v]) return 1;
- }
- return 0;
- }
- IsAMedicCar(carid)
- {
- for(new v = 0; v < sizeof(MedicCars); v++)
- {
- if(carid == MedicCars[v]) return 1;
- }
- return 0;
- }
- IsARentCar(carid)
- {
- for(new v = 0; v < sizeof(RentalCar); v++)
- {
- if(carid == RentalCar[v]) return 1;
- }
- return 0;
- }
- IsAFarmerJobTractor(carid)
- {
- for(new v = 0; v < sizeof(FarmerTractor); v++)
- {
- if(carid == FarmerTractor[v]) return 1;
- }
- return 0;
- }
- IsAFarmerJobHarvestor(carid)
- {
- for(new v = 0; v < sizeof(FarmerHarvestor); v++)
- {
- if(carid == FarmerHarvestor[v]) return 1;
- }
- return 0;
- }
- IsASmuggleJobCar(carid)
- {
- for(new v = 0; v < sizeof(SmuggleJob); v++)
- {
- if(carid == SmuggleJob[v]) return 1;
- }
- return 0;
- }
- IsATrashJobCar(carid)
- {
- for(new v = 0; v < sizeof(TrashJob); v++)
- {
- if(carid == TrashJob[v]) return 1;
- }
- return 0;
- }
- GetPlayerNameEx(playerid) {
- new
- sz_playerName[MAX_PLAYER_NAME],
- i_pos;
- GetPlayerName(playerid, sz_playerName, MAX_PLAYER_NAME);
- while ((i_pos = strfind(sz_playerName, "_", false, i_pos)) != -1) sz_playerName[i_pos] = ' ';
- return sz_playerName;
- }
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- public OnGameModeInit()
- {
- ManualVehicleEngineAndLights();
- ShowPlayerMarkers(0);
- DisabledOOC = 0;
- SetGameModeText("S:RPv0");
- DisableInteriorEnterExits();
- EnableStuntBonusForAll(0);
- /*textdraw hospital*/
- Textdraw0 = TextDrawCreate(644.000000, 0.000000, " ");
- TextDrawBackgroundColor(Textdraw0, 255);
- TextDrawFont(Textdraw0, 1);
- TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
- TextDrawColor(Textdraw0, -1);
- TextDrawSetOutline(Textdraw0, 0);
- TextDrawSetProportional(Textdraw0, 1);
- TextDrawSetShadow(Textdraw0, 1);
- TextDrawUseBox(Textdraw0, 1);
- TextDrawBoxColor(Textdraw0, 255);
- TextDrawTextSize(Textdraw0, -11.000000, 0.000000);
- //
- Textdraw1 = TextDrawCreate(170.000000, 192.000000, "you have fainted");
- TextDrawBackgroundColor(Textdraw1, -1);
- TextDrawFont(Textdraw1, 3);
- TextDrawLetterSize(Textdraw1, 1.060000, 4.000000);
- TextDrawColor(Textdraw1, -16776961);
- TextDrawSetOutline(Textdraw1, 0);
- TextDrawSetProportional(Textdraw1, 1);
- TextDrawSetShadow(Textdraw1, 0);
- /*Hospital Interior*/
- CreatePickup(1318, 23, -320.2786, 1048.2366, 20.3403, 0);
- CreatePickup(1318, 23, -665.6400, -745.6810, 1071.7092, 0);
- Create3DTextLabel("Fort Carson Medical Center Enterence \n Type [/enter] to go inside", COLOR_BLUE, -320.2786, 1048.2366, 20.3403, 10, 0);
- Create3DTextLabel("Fort Carson Medical Center Exit \n Type [/exit] to go outside", COLOR_BLUE, -665.6400, -745.6810, 1071.7092, 10, 0);
- /*CreateDynamicObject(1495,321.45312500,310.08325195,998.13409424,0.00000000,0.00000000,0.00000000); //object(gen_doorext01) (1)*/
- CreateDynamicObject(1801,320.01867676,311.40615845,998.14843750,0.00000000,0.00000000,90.00000000); //object(swank_bed_4) (1)
- CreateDynamicObject(1801,320.06387329,315.22592163,998.14843750,0.00000000,0.00000000,90.00000000); //object(swank_bed_4) (2)
- CreateDynamicObject(10252,321.61465454,314.19888306,999.81036377,0.00000000,0.00000000,270.25003052); //object(china_town_gateb) (1)
- CreateDynamicObject(10252,321.57434082,316.04678345,999.81036377,0.00000000,0.00000000,270.50000000); //object(china_town_gateb) (2)
- CreateDynamicObject(10252,321.60086060,318.62142944,999.81036377,0.00000000,0.00000000,270.24719238); //object(china_town_gateb) (3)
- CreateDynamicObject(14593,-674.21026611,-736.06353760,1073.03735352,0.00000000,0.00000000,0.00000000); //object(paperchase04) (1)
- CreateDynamicObject(14597,-667.25073242,-762.99060059,1072.70849609,0.00000000,0.00000000,90.00000000); //object(paperchase07) (1)
- CreateDynamicObject(1491,-668.03210449,-767.33331299,1070.67236328,0.00000000,0.00000000,0.00000000); //object(gen_doorint01) (1)
- CreateDynamicObject(1491,-670.53619385,-764.80633545,1070.72363281,0.00000000,0.00000000,89.75000000); //object(gen_doorint01) (2)
- CreateDynamicObject(1491,-668.26074219,-743.34960938,1070.69738770,0.00000000,0.00000000,0.00000000); //object(gen_doorint01) (3)
- CreateDynamicObject(1491,-670.53204346,-755.43121338,1070.72363281,0.00000000,0.00000000,90.74707031); //object(gen_doorint01) (4)
- CreateDynamicObject(1491,-663.95007324,-755.44012451,1070.72363281,0.00000000,0.00000000,90.74707031); //object(gen_doorint01) (5)
- CreateDynamicObject(1491,-663.96136475,-764.81506348,1070.72363281,0.00000000,0.00000000,89.99707031); //object(gen_doorint01) (6)
- CreateDynamicObject(1801,-680.07043457,-728.97698975,1070.70922852,0.00000000,0.00000000,0.00000000); //object(swank_bed_4) (3)
- CreateDynamicObject(1801,-676.88720703,-728.99365234,1070.70922852,0.00000000,0.00000000,0.00000000); //object(swank_bed_4) (4)
- CreateDynamicObject(1801,-673.61651611,-729.08911133,1070.70922852,0.00000000,0.00000000,0.00000000); //object(swank_bed_4) (5)
- CreateDynamicObject(1808,-680.44793701,-734.40435791,1070.70922852,0.00000000,0.00000000,90.00000000); //object(cj_watercooler2) (1)
- CreateDynamicObject(2131,-665.67889404,-731.28643799,1070.70922852,0.00000000,0.00000000,270.00000000); //object(cj_kitch2_fridge) (1)
- CreateDynamicObject(2132,-665.59399414,-729.12048340,1070.70922852,0.00000000,0.00000000,268.00000000); //object(cj_kitch2_sink) (1)
- CreateDynamicObject(2186,-665.65814209,-734.02673340,1070.70922852,0.00000000,0.00000000,269.75000000); //object(photocopier_1) (1)
- CreateDynamicObject(2627,-658.58496094,-753.37310791,1070.71630859,0.00000000,0.00000000,0.00000000); //object(gym_treadmill) (1)
- CreateDynamicObject(2628,-660.09289551,-758.07080078,1070.72363281,0.00000000,0.00000000,180.00000000); //object(gym_bench2) (1)
- CreateDynamicObject(2630,-656.52441406,-758.04748535,1070.71630859,0.00000000,0.00000000,0.00000000); //object(gym_bike) (1)
- CreateDynamicObject(2700,-680.49975586,-731.17248535,1073.66101074,0.00000000,0.00000000,28.00000000); //object(cj_sex_tv2) (1)
- CreateDynamicObject(2627,-660.49157715,-753.40026855,1070.71630859,0.00000000,0.00000000,0.00000000); //object(gym_treadmill) (2)
- CreateDynamicObject(2627,-656.73071289,-753.30816650,1070.71630859,0.00000000,0.00000000,0.00000000); //object(gym_treadmill) (3)
- CreateDynamicObject(2630,-654.54199219,-758.03417969,1070.71630859,0.00000000,0.00000000,0.00000000); //object(gym_bike) (2)
- CreateDynamicObject(1801,-670.10028076,-736.79187012,1070.70922852,0.00000000,0.00000000,179.25000000); //object(swank_bed_4) (6)
- CreateDynamicObject(1801,-673.45294189,-736.70635986,1070.70922852,0.00000000,0.00000000,179.24743652); //object(swank_bed_4) (7)
- CreateDynamicObject(1801,-676.08898926,-736.70098877,1070.70922852,0.00000000,0.00000000,179.24743652); //object(swank_bed_4) (8)
- CreateDynamicObject(2700,-669.34832764,-734.35339355,1073.96545410,0.00000000,0.00000000,207.49867249); //object(cj_sex_tv2) (2)
- CreateDynamicObject(1808,-669.43164062,-734.37988281,1070.70922852,0.00000000,0.00000000,270.00000000); //object(cj_watercooler2) (2)
- CreateDynamicObject(1808,-669.41601562,-730.79589844,1070.70922852,0.00000000,0.00000000,270.00000000); //object(cj_watercooler2) (3)
- CreateDynamicObject(1808,-680.47570801,-731.09179688,1070.70922852,0.00000000,0.00000000,90.00000000); //object(cj_watercooler2) (4)
- CreateDynamicObject(1780,-671.41363525,-758.47784424,1071.86975098,0.00000000,0.00000000,204.00000000); //object(cj_thin_frige) (1)
- CreateDynamicObject(1789,-669.63641357,-728.91058350,1071.26538086,0.00000000,0.00000000,270.00000000); //object(cj_chambermaid) (1)
- CreateDynamicObject(1808,-673.30346680,-752.10076904,1070.71630859,0.00000000,0.00000000,0.00000000); //object(cj_watercooler2) (5)
- CreateDynamicObject(2170,-680.49859619,-756.02661133,1070.71630859,0.00000000,0.00000000,90.00000000); //object(cj_kitch1_cooker) (1)
- CreateDynamicObject(2361,-678.22174072,-758.67871094,1070.71630859,0.00000000,0.00000000,0.00000000); //object(cj_ice_fridge_1) (1)
- CreateDynamicObject(3072,-654.37353516,-751.93334961,1070.95007324,0.00000000,48.00000000,0.00000000); //object(kmb_dumbbell_l) (1)
- CreateDynamicObject(3071,-654.13409424,-751.96026611,1070.87573242,0.00000000,90.00000000,338.00012207); //object(kmb_dumbbell_r) (1)
- CreateDynamicObject(2994,-677.41394043,-752.17254639,1071.21850586,0.00000000,0.00000000,270.25000000); //object(kmb_trolley) (1)
- CreateDynamicObject(2614,-670.13995361,-746.91979980,1072.48840332,0.00000000,0.00000000,90.00000000); //object(cj_us_flag) (1)
- CreateDynamicObject(1997,-675.32763672,-752.83673096,1070.71630859,0.00000000,0.00000000,0.00000000); //object(hos_trolley) (1)
- CreateDynamicObject(18608,-667.37280273,-758.47741699,1075.33837891,0.00000000,0.00000000,0.00000000); //object(counts_lights01) (1)
- CreateDynamicObject(1619,-673.97125244,-758.89306641,1073.25292969,0.00000000,0.00000000,272.00000000); //object(nt_vent1_01) (1)
- CreateDynamicObject(1886,-664.38977051,-749.85284424,1075.08496094,0.00000000,0.00000000,334.00000000); //object(shop_sec_cam) (1)
- CreateDynamicObject(1989,-679.66845703,-752.05841064,1070.71630859,0.00000000,0.00000000,0.00000000); //object(kb_coolerlft2) (1)
- CreateDynamicObject(2412,-665.36071777,-745.20159912,1070.70922852,0.00000000,0.00000000,270.00000000); //object(cj_detector) (1)
- CreateDynamicObject(2412,-665.33770752,-746.90997314,1070.70922852,0.00000000,0.00000000,270.00000000); //object(cj_detector) (2)
- CreateDynamicObject(2442,-668.63494873,-747.73590088,1070.70922852,0.00000000,0.00000000,0.00000000); //object(cj_ff_conter_4b) (1)
- CreateDynamicObject(2441,-668.19195557,-746.33190918,1070.70922852,0.00000000,0.00000000,90.00000000); //object(cj_ff_conter_4) (1)
- CreateDynamicObject(2442,-668.21472168,-745.37255859,1070.70922852,0.00000000,0.00000000,92.75000000); //object(cj_ff_conter_4b) (3)
- CreateDynamicObject(2443,-683.07409668,-742.68896484,1070.70922852,0.00000000,0.00000000,126.00000000); //object(cj_ff_frige) (1)
- CreateDynamicObject(2771,-668.39324951,-745.12335205,1071.98706055,0.00000000,0.00000000,130.00000000); //object(cj_otb_till_q) (1)
- CreateDynamicObject(18070,-658.85015869,-763.26458740,1071.22338867,0.00000000,0.00000000,180.25000000); //object(gap_counter) (1)
- CreateDynamicObject(2366,-659.15686035,-764.22204590,1070.72363281,0.00000000,0.00000000,0.00000000); //object(cj_duds_rail) (1)
- CreateDynamicObject(1886,-653.84735107,-759.54577637,1075.12756348,0.00000000,0.00000000,306.00000000); //object(shop_sec_cam) (2)
- CreateDynamicObject(2616,-658.91418457,-766.89697266,1072.37805176,0.00000000,0.00000000,180.50004578); //object(police_nb04) (1)
- CreateDynamicObject(1663,-657.88519287,-759.84991455,1071.17651367,0.00000000,0.00000000,0.00000000); //object(swivelchair_b) (1)
- CreateDynamicObject(1663,-659.92175293,-759.85388184,1071.17651367,0.00000000,0.00000000,0.00000000); //object(swivelchair_b) (2)
- CreateDynamicObject(1663,-663.50012207,-760.40270996,1071.17651367,0.00000000,0.00000000,51.25003052); //object(swivelchair_b) (3)
- CreateDynamicObject(1663,-654.30413818,-760.00555420,1071.17651367,0.00000000,0.00000000,323.24572754); //object(swivelchair_b) (4)
- CreateDynamicObject(1663,-654.05718994,-762.59442139,1071.17651367,0.00000000,0.00000000,267.24523926); //object(swivelchair_b) (5)
- CreateDynamicObject(1663,-654.16162109,-765.09350586,1071.17651367,0.00000000,0.00000000,267.24243164); //object(swivelchair_b) (6)
- CreateDynamicObject(1663,-663.44104004,-762.84381104,1071.17651367,0.00000000,0.00000000,59.24243164); //object(swivelchair_b) (7)
- CreateDynamicObject(1714,-667.13159180,-775.32171631,1070.72363281,0.00000000,0.00000000,182.00000000); //object(kb_swivelchair1) (1)
- CreateDynamicObject(1726,-673.79107666,-760.07385254,1070.71630859,0.00000000,0.00000000,0.00000000); //object(mrk_seating2) (1)
- CreateDynamicObject(1726,-677.19158936,-760.06164551,1070.71630859,0.00000000,0.00000000,0.00000000); //object(mrk_seating2) (2)
- CreateDynamicObject(1727,-679.59979248,-760.20794678,1070.71630859,0.00000000,0.00000000,0.00000000); //object(mrk_seating2b) (1)
- CreateDynamicObject(2206,-667.99322510,-773.60504150,1070.71630859,0.00000000,0.00000000,0.00000000); //object(med_office8_desk_02) (1)
- CreateDynamicObject(2311,-676.95428467,-761.95751953,1070.71630859,0.00000000,0.00000000,0.00000000); //object(cj_tv_table2) (1)
- CreateDynamicObject(3383,-675.40502930,-755.88452148,1070.71630859,0.00000000,0.00000000,0.00000000); //object(a51_labtable1_) (1)
- CreateDynamicObject(1828,-667.19287109,-770.83508301,1070.71630859,0.00000000,0.00000000,0.00000000); //object(man_sdr_rug) (1)
- CreateDynamicObject(2002,-664.81396484,-775.26623535,1070.71630859,0.00000000,0.00000000,270.00000000); //object(water_coolnu) (1)
- CreateDynamicObject(2002,-671.09375000,-760.00195312,1070.71630859,0.00000000,0.00000000,0.00000000); //object(water_coolnu) (2)
- CreateDynamicObject(2002,-662.22558594,-752.03125000,1070.71630859,0.00000000,0.00000000,0.00000000); //object(water_coolnu) (3)
- CreateDynamicObject(2099,-680.84228516,-763.46087646,1070.72363281,0.00000000,0.00000000,88.00000000); //object(med_hi_fi_1) (1)
- CreateDynamicObject(2190,-667.79602051,-773.53234863,1071.65283203,0.00000000,0.00000000,0.00000000); //object(pc_1) (1)
- CreateDynamicObject(2186,-669.67712402,-772.50738525,1070.71630859,0.00000000,0.00000000,90.00000000); //object(photocopier_1) (2)
- CreateDynamicObject(2229,-673.72851562,-767.23883057,1070.71630859,0.00000000,0.00000000,184.00000000); //object(swank_speaker) (1)
- CreateDynamicObject(2229,-677.92602539,-767.28784180,1070.71630859,0.00000000,0.00000000,183.99902344); //object(swank_speaker) (2)
- CreateDynamicObject(2297,-674.74810791,-766.70678711,1070.71630859,0.00000000,0.00000000,136.00000000); //object(tv_unit_2) (1)
- CreateDynamicObject(2312,-658.59124756,-751.77209473,1072.67980957,0.00000000,0.00000000,0.00000000); //object(cj_tele_2) (1)
- CreateDynamicObject(2312,-660.70648193,-751.77209473,1072.63562012,0.00000000,0.00000000,0.00000000); //object(cj_tele_2) (2)
- CreateDynamicObject(2312,-656.63342285,-751.77209473,1072.66027832,0.00000000,0.00000000,0.00000000); //object(cj_tele_2) (3)
- /*General Mapping*/
- PoliceCars[0] = AddStaticVehicleEx(599,-220.53585815,991.95916748,19.93913651,0.00000000,0,99,99999); //Police Ranger
- PoliceCars[1] = AddStaticVehicleEx(599,-225.47973633,992.02728271,19.93913651,0.00000000,0,99,99999); //Police Ranger
- PoliceCars[2] = AddStaticVehicleEx(598,-214.55131531,973.12188721,19.19162941,270.00000000,0,99,99999); //Police Car (LVPD)
- PoliceCars[3] = AddStaticVehicleEx(427,-211.23579407,1000.09783936,19.91839409,90.00000000,0,99,99999); //Enforcer
- MedicCars[0] = AddStaticVehicleEx(416, -336.23901367, 1058.04309082, 20.03874397, 88.00000000, 0, 99, 99999); //Ambulance
- MedicCars[1] = AddStaticVehicleEx(407, -335.07095337, 1053.60644531, 20.10916901, 86.00000000, 0, 99, 99999); //Firetruck
- MedicCars[2] = AddStaticVehicleEx(490, -334.3810, 1063.0393, 19.8665, 270.5310, 0, 99, 99999); //FBI Truck
- TrashJob[0] = AddStaticVehicleEx(408,-224.2505,1072.0922,20.2746,87.7463,-1,-1,99999); // Garbage 1
- TrashJob[1] = AddStaticVehicleEx(408,-224.3730,1067.4281,20.2892,90.5949,-1,-1,99999); // Garbage 2
- SmuggleJob[0] = AddStaticVehicleEx(478,-135.02578735,1063.42907715,19.89504242,0.00000000,0,99,99999); //Walton
- SmuggleJob[1] = AddStaticVehicleEx(478,-139.13964844,1063.56640625,19.89504242,0.00000000,0,99,99999); //Walton
- RentalCar[0] = AddStaticVehicleEx(518,-136.19998169,1134.56787109,19.54479599,0.00000000,1,1,99999); //Buccaneer
- RentalCar[1] = AddStaticVehicleEx(445,-136.48240662,1127.45043945,19.73998833,0.00000000,1,1,99999); //Admiral
- RentalCar[2] = AddStaticVehicleEx(466,-141.33613586,1134.78833008,19.66998863,0.00000000,1,1,99999); //Glendale
- RentalCar[3] = AddStaticVehicleEx(507,-141.54219055,1127.29431152,19.69998932,0.00000000,1,1,99999); //Elegant
- RentalCar[4] = AddStaticVehicleEx(529,-141.95312500,1117.77636719,19.48787689,0.00000000,1,1,99999); //Willard
- RentalCar[5] = AddStaticVehicleEx(585,-145.82379150,1134.59790039,19.43911362,0.00000000,1,1,99999); //Emperor
- RentalCar[6] = AddStaticVehicleEx(404,-146.04647827,1118.04321289,19.57998848,0.00000000,1,1,99999); //Perrenial
- RentalCar[7] = AddStaticVehicleEx(458,-145.97238159,1127.26159668,19.71239662,0.00000000,1,1,99999); //Solair
- RentalCar[8] = AddStaticVehicleEx(462,-149.36532593,1116.89135742,19.41240692,0.00000000,1,1,99999); //Faggio
- RentalCar[9] = AddStaticVehicleEx(586,-149.09448242,1123.59826660,19.33918762,0.00000000,1,1,99999); //Wayfarer
- RentalCar[10] = AddStaticVehicleEx(510,-149.01701355,1128.51867676,19.43802834,0.00000000,1,1,99999); //Mountain Bike
- RentalCar[11] = AddStaticVehicleEx(418,-138.13644409,1111.16174316,19.93294525,268.00000000,1,1,99999); //Moonbeam
- RentalCar[12] = AddStaticVehicleEx(401,-145.50923157,1111.45666504,19.61780357,268.00000000,1,1,99999); //Bravura
- CreateDynamicObject(692,103.19075012,1275.59240723,20.14108658,0.00000000,0.00000000,225.99996948); //object(sm_des_bush1) (1)
- CreateDynamicObject(692,104.42808533,1275.76721191,20.14108658,0.00000000,0.00000000,225.99977112); //object(sm_des_bush1) (2)
- CreateDynamicObject(692,102.45616913,1276.85095215,20.14108658,0.00000000,0.00000000,225.99977112); //object(sm_des_bush1) (3)
- CreateDynamicObject(692,103.03619385,1283.09509277,19.96608925,0.00000000,0.00000000,225.99977112); //object(sm_des_bush1) (4)
- CreateDynamicObject(692,101.70566559,1277.40539551,19.96608925,0.00000000,0.00000000,225.99977112); //object(sm_des_bush1) (5)
- CreateDynamicObject(692,104.28309631,1282.09411621,19.96608925,0.00000000,0.00000000,225.99975586); //object(sm_des_bush1) (6)
- CreateDynamicObject(761,104.24455261,1282.94213867,20.02787971,0.00000000,0.00000000,0.00000000); //object(sm_drybrush_sm1) (1)
- CreateDynamicObject(1280,-110.62649536,1284.29638672,18.73046303,0.00000000,0.00000000,276.50000000); //object(parkbench1) (1)
- CreateDynamicObject(3066,-16.68151855,2332.38085938,24.19490051,0.00000000,0.00000000,358.00000000); //object(ammotrn_obj) (1)
- CreateDynamicObject(989,96.39865112,1920.17163086,18.95949554,0.00000000,0.00000000,197.99996948); //object(ac_apgate) (1)
- CreateDynamicObject(1411,-230.37237549,982.86602783,20.19265366,0.00000000,0.00000000,270.00000000); //object(dyn_mesh_1) (1)
- CreateDynamicObject(1411,-230.45727539,986.78210449,20.19265366,0.00000000,0.00000000,270.00000000); //object(dyn_mesh_1) (2)
- CreateDynamicObject(1468,-230.65567017,991.85260010,19.78587341,0.00000000,0.00000000,270.00000000); //object(dyn_mesh_05) (1)
- CreateDynamicObject(1468,-230.65295410,997.11206055,19.78587341,0.00000000,0.00000000,270.00000000); //object(dyn_mesh_05) (2)
- CreateDynamicObject(1468,-230.63107300,1000.53967285,19.87797546,0.00000000,0.00000000,269.75000000); //object(dyn_mesh_05) (3)
- CreateDynamicObject(8841,-118.05907440,1288.54748535,21.50224495,0.00000000,2.00000000,6.00000000); //object(rsdncarprk01_lvs) (1)
- CreateDynamicObject(1280,-115.21377563,1283.72705078,18.73046303,0.00000000,0.00000000,275.99633789); //object(parkbench1) (3)
- CreateDynamicObject(2383,196.77305603,-159.93223572,1000.88940430,0.00000000,0.00000000,0.00000000); //object(cj_6_sweater) (1)
- CreateDynamicObject(2389,198.26855469,-156.94046021,1000.86987305,0.00000000,0.00000000,48.00000000); //object(cj_4_sweaters) (1)
- CreateDynamicObject(2396,200.98999023,-155.57920837,1001.03973389,0.00000000,0.00000000,12.00000000); //object(cj_4_s_sweater) (1)
- CreateDynamicObject(2704,209.38092041,-166.47143555,1000.23022461,0.00000000,0.00000000,0.00000000); //object(cj_hoodie_3) (1)
- CreateDynamicObject(2844,215.23701477,-160.61378479,999.53063965,0.00000000,0.00000000,0.00000000); //object(gb_bedclothes03) (1)
- CreateDynamicObject(2706,207.64276123,-166.44700623,1000.23022461,0.00000000,0.00000000,0.00000000); //object(cj_hoodie_05) (1)
- CreateDynamicObject(2689,201.50064087,-166.80615234,1000.23022461,0.00000000,0.00000000,88.00000000); //object(cj_hoodie_2) (1)
- CreateDynamicObject(2384,199.95616150,-166.37669373,999.93237305,0.00000000,0.00000000,0.00000000); //object(cj_8_jeans_dark) (1)
- CreateDynamicObject(2384,199.47787476,-166.25817871,999.93237305,0.00000000,0.00000000,0.00000000); //object(cj_8_jeans_dark) (2)
- /*Logger Job*/
- Create3DTextLabel("[Logger Job]\n Type [/join] to become a logger", COLOR_ORANGE, 149.1544, 1140.2843, 14.5224, 20, 0);
- new string[50];
- treeonehp = 100;
- treetwohp = 100;
- treethreehp = 100;
- treefourhp = 100;
- treefivehp = 100;
- format(string, sizeof(string), "[Logger Job]\n Tree Health: %i", treeonehp);
- treeonetext = Create3DTextLabel(string, COLOR_ORANGE, 138.09, 1154.34, 14.30, 20, 0);
- format(string, sizeof(string), "[Logger Job]\n Tree Health: %i", treetwohp);
- treetwotext = Create3DTextLabel(string, COLOR_ORANGE, 142.09, 1123.95, 12.39, 20, 0);
- format(string, sizeof(string), "[Logger Job]\n Tree Health: %i", treethreehp);
- treethreetext = Create3DTextLabel(string, COLOR_ORANGE, 122.14, 1136.34, 13.28, 20, 0);
- format(string, sizeof(string), "[Logger Job]\n Tree Health: %i", treefourhp);
- treefourtext = Create3DTextLabel(string, COLOR_ORANGE, 103.93, 1118.94, 12.50, 20, 0);
- format(string, sizeof(string), "[Logger Job]\n Tree Health: %i", treefivehp);
- treefivetext = Create3DTextLabel(string, COLOR_ORANGE, 94.83, 1134.52, 14.86, 20, 0);
- /*Farmer Job*/
- FarmerHarvestor[0] = AddStaticVehicleEx(532, 272.5320, 1143.5581, 11.7055, 90.0000, -1, -1, 1800);
- FarmerTractor[0] = AddStaticVehicleEx(531, 292.0416, 1146.5790, 8.6000, -90.0000, -1, -1, 1800);
- FarmerTractor[1] = AddStaticVehicleEx(531, 297.5332, 1147.2765, 8.6000, -90.0000, -1, -1, 1800);
- FarmerTractor[2] = AddStaticVehicleEx(531, 292.7925, 1135.1927, 8.6700, -90.0000, -1, -1, 1800);
- FarmerHarvestor[1] = AddStaticVehicleEx(532, 267.5546, 1107.2004, 13.1575, 180.0000, -1, -1, 1800);
- FarmerHarvestor[2] = AddStaticVehicleEx(532, 272.1891, 1133.6174, 11.7055, 90.0000, -1, -1, 1800);
- /*Delivery Job*/
- DeliveryJob[0] = AddStaticVehicleEx(455,572.6927,1214.9921,12.3986,209.9860,-1,-1,99999); // JobCar1
- DeliveryJob[1] = AddStaticVehicleEx(455,579.6694,1218.5455,12.1734,28.1968,-1,-1,99999); // JobCar2
- DeliveryJob[2] = AddStaticVehicleEx(455,617.2603,1225.0040,12.1555,117.2780,-1,-1,99999); // JobCar3
- DeliveryJob[3] = AddStaticVehicleEx(455,613.0629,1232.5104,12.1747,301.7446,-1,-1,99999); // JobCar4
- /*Buying Seeds*/
- Create3DTextLabel("Farm resource shop, type [/buy] to purchase seeds", COLOR_BLUE, 300.6143, 1141.2806, 9.1375, 10, 0);
- /*PowerTool*/
- Create3DTextLabel("Fort Carson Powertools \n Type [/buy] to purchase a weapon", COLOR_BLUE, 311.6373, -166.1311, 999.6010, 10, 0);
- /*Donut Shop*/
- CreatePickup(1318, 23, -144.1138, 1224.9894, 19.8992, 0);
- CreatePickup(1318, 23, 377.1044, -193.3044, 1000.6328, 0);
- Create3DTextLabel("Donut Shop Enterence \n Type [/enter] to go inside", COLOR_BLUE, -144.1138, 1224.9894, 19.8992, 10, 0);
- Create3DTextLabel("Donut Shop Exit \n Type [/exit] to go outside", COLOR_BLUE, 377.1044, -193.3044, 1000.6328, 10, 0);
- Create3DTextLabel("Donut Shop \n Type [/buy] to order a meal", COLOR_BLUE, 380.6606, -188.6519, 1000.6328, 10, 0);
- /*Fashion World*/
- CreatePickup(1318, 23, -179.4808, 1177.5085, 19.8909, 0);
- CreatePickup(1318, 23, 204.3610, -168.8571, 1000.5234, 0);
- Create3DTextLabel("Fashion World Enterence \n Type [/enter] to go inside", COLOR_BLUE, -179.4808, 1177.5085, 19.8909, 10, 0);
- Create3DTextLabel("Fashion World Exit \n Type [/exit] to go outside", COLOR_BLUE, 204.3610, -168.8571, 1000.5234, 10, 0);
- Create3DTextLabel("Type [/buy] to buy the clothes \n that you are currently trying on", COLOR_BLUE, 204.2790, -159.3536, 1000.5234, 15, 0);
- Create3DTextLabel("Type [/tryon] to try on these clothes", COLOR_BLUE, 199.0392,-162.7294,1000.5234, 10, 0);
- Create3DTextLabel("Type [/tryon] to try on these clothes", COLOR_BLUE, 209.7188,-162.7050,1000.5234, 10, 0);
- Create3DTextLabel("Type [/tryon] to try on these clothes", COLOR_BLUE, 206.1754,-161.6224,1001.7235, 10, 0);
- Create3DTextLabel("Type [/tryon] to try on these clothes", COLOR_BLUE, 206.4646,-164.3621,1001.7235, 10, 0);
- Create3DTextLabel("Type [/tryon] to try on these clothes", COLOR_BLUE, 202.4623,-164.0576,1001.7235, 10, 0);
- Create3DTextLabel("Type [/tryon] to try on these clothes", COLOR_BLUE, 202.4364,-161.8771,1001.7235, 10, 0);
- Create3DTextLabel("Type [/takeoff] to take off the clothes", COLOR_BLUE, 215.9261, -158.9923, 1000.5306, 30, 0);
- /*Bank*/
- CreatePickup(1318, 23, -179.4907, 1133.0532, 19.7422, 0);
- CreatePickup(1318, 23, 2304.9590, -16.1474, 26.7422, 0);
- Create3DTextLabel("Fort Carson Town Bank Enterence \n Type [/enter] to go inside", COLOR_BLUE, -179.4907, 1133.0532, 19.7422, 10, 0);
- Create3DTextLabel("Fort Carson Town Bank Exit \n Type [/exit] to go outside", COLOR_BLUE, 2304.9590, -16.1474, 26.7422, 10, 0);
- Create3DTextLabel("Bank Teller \n Type [/bank] to begin transactions", COLOR_BLUE, 2316.6213,-7.5990,26.7422, 10, 0);
- Create3DTextLabel("Bank Teller \n Type [/bank] to begin transactions", COLOR_BLUE, 2316.6199,-10.1284,26.7422, 10, 0);
- Create3DTextLabel("Bank Teller \n Type [/bank] to begin transactions", COLOR_BLUE, 2316.6196,-12.7045,26.7422, 10, 0);
- Create3DTextLabel("Bank Teller \n Type [/bank] to begin transactions", COLOR_BLUE, 2316.6182,-15.3364,26.7422, 10, 0);
- /*Sheriff Department*/
- CreatePickup(1318, 23, -224.2236,988.6121,19.6565, 0);
- CreatePickup(1318, 23, -224.3224,987.2881,19.6600, 0);
- Create3DTextLabel("Fort Carson Sheriff's Department Enterence \n Type [/enter] to go inside", COLOR_BLUE, -224.2236,988.6121,19.6565, 3, 0);
- Create3DTextLabel("Fort Carson Sheriff's Department Exit \n Type [/exit] to go outside", COLOR_BLUE, -224.3224,987.2881,19.6600, 1, 0);
- Create3DTextLabel("Fort Carson Sheriff's Department Lockers \n Type [/duty] to change your current duty", COLOR_BLUE,-229.2414,983.4330,19.6600, 10, 0);
- /*24/7 Store*/
- CreatePickup(1318, 23, -19.1319, 1175.4475, 19.5634, 0);
- CreatePickup(1318, 23, -27.3909, -58.0451, 1003.5469, 0);
- Create3DTextLabel("Use [/buy] to purchase \n from the General store", COLOR_BLUE, -23.2030, -55.6182, 1003.5469, 10, 0);
- Create3DTextLabel("Fort Carson General Store Enterence \n Type [/enter] to go inside", COLOR_BLUE, -19.1319, 1175.4475, 19.5634, 10, 0);
- Create3DTextLabel("Fort Carson General Store Exit \n Type [/exit] to go outside", COLOR_BLUE, -27.3909, -58.0451, 1003.5469, 10, 0);
- /*City Hall Interior*/
- Create3DTextLabel("Fort Carson Town Hall Enterence \n Type [/enter] to go inside", COLOR_BLUE, -207.5546, 1119.1989, 20.4297, 10, 0);
- Create3DTextLabel("Fort Carson Town Hall Exit \n Type [/exit] to go outside", COLOR_BLUE, -2063.8120, 549.8588, 1173.051, 10, 0);
- CreatePickup(1318, 23, -207.7115, 1119.1670, 20.4297, 0);
- CreatePickup(1318, 23, -2064.0215, 549.8762, 1173.0511, 0);
- CreateDynamicObject(14846, -2062.42578125, 548.7724609375, 1173.0902099609, 0, 0, 0);
- CreateDynamicObject(3034, -2069.4028320313, 560.06939697266, 1173.9997558594, 0, 0, 90);
- CreateDynamicObject(3034, -2069.4028320313, 556.45355224609, 1174.0061035156, 0, 0, 90);
- CreateDynamicObject(977, -2064.9008789063, 549.30596923828, 1173.1795654297, 0, 0, 11.659912109375);
- CreateDynamicObject(2161, -2058.2778320313, 564.47357177734, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(2163, -2060.2548828125, 564.48046875, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(2164, -2062.2783203125, 564.48284912109, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(2167, -2067.837890625, 568.5068359375, 1172.0573730469, 0, 0, 0);
- CreateDynamicObject(2197, -2069.8002929688, 565.74432373047, 1172.0511474609, 0, 0, 89.730041503906);
- CreateDynamicObject(2191, -2059.3625488281, 576.52496337891, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(2199, -2062.4438476563, 568.44244384766, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(2200, -2067.0244140625, 571.16046142578, 1172.0511474609, 0, 0, 270);
- CreateDynamicObject(2208, -2067.2114257813, 553.02825927734, 1172.0511474609, 0, 0, 90);
- CreateDynamicObject(2007, -2057.6469726563, 555.28845214844, 1172.0511474609, 0, 0, 270);
- CreateDynamicObject(2165, -2058.6740722656, 557.02416992188, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(2166, -2060.6394042969, 556.04016113281, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(2172, -2063.3986816406, 576.52484130859, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(2193, -2065.4060058594, 575.525390625, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(2198, -2065.3679199219, 573.54064941406, 1172.0511474609, 0, 0, 90);
- CreateDynamicObject(2207, -2059.9951171875, 571.91918945313, 1172.0511474609, 0, 0, 90);
- CreateDynamicObject(2166, -2059.6467285156, 558.01202392578, 1172.0511474609, 0, 0, 90);
- CreateDynamicObject(2165, -2057.6701660156, 558.02819824219, 1172.0511474609, 0, 0, 180);
- CreateDynamicObject(2604, -2059.0146484375, 561.08459472656, 1172.8480224609, 0, 0, 0);
- CreateDynamicObject(2608, -2057.3542480469, 551.07342529297, 1172.7625732422, 0, 0, 270);
- CreateDynamicObject(2737, -2059.6625976563, 564.47259521484, 1173.8820800781, 0, 0, 0);
- CreateDynamicObject(2434, -2064.5212402344, 553.05541992188, 1172.0511474609, 0, 0, 270);
- CreateDynamicObject(2435, -2057.845703125, 552.89080810547, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(2435, -2058.771484375, 552.89080810547, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(2435, -2059.7006835938, 552.89080810547, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(2435, -2060.6313476563, 552.89080810547, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(2435, -2061.5505371094, 552.89080810547, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(2435, -2063.3889160156, 552.89080810547, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(2435, -2062.4577636719, 552.89080810547, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(2435, -2056.9328613281, 552.89080810547, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(2435, -2064.5170898438, 553.98004150391, 1172.0511474609, 0, 0, 270);
- CreateDynamicObject(2435, -2064.5170898438, 554.89849853516, 1172.0511474609, 0, 0, 270);
- CreateDynamicObject(2435, -2064.5170898438, 555.82641601563, 1172.0511474609, 0, 0, 270);
- CreateDynamicObject(2435, -2064.5170898438, 556.75341796875, 1172.0511474609, 0, 0, 270);
- CreateDynamicObject(2207, -2061.9145507813, 573.76788330078, 1172.0511474609, 0, 0, 270);
- CreateDynamicObject(2007, -2057.6452636719, 554.29620361328, 1172.0511474609, 0, 0, 270);
- CreateDynamicObject(2435, -2064.5170898438, 560.00164794922, 1172.0511474609, 0, 0, 270);
- CreateDynamicObject(2434, -2064.3581542969, 561.13348388672, 1172.0511474609, 0, 0, 180);
- CreateDynamicObject(2435, -2064.5170898438, 559.07550048828, 1172.0511474609, 0, 0, 270);
- CreateDynamicObject(2435, -2063.4294433594, 561.13336181641, 1172.0511474609, 0, 0, 180);
- CreateDynamicObject(2435, -2061.2900390625, 561.13336181641, 1172.0511474609, 0, 0, 179.99450683594);
- CreateDynamicObject(2435, -2062.0197753906, 561.13336181641, 1172.0511474609, 0, 0, 179.99450683594);
- CreateDynamicObject(2435, -2062.7341308594, 561.13336181641, 1172.0511474609, 0, 0, 179.99450683594);
- CreateDynamicObject(2172, -2061.400390625, 576.52972412109, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(2198, -2065.3645019531, 571.54370117188, 1172.0511474609, 0, 0, 90);
- CreateDynamicObject(2193, -2064.3896484375, 569.55603027344, 1172.0511474609, 0, 0, 89.730041503906);
- CreateDynamicObject(2172, -2062.408203125, 569.52728271484, 1172.0511474609, 0, 0, 180);
- CreateDynamicObject(2191, -2057.8984375, 576.52545166016, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(949, -2057.5888671875, 552.93597412109, 1173.7429199219, 0, 0, 0);
- CreateDynamicObject(949, -2064.3813476563, 560.85479736328, 1173.7429199219, 0, 0, 0);
- CreateDynamicObject(2010, -2060.9145507813, 572.833984375, 1172.0546875, 0, 0, 0);
- CreateDynamicObject(2604, -2057.298828125, 572.03442382813, 1172.8480224609, 0, 0, 270);
- CreateDynamicObject(949, -2057.4084472656, 569.57342529297, 1172.6873779297, 0, 0, 0);
- CreateDynamicObject(2202, -2057.3381347656, 575.32269287109, 1172.0511474609, 0, 0, 270);
- CreateDynamicObject(2202, -2061.5930175781, 557.17846679688, 1172.0511474609, 0, 0, 270);
- CreateDynamicObject(2169, -2061.6691894531, 558.97882080078, 1172.0511474609, 0, 0, 270.27026367188);
- CreateDynamicObject(1964, -2061.7421875, 558.8740234375, 1172.9991455078, 0, 0, 90);
- CreateDynamicObject(2197, -2069.7912597656, 566.53100585938, 1172.0511474609, 0, 0, 89.725341796875);
- CreateDynamicObject(2164, -2066.9885253906, 573.16131591797, 1172.0511474609, 0, 0, 270);
- CreateDynamicObject(2161, -2069.0546875, 574.00061035156, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(2161, -2070.5134277344, 574.00280761719, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(2164, -2072.4611816406, 573.96221923828, 1172.0587158203, 0, 0, 0);
- CreateDynamicObject(1742, -2064.0715332031, 568.46514892578, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(949, -2061.3994140625, 569.45190429688, 1172.6873779297, 0, 0, 0);
- CreateDynamicObject(2169, -2059.8361816406, 565.48138427734, 1172.0511474609, 0, 0, 180);
- CreateDynamicObject(1964, -2059.9816894531, 565.57183837891, 1172.9991455078, 0, 0, 0);
- CreateDynamicObject(949, -2061.8859863281, 565.35107421875, 1172.6873779297, 0, 0, 0);
- CreateDynamicObject(2169, -2071.5773925781, 569.51104736328, 1172.0511474609, 0, 0, 180);
- CreateDynamicObject(2169, -2073.4379882813, 570.35626220703, 1172.0587158203, 0, 0, 90);
- CreateDynamicObject(1964, -2071.71484375, 569.57220458984, 1172.9991455078, 0, 0, 0);
- CreateDynamicObject(1964, -2073.3747558594, 570.50732421875, 1173.0067138672, 0, 0, 270);
- CreateDynamicObject(2010, -2073.4753417969, 569.41552734375, 1172.0280761719, 0, 0, 0);
- CreateDynamicObject(2208, -2067.2114257813, 558.42974853516, 1172.0511474609, 0, 0, 90);
- CreateDynamicObject(1722, -2058.6174316406, 549.64477539063, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(1722, -2059.2736816406, 549.64147949219, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(1722, -2059.9482421875, 549.63360595703, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(1722, -2060.6157226563, 549.62689208984, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(1806, -2058.0229492188, 555.95904541016, 1172.0511474609, 0, 0, 3.969970703125);
- CreateDynamicObject(1806, -2060.0009765625, 556.06390380859, 1172.0511474609, 0, 0, 7.9376220703125);
- CreateDynamicObject(1806, -2059.6254882813, 558.99035644531, 1172.0511474609, 0, 0, 173.45617675781);
- CreateDynamicObject(1806, -2058.1127929688, 558.51654052734, 1172.0511474609, 0, 0, 173.4521484375);
- CreateDynamicObject(1806, -2062.1062011719, 558.49243164063, 1172.0511474609, 0, 0, 267.10693359375);
- CreateDynamicObject(1806, -2062.7385253906, 576.13836669922, 1172.0511474609, 0, 0, 0);
- CreateDynamicObject(1806, -2060.8623046875, 576.15759277344, 1172.0511474609, 0, 0, 3.969970703125);
- CreateDynamicObject(1806, -2064.8276367188, 576.23132324219, 1172.0511474609, 0, 0, 354.04504394531);
- CreateDynamicObject(1806, -2063.9443359375, 574.322265625, 1172.0511474609, 0, 0, 93.696105957031);
- CreateDynamicObject(1806, -2064.8425292969, 572.15704345703, 1172.0511474609, 0, 0, 79.799560546875);
- CreateDynamicObject(1806, -2064.3464355469, 570.21936035156, 1172.0511474609, 0, 0, 79.799194335938);
- CreateDynamicObject(1806, -2063.2365722656, 570.72045898438, 1172.0511474609, 0, 0, 189.33129882813);
- CreateDynamicObject(1806, -2060.3498535156, 565.88024902344, 1172.0511474609, 0, 0, 189.32739257813);
- CreateDynamicObject(1806, -2072.0104980469, 569.94903564453, 1172.0511474609, 0, 0, 169.38745117188);
- CreateDynamicObject(1806, -2072.9116210938, 570.86224365234, 1172.0587158203, 0, 0, 89.627197265625);
- CreateDynamicObject(14705, -2070.7255859375, 573.72943115234, 1173.6580810547, 0, 0, 0);
- CreateDynamicObject(948, -2067.2521972656, 554.33453369141, 1172.9163818359, 0, 0, 0);
- CreateDynamicObject(948, -2067.2456054688, 559.75079345703, 1172.9163818359, 0, 0, 0);
- CreateDynamicObject(2824, -2067.1977539063, 553.43292236328, 1172.9163818359, 0, 0, 69.790008544922);
- CreateDynamicObject(2852, -2067.2663574219, 560.65924072266, 1172.9163818359, 0, 0, 0);
- CreateDynamicObject(2813, -2067.2543945313, 558.86083984375, 1172.9163818359, 0, 0, 119.64001464844);
- CreateDynamicObject(2816, -2067.2241210938, 555.31225585938, 1172.9163818359, 0, 0, 99.700012207031);
- CreateDynamicObject(2611, -2065.8854980469, 564.47406005859, 1173.9405517578, 0, 0, 0);
- CreateDynamicObject(2163, -2066.2971191406, 564.55096435547, 1172.0511474609, 0, 0, 0);
- /*City Hall Interior*/
- /*---------------------------------------*/
- /*Train Interior*/
- CreateDynamicObject(18026, -18.227983474731, -361.94869995117, 382.28442382813, 0, 0, 0);
- CreateDynamicObject(18026, -17.700691223145, -354.63290405273, 381.78442382813, 0, 0, 180);
- CreateDynamicObject(957, -11.513772964478, -360.44775390625, 385.51309204102, 0, 0, 0);
- CreateDynamicObject(957, -11.234016418457, -356.00903320313, 385.51309204102, 0, 0, 0);
- CreateDynamicObject(957, -13.031484603882, -355.77261352539, 385.51309204102, 0, 0, 0);
- CreateDynamicObject(957, -12.216722488403, -358.17623901367, 385.51309204102, 0, 0, 0);
- CreateDynamicObject(957, -12.998313903809, -360.48736572266, 385.51309204102, 0, 0, 0);
- CreateDynamicObject(2773, -14.998862266541, -356.29739379883, 382.80166625977, 0, 0, 0);
- CreateDynamicObject(2773, -15.008573532104, -360.40264892578, 382.80166625977, 0, 0, 0);
- CreateDynamicObject(2775, -10.361849784851, -358.37237548828, 384.97817993164, 0, 0, 272);
- CreateDynamicObject(16151, -10.826488494873, -358.30947875977, 382.64105224609, 0, 0, 0);
- CreateDynamicObject(1789, -12.698738098145, -362.11477661133, 382.84060668945, 0, 0, 0);
- CreateDynamicObject(1562, -16.036222457886, -354.96337890625, 382.93960571289, 0, 0, 270);
- CreateDynamicObject(1562, -19.643102645874, -354.9690246582, 382.93960571289, 0, 0, 90);
- CreateDynamicObject(1563, -19.996320724487, -354.97308349609, 383.46517944336, 0, 0, 92);
- CreateDynamicObject(1562, -24.137985229492, -353.8115234375, 382.93960571289, 0, 0, 89.994506835938);
- CreateDynamicObject(14405, -22.75532913208, -368.52752685547, 382.79977416992, 0, 0, 0);
- CreateDynamicObject(2763, -17.939924240112, -354.89102172852, 382.68960571289, 0, 0, 0);
- CreateDynamicObject(2763, -22.628128051758, -353.80728149414, 382.68960571289, 0, 0, 0);
- CreateDynamicObject(2763, -22.867753982544, -361.83016967773, 382.68960571289, 0, 0, 0);
- CreateDynamicObject(1778, -13.758316040039, -362.87423706055, 382.16720581055, 0, 0, 0);
- CreateDynamicObject(2571, -16.628728866577, -360.76266479492, 382.28442382813, 0, 0, 182);
- CreateDynamicObject(1670, -18.120166778564, -361.58627319336, 382.798828125, 0, 0, 0);
- CreateDynamicObject(1668, -23.004642486572, -354.08248901367, 383.27426147461, 0, 0, 0);
- CreateDynamicObject(1950, -23.245344161987, -362.02383422852, 383.29571533203, 0, 0, 0);
- CreateDynamicObject(3119, -18.59888458252, -354.43307495117, 383.36459350586, 0, 0, 350);
- CreateDynamicObject(2880, -18.374652862549, -355.03146362305, 383.11279296875, 335, 280, 6);
- CreateDynamicObject(2769, -17.579961776733, -355.30059814453, 383.12692260742, 0, 0, 166);
- CreateDynamicObject(2814, -22.884986877441, -353.65536499023, 383.10754394531, 0, 0, 0);
- CreateDynamicObject(2859, -22.810068130493, -361.876953125, 383.10754394531, 0, 0, 0);
- CreateDynamicObject(1669, -11.874423980713, -358.05044555664, 383.41317749023, 0, 0, 0);
- CreateDynamicObject(1665, -11.793738365173, -356.36828613281, 383.3069152832, 0, 0, 0);
- CreateDynamicObject(1666, -11.903022766113, -356.01193237305, 383.32723999023, 0, 0, 0);
- CreateDynamicObject(2944, -25.967313766479, -356.16876220703, 383.55416870117, 0, 0, 0);
- CreateDynamicObject(1998, -25.460411071777, -358.21994018555, 382.28442382813, 0, 0, 270);
- CreateDynamicObject(8352, -68.737564086914, -375.75802612305, 379.58764648438, 0, 0, 0);
- /*Train Interior*/
- /*The Town*/
- RemoveBuilding(11624, -510.7031, 1211.3047, 30.8047, 0.25);
- RemoveBuilding(11462, -510.7031, 1211.3047, 30.8047, 0.25);
- RemoveBuilding(3332, 583.0859, 368.8750, 24.5547, 0.25);
- RemoveBuilding(3332, 537.1953, 434.4063, 24.5547, 0.25);
- RemoveBuilding(3332, 445.4219, 565.4688, 24.5547, 0.25);
- RemoveBuilding(3333, -178.7188, 326.5391, -3.5391, 0.25);
- RemoveBuilding(3333, -158.3516, 403.9063, -3.5391, 0.25);
- RemoveBuilding(3333, 521.1172, 471.7891, 3.3203, 0.25);
- RemoveBuilding(3333, 475.2344, 537.3203, 3.3203, 0.25);
- RemoveBuilding(3332, 491.3125, 499.9375, 24.5547, 0.25);
- RemoveBuilding(3333, -477.7266, 1054.1641, -4.5859, 0.25);
- RemoveBuilding(16431, 475.1250, 537.4375, 17.5859, 0.25);
- RemoveBuilding(16432, 566.8984, 406.3750, 17.5859, 0.25);
- RemoveBuilding(3344, -235.8594, 1051.3047, 18.6719, 0.25);
- RemoveBuilding(16478, 55.5625, 1220.6797, 17.9219, 0.25);
- RemoveBuilding(3366, 276.6563, 2023.7578, 16.6328, 0.25);
- RemoveBuilding(3366, 276.6563, 1989.5469, 16.6328, 0.25);
- RemoveBuilding(3366, 276.6563, 1955.7656, 16.6328, 0.25);
- RemoveBuilding(16566, -222.1953, 979.2500, 17.3828, 0.25);
- RemoveBuilding(16567, -32.3516, 1216.5000, 20.4922, 0.25);
- RemoveBuilding(16604, -64.7344, 1221.2969, 18.7344, 0.25);
- RemoveBuilding(16617, -122.7422, 1122.7500, 18.7344, 0.25);
- RemoveBuilding(16618, -117.7656, 1079.4609, 22.2188, 0.25);
- RemoveBuilding(3382, -176.3516, 367.5234, 17.6953, 0.25);
- RemoveBuilding(3382, -196.7891, 290.1797, 17.6953, 0.25);
- RemoveBuilding(3382, -155.9844, 444.8906, 17.6953, 0.25);
- RemoveBuilding(3382, -508.5703, 1081.0703, 16.6484, 0.25);
- RemoveBuilding(3382, -439.0859, 1041.4141, 16.6484, 0.25);
- RemoveBuilding(16688, -168.3203, 367.2422, 10.6641, 0.25);
- RemoveBuilding(16752, 14.9766, 1225.5547, 20.5313, 0.25);
- RemoveBuilding(16768, 187.4141, 1188.3594, 19.7500, 0.25);
- RemoveBuilding(3381, -196.7891, 290.1797, 17.6953, 0.25);
- RemoveBuilding(3330, -178.7188, 326.5391, -3.5391, 0.25);
- RemoveBuilding(3381, -176.3516, 367.5234, 17.6953, 0.25);
- RemoveBuilding(16563, -222.1953, 979.2500, 17.3828, 0.25);
- RemoveBuilding(3381, -439.0859, 1041.4141, 16.6484, 0.25);
- RemoveBuilding(3330, -477.7266, 1054.1641, -4.5859, 0.25);
- RemoveBuilding(16384, -480.7891, 1055.7266, 9.2969, 0.25);
- RemoveBuilding(3171, -235.8594, 1051.3047, 18.6719, 0.25);
- RemoveBuilding(16358, -168.3203, 367.2422, 10.6641, 0.25);
- RemoveBuilding(3330, -158.3516, 403.9063, -3.5391, 0.25);
- RemoveBuilding(3381, -155.9844, 444.8906, 17.6953, 0.25);
- RemoveBuilding(1413, 75.0547, 1077.6875, 14.1250, 0.25);
- RemoveBuilding(1413, 75.8516, 1041.6797, 13.8516, 0.25);
- RemoveBuilding(1413, 75.9922, 1036.3828, 13.8516, 0.25);
- RemoveBuilding(3381, -508.5703, 1081.0703, 16.6484, 0.25);
- RemoveBuilding(16434, -180.7109, 1081.0781, 27.1094, 0.25);
- RemoveBuilding(16760, -178.2031, 1122.3203, 28.8594, 0.25);
- RemoveBuilding(1447, -154.8281, 1137.1406, 20.0078, 0.25);
- RemoveBuilding(1447, -160.0703, 1137.1406, 20.0078, 0.25);
- RemoveBuilding(16740, -152.3203, 1144.0703, 30.3047, 0.25);
- RemoveBuilding(16386, -117.7656, 1079.4609, 22.2188, 0.25);
- RemoveBuilding(1411, -136.5391, 1108.2344, 20.3359, 0.25);
- RemoveBuilding(1447, -83.4766, 1108.3750, 20.0078, 0.25);
- RemoveBuilding(1447, -78.2344, 1108.3750, 20.0078, 0.25);
- RemoveBuilding(1412, -133.9844, 1111.0781, 20.0234, 0.25);
- RemoveBuilding(1308, -75.9453, 1109.1250, 19.4844, 0.25);
- RemoveBuilding(16385, -122.7422, 1122.7500, 18.7344, 0.25);
- RemoveBuilding(1412, -133.8516, 1134.4141, 20.0234, 0.25);
- RemoveBuilding(1468, -90.9922, 1141.0000, 19.9375, 0.25);
- RemoveBuilding(16735, -49.2422, 1137.7031, 28.7813, 0.25);
- RemoveBuilding(1468, -90.9922, 1146.2734, 19.9375, 0.25);
- RemoveBuilding(780, -84.8906, 1143.4375, 18.4219, 0.25);
- RemoveBuilding(1468, -90.9922, 1151.5469, 19.9375, 0.25);
- RemoveBuilding(16777, -105.3594, 1212.0703, 18.7344, 0.25);
- RemoveBuilding(1308, -95.1250, 1208.9453, 18.7344, 0.25);
- RemoveBuilding(16605, -64.7344, 1221.2969, 18.7344, 0.25);
- RemoveBuilding(956, -76.0313, 1227.9922, 19.1250, 0.25);
- RemoveBuilding(16442, -18.4688, 1178.8828, 29.3750, 0.25);
- RemoveBuilding(1308, -25.7813, 1188.0313, 18.6328, 0.25);
- RemoveBuilding(16568, -32.3516, 1216.5000, 20.4922, 0.25);
- RemoveBuilding(16562, 14.9766, 1225.5547, 20.5313, 0.25);
- RemoveBuilding(16477, 55.5625, 1220.6797, 17.9219, 0.25);
- RemoveBuilding(1413, 66.7969, 1207.1563, 18.9922, 0.25);
- RemoveBuilding(1413, 72.0859, 1206.8828, 18.9922, 0.25);
- RemoveBuilding(1413, 73.0938, 1228.0391, 19.0781, 0.25);
- RemoveBuilding(1413, 74.6484, 1082.9453, 14.1250, 0.25);
- RemoveBuilding(1413, 77.3594, 1206.8828, 18.9922, 0.25);
- RemoveBuilding(3267, 188.2422, 2081.6484, 22.4453, 0.25);
- RemoveBuilding(3277, 188.2422, 2081.6484, 22.4063, 0.25);
- RemoveBuilding(1413, 82.2344, 1028.6719, 13.8359, 0.25);
- RemoveBuilding(1413, 78.3125, 1032.2031, 13.8359, 0.25);
- RemoveBuilding(1413, 85.9844, 1024.9297, 13.8359, 0.25);
- RemoveBuilding(16000, 110.8125, 1023.9922, 12.6484, 0.25);
- RemoveBuilding(1413, 130.3828, 1029.3516, 13.7969, 0.25);
- RemoveBuilding(1413, 134.8984, 1032.1250, 13.7969, 0.25);
- RemoveBuilding(1413, 137.1328, 1036.2422, 13.7969, 0.25);
- RemoveBuilding(3221, 94.9688, 1067.2031, 12.6641, 0.25);
- RemoveBuilding(3221, 108.9688, 1067.2031, 12.6641, 0.25);
- RemoveBuilding(3221, 96.8750, 1057.2188, 12.6641, 0.25);
- RemoveBuilding(3221, 98.6484, 1047.6563, 12.6641, 0.25);
- RemoveBuilding(3221, 91.3750, 1085.6719, 12.6641, 0.25);
- RemoveBuilding(3221, 105.3750, 1085.6719, 12.6641, 0.25);
- RemoveBuilding(3221, 100.1406, 1076.7891, 12.6641, 0.25);
- RemoveBuilding(3221, 107.1406, 1076.7891, 12.6641, 0.25);
- RemoveBuilding(3221, 112.3750, 1085.6719, 12.6641, 0.25);
- RemoveBuilding(3221, 115.9688, 1067.2031, 12.6641, 0.25);
- RemoveBuilding(3221, 110.8750, 1057.2188, 12.6641, 0.25);
- RemoveBuilding(3221, 112.6484, 1047.6563, 12.6641, 0.25);
- RemoveBuilding(3221, 121.1406, 1076.7891, 12.6641, 0.25);
- RemoveBuilding(3221, 128.1406, 1076.7891, 12.6641, 0.25);
- RemoveBuilding(3221, 122.9688, 1067.2031, 12.6641, 0.25);
- RemoveBuilding(3221, 124.8750, 1057.2188, 12.6641, 0.25);
- RemoveBuilding(3221, 119.6484, 1047.6563, 12.6641, 0.25);
- RemoveBuilding(1413, 139.7734, 1052.9609, 13.7969, 0.25);
- RemoveBuilding(1413, 141.6797, 1071.9844, 13.7969, 0.25);
- RemoveBuilding(1413, 141.0391, 1066.7500, 13.7969, 0.25);
- RemoveBuilding(1413, 97.1172, 1107.4141, 13.8906, 0.25);
- RemoveBuilding(1413, 97.2578, 1102.1172, 13.8906, 0.25);
- RemoveBuilding(16001, 110.6172, 1109.5156, 12.7266, 0.25);
- RemoveBuilding(691, 141.7656, 1109.8828, 11.8906, 0.25);
- RemoveBuilding(669, 131.4766, 1109.2734, 12.5078, 0.25);
- RemoveBuilding(16002, 172.8047, 1088.6250, 18.1094, 0.25);
- RemoveBuilding(691, 160.6875, 1106.7344, 13.5547, 0.25);
- RemoveBuilding(16003, 150.2344, 1105.5313, 14.6328, 0.25);
- RemoveBuilding(1413, 98.8359, 1115.2734, 13.8906, 0.25);
- RemoveBuilding(1413, 96.7031, 1112.6719, 13.8906, 0.25);
- RemoveBuilding(1413, 104.1250, 1115.0000, 13.8906, 0.25);
- RemoveBuilding(1413, 109.3984, 1115.0000, 13.8906, 0.25);
- RemoveBuilding(669, 90.0859, 1147.8828, 16.7813, 0.25);
- RemoveBuilding(3276, 254.9531, 1100.6406, 12.0938, 0.25);
- RemoveBuilding(3276, 262.8359, 1119.5469, 10.5234, 0.25);
- RemoveBuilding(3331, 445.4219, 565.4688, 24.5547, 0.25);
- RemoveBuilding(16357, 475.1250, 537.4375, 17.5859, 0.25);
- RemoveBuilding(3330, 475.2344, 537.3203, 3.3203, 0.25);
- RemoveBuilding(3331, 491.3125, 499.9375, 24.5547, 0.25);
- RemoveBuilding(3330, 521.1172, 471.7891, 3.3203, 0.25);
- RemoveBuilding(3331, 537.1953, 434.4063, 24.5547, 0.25);
- RemoveBuilding(16430, 566.8984, 406.3750, 17.5859, 0.25);
- RemoveBuilding(3331, 583.0859, 368.8750, 24.5547, 0.25);
- RemoveBuilding(1522, 174.5000, 1176.6563, 13.7422, 0.25);
- RemoveBuilding(1522, 172.0078, 1178.3750, 13.7422, 0.25);
- RemoveBuilding(16479, 86.2422, 1214.0391, 17.7422, 0.25);
- RemoveBuilding(761, 194.4141, 1173.9688, 14.2422, 0.25);
- RemoveBuilding(761, 191.7578, 1186.7656, 14.5938, 0.25);
- RemoveBuilding(16767, 187.4141, 1188.3594, 19.7500, 0.25);
- RemoveBuilding(1413, 78.2578, 1226.8516, 19.3672, 0.25);
- RemoveBuilding(1413, 83.2813, 1225.2656, 19.8203, 0.25);
- RemoveBuilding(16294, 15.1797, 1719.3906, 21.6172, 0.25);
- RemoveBuilding(3267, 15.6172, 1719.1641, 22.4141, 0.25);
- RemoveBuilding(3277, 15.6016, 1719.1719, 22.3750, 0.25);
- RemoveBuilding(3267, 237.6953, 1696.8750, 22.4141, 0.25);
- RemoveBuilding(3277, 237.6797, 1696.8828, 22.3750, 0.25);
- RemoveBuilding(16293, 238.0703, 1697.5547, 21.6328, 0.25);
- RemoveBuilding(16093, 211.6484, 1810.1563, 20.7344, 0.25);
- RemoveBuilding(16638, 211.7266, 1809.1875, 18.9844, 0.25);
- RemoveBuilding(3279, 262.0938, 1807.6719, 16.8203, 0.25);
- RemoveBuilding(1411, 347.1953, 1799.2656, 18.7578, 0.25);
- RemoveBuilding(1411, 342.9375, 1796.2891, 18.7578, 0.25);
- RemoveBuilding(16670, 330.7891, 1813.2188, 17.8281, 0.25);
- RemoveBuilding(3279, 113.3828, 1814.4531, 16.8203, 0.25);
- RemoveBuilding(3279, 165.9531, 1849.9922, 16.8203, 0.25);
- RemoveBuilding(16095, 279.1328, 1829.7813, 16.6328, 0.25);
- RemoveBuilding(3280, 246.6172, 1863.3750, 20.1328, 0.25);
- RemoveBuilding(16094, 191.1406, 1870.0391, 21.4766, 0.25);
- RemoveBuilding(3279, 103.8906, 1901.1016, 16.8203, 0.25);
- RemoveBuilding(16096, 120.5078, 1934.0313, 19.8281, 0.25);
- RemoveBuilding(3279, 161.9063, 1933.0938, 16.8203, 0.25);
- RemoveBuilding(16671, 193.9531, 2051.7969, 20.1797, 0.25);
- RemoveBuilding(3279, 233.4297, 1934.8438, 16.8203, 0.25);
- RemoveBuilding(3279, 267.0625, 1895.2969, 16.8203, 0.25);
- RemoveBuilding(3268, 276.6563, 2023.7578, 16.6328, 0.25);
- RemoveBuilding(3268, 276.6563, 1989.5469, 16.6328, 0.25);
- RemoveBuilding(3268, 276.6563, 1955.7656, 16.6328, 0.25);
- RemoveBuilding(3267, 354.4297, 2028.4922, 22.4141, 0.25);
- RemoveBuilding(3277, 354.4141, 2028.5000, 22.3750, 0.25);
- RemoveBuilding(16668, 357.9375, 2049.4219, 16.8438, 0.25);
- RemoveBuilding(16669, 380.2578, 1914.9609, 17.4297, 0.25);
- RemoveBuilding(4514, 440.0469, 587.4453, 19.7344, 0.25);
- RemoveBuilding(4515, 604.5234, 352.5391, 19.7344, 0.25);
- RemoveBuilding(4516, -141.3359, 468.6484, 12.9141, 0.25);
- RemoveBuilding(4517, -193.8281, 269.5078, 12.8906, 0.25);
- CreateDynamicObject(16095, 270.27, 1885.50, 13.01, 356.86, 0.00, -1.56);
- CreateDynamicObject(16095, 270.24, 1882.03, 13.01, 356.86, 0.00, -1.56);
- CreateDynamicObject(16095, 266.84, 1882.00, 13.01, 356.86, 0.00, -1.56);
- CreateDynamicObject(16095, 266.75, 1885.62, 13.01, 356.86, 0.00, -1.56);
- CreateDynamicObject(19371, 246.16, 1862.60, 19.17, 0.00, 90.00, 38.36);
- CreateDynamicObject(19371, 226.41, 1872.34, 13.29, 0.00, 0.00, 0.00);
- CreateDynamicObject(3280, 246.64, 1863.37, 20.13, 356.98, -0.15, 0.88);
- CreateDynamicObject(19371, 226.73, 1859.18, 14.45, 0.00, 0.00, 0.00);
- CreateDynamicObject(16400, -134.61, 1077.45, 18.53, 0.00, 0.00, -91.00);
- CreateDynamicObject(1412, -133.97, 1116.27, 20.02, 358.90, 0.00, -90.59);
- CreateDynamicObject(1412, -133.91, 1121.49, 20.02, 358.90, 0.00, -90.59);
- CreateDynamicObject(1412, -133.85, 1126.65, 20.02, 358.90, 0.00, -90.59);
- CreateDynamicObject(1412, -133.79, 1131.80, 20.02, 358.90, 0.00, -90.59);
- CreateDynamicObject(1412, -133.73, 1135.24, 20.02, 358.90, 0.00, -90.59);
- CreateDynamicObject(3171, -128.79, 1131.03, 18.67, 3.14, -0.01, 60.00);
- CreateDynamicObject(3171, -125.37, 1120.71, 18.67, 3.14, -0.01, -60.00);
- CreateDynamicObject(3171, -101.88, 1151.99, 18.67, 3.14, -0.01, -60.00);
- CreateDynamicObject(3171, -98.20, 1143.05, 18.67, 3.14, -0.01, -20.00);
- CreateDynamicObject(3171, -103.82, 1132.72, 18.67, 3.14, -0.01, 100.00);
- CreateDynamicObject(19371, -33.96, 1234.06, 20.27, 0.00, 0.00, 0.00);
- CreateDynamicObject(19371, -33.95, 1237.18, 20.27, 0.00, 0.00, 0.00);
- CreateDynamicObject(19371, -32.41, 1242.03, 20.27, 0.00, 0.00, 89.37);
- CreateDynamicObject(19371, -29.19, 1242.00, 20.27, 0.00, 0.00, 89.37);
- CreateDynamicObject(19371, -26.01, 1241.98, 20.27, 0.00, 0.00, 89.37);
- CreateDynamicObject(19371, -22.83, 1241.94, 20.26, 0.00, 0.00, 89.37);
- CreateDynamicObject(19371, -19.77, 1241.91, 20.26, 0.00, 0.00, 89.37);
- CreateDynamicObject(19371, -14.31, 1241.85, 20.27, 0.00, 0.00, 88.86);
- CreateDynamicObject(19371, -12.58, 1241.83, 20.26, 0.00, 0.00, 89.37);
- CreateDynamicObject(19371, -11.07, 1240.23, 20.27, 0.00, 0.00, 0.00);
- CreateDynamicObject(19371, -11.05, 1237.11, 20.27, 0.00, 0.00, 0.00);
- CreateDynamicObject(19371, -11.05, 1233.96, 20.27, 0.00, 0.00, 0.00);
- CreateDynamicObject(19417, -32.28, 1229.42, 20.24, 0.00, 0.00, 269.64);
- CreateDynamicObject(19417, -12.70, 1229.46, 20.24, 0.00, 0.00, 269.64);
- CreateDynamicObject(19463, -26.07, 1229.44, 20.24, 0.00, 0.00, 270.21);
- CreateDynamicObject(19398, -15.72, 1229.47, 20.22, 0.00, 0.00, 270.21);
- CreateDynamicObject(19417, -18.84, 1229.45, 20.24, 0.00, 0.00, 269.64);
- CreateDynamicObject(19371, -21.67, 1229.45, 20.26, 0.00, 0.00, 270.21);
- CreateDynamicObject(19362, -12.86, 1231.08, 18.55, 0.00, 90.00, 0.00);
- CreateDynamicObject(19362, -12.86, 1234.17, 18.55, 0.00, 90.00, 0.00);
- CreateDynamicObject(19362, -12.85, 1237.28, 18.55, 0.00, 90.00, 0.00);
- CreateDynamicObject(19362, -12.89, 1240.10, 18.55, 0.00, 90.00, 0.00);
- CreateDynamicObject(19362, -16.36, 1240.11, 18.55, 0.00, 90.00, 0.00);
- CreateDynamicObject(19454, -16.37, 1234.36, 18.55, 0.00, 90.00, 0.00);
- CreateDynamicObject(19454, -19.29, 1234.32, 18.55, 0.00, 90.00, 0.00);
- CreateDynamicObject(19454, -26.14, 1234.26, 18.55, 0.00, 90.00, 0.00);
- CreateDynamicObject(19454, -29.52, 1234.33, 18.55, 0.00, 90.00, 0.00);
- CreateDynamicObject(19454, -32.14, 1234.31, 18.55, 0.00, 90.00, 0.00);
- CreateDynamicObject(19454, -22.73, 1234.35, 18.55, 0.00, 90.00, 0.00);
- CreateDynamicObject(19451, -32.30, 1234.20, 21.97, 0.00, 90.00, 0.00);
- CreateDynamicObject(19451, -28.82, 1234.20, 21.97, 0.00, 90.00, 0.00);
- CreateDynamicObject(19451, -25.34, 1234.20, 21.97, 0.00, 90.00, 0.00);
- CreateDynamicObject(19451, -21.95, 1234.20, 21.97, 0.00, 90.00, 0.00);
- CreateDynamicObject(19451, -18.47, 1234.21, 21.97, 0.00, 90.00, 0.00);
- CreateDynamicObject(19451, -15.06, 1234.21, 21.97, 0.00, 90.00, 0.00);
- CreateDynamicObject(19451, -11.57, 1234.22, 21.97, 0.00, 90.00, 0.00);
- CreateDynamicObject(19359, -11.57, 1240.64, 21.97, 0.00, 90.00, 0.00);
- CreateDynamicObject(19359, -15.06, 1240.63, 21.97, 0.00, 90.00, 0.00);
- CreateDynamicObject(19359, -18.46, 1240.63, 21.97, 0.00, 90.00, 0.00);
- CreateDynamicObject(19359, -21.97, 1240.62, 21.97, 0.00, 90.00, 0.00);
- CreateDynamicObject(19359, -25.44, 1240.61, 21.97, 0.00, 90.00, 0.00);
- CreateDynamicObject(19359, -28.86, 1240.61, 21.97, 0.00, 90.00, 0.00);
- CreateDynamicObject(19359, -32.35, 1240.59, 21.97, 0.00, 90.00, 0.00);
- CreateDynamicObject(19417, -11.05, 1231.01, 20.24, 0.00, 0.00, 0.00);
- CreateDynamicObject(19362, -19.78, 1240.14, 18.55, 0.00, 90.00, 0.00);
- CreateDynamicObject(19362, -23.32, 1240.20, 18.55, 0.00, 90.00, 0.00);
- CreateDynamicObject(19362, -26.83, 1240.24, 18.55, 0.00, 90.00, 0.00);
- CreateDynamicObject(19362, -30.32, 1240.26, 18.55, 0.00, 90.00, 0.00);
- CreateDynamicObject(19362, -32.08, 1240.29, 18.55, 0.00, 90.00, 0.00);
- CreateDynamicObject(7391, -51.86, 1209.99, 22.98, 0.00, 0.00, 341.87);
- CreateDynamicObject(16362, 15.48, 1220.40, 21.48, 0.00, 0.00, 90.00);
- CreateDynamicObject(1676, -2.52, 1220.48, 20.08, 0.00, 0.00, 90.00);
- CreateDynamicObject(1676, 3.52, 1220.30, 20.08, 0.00, 0.00, 90.00);
- CreateDynamicObject(1676, 9.54, 1220.30, 20.08, 0.00, 0.00, 90.00);
- CreateDynamicObject(1676, 15.51, 1220.29, 20.08, 0.00, 0.00, 90.00);
- CreateDynamicObject(1676, 21.50, 1220.26, 20.08, 0.00, 0.00, 90.00);
- CreateDynamicObject(1676, 27.53, 1220.16, 20.08, 0.00, 0.00, 90.00);
- CreateDynamicObject(1676, 33.56, 1220.42, 20.08, 0.00, 0.00, 90.00);
- CreateDynamicObject(1892, -16.19, 1229.84, 18.59, 0.00, 0.00, 0.00);
- CreateDynamicObject(1984, -11.73, 1239.21, 18.60, 0.00, 0.00, 180.00);
- CreateDynamicObject(1842, -28.07, 1233.54, 18.99, 0.00, 0.00, 0.00);
- CreateDynamicObject(1843, -24.15, 1241.30, 18.57, 0.00, 0.00, 0.00);
- CreateDynamicObject(1843, -30.10, 1241.30, 18.57, 0.00, 0.00, 0.00);
- CreateDynamicObject(1843, -27.15, 1241.30, 18.57, 0.00, 0.00, 0.00);
- CreateDynamicObject(1844, -22.23, 1230.10, 18.57, 0.00, 0.00, 180.00);
- CreateDynamicObject(1844, -25.59, 1230.10, 18.57, 0.00, 0.00, 180.00);
- CreateDynamicObject(1844, -28.96, 1230.10, 18.57, 0.00, 0.00, 180.00);
- CreateDynamicObject(1842, -21.55, 1233.55, 18.99, 0.00, 0.00, 0.00);
- CreateDynamicObject(1842, -22.03, 1237.48, 18.99, 0.00, 0.00, 0.00);
- CreateDynamicObject(1842, -28.05, 1237.35, 18.99, 0.00, 0.00, 0.00);
- CreateDynamicObject(1886, -33.71, 1241.75, 21.89, 0.00, 0.00, 51.39);
- CreateDynamicObject(1886, -11.38, 1241.12, 21.89, 0.00, 0.00, 333.44);
- CreateDynamicObject(1843, -21.15, 1241.30, 18.57, 0.00, 0.00, 0.00);
- CreateDynamicObject(1885, -14.18, 1229.93, 18.55, 0.00, 0.00, 0.00);
- CreateDynamicObject(19417, -16.94, 1241.88, 20.24, 0.00, 0.00, 269.64);
- CreateDynamicObject(19417, -33.97, 1230.96, 20.26, 0.00, 0.00, 0.00);
- CreateDynamicObject(19417, -33.95, 1240.37, 20.27, 0.00, 0.00, 0.00);
- CreateDynamicObject(1988, -33.39, 1233.97, 18.61, 0.00, 0.00, 90.00);
- CreateDynamicObject(1987, -33.39, 1232.97, 18.61, 0.00, 0.00, 90.00);
- CreateDynamicObject(1987, -33.39, 1235.33, 18.61, 0.00, 0.00, 90.00);
- CreateDynamicObject(1988, -33.39, 1236.33, 18.61, 0.00, 0.00, 90.00);
- CreateDynamicObject(1977, -33.39, 1238.18, 18.61, 0.00, 0.00, 90.00);
- CreateDynamicObject(7391, 28.74, 1237.29, 22.98, 0.00, 0.00, 341.87);
- CreateDynamicObject(1300, -11.54, 1228.97, 18.72, 0.00, 0.00, 0.00);
- CreateDynamicObject(1338, -29.33, 1228.55, 18.95, 0.00, 0.00, 0.00);
- CreateDynamicObject(1523, -16.47, 1229.42, 18.43, 0.00, 0.00, 0.00);
- CreateDynamicObject(3276, 283.45, 1060.89, 20.06, 356.86, 12.00, 90.00);
- CreateDynamicObject(3276, 282.98, 1049.22, 22.26, 356.86, 10.90, 89.00);
- CreateDynamicObject(3276, 237.64, 1083.83, 14.83, 356.76, -7.00, -89.00);
- CreateDynamicObject(14488, 174.83, 1178.51, 16.28, 0.00, 0.00, 331.00);
- CreateDynamicObject(19447, 185.11, 1185.54, 17.46, 0.00, 0.00, 61.20);
- CreateDynamicObject(19447, 177.19, 1189.93, 17.46, 0.00, 0.00, 61.02);
- CreateDynamicObject(19447, 185.11, 1185.56, 14.41, 0.00, 0.00, 61.20);
- CreateDynamicObject(19447, 177.21, 1189.95, 14.41, 0.00, 0.00, 61.00);
- CreateDynamicObject(19447, 175.27, 1191.01, 14.41, 0.00, 0.00, 61.00);
- CreateDynamicObject(19447, 175.31, 1190.97, 17.46, 0.00, 0.00, 61.00);
- CreateDynamicObject(19447, 168.83, 1189.14, 14.41, 0.00, 0.00, 331.00);
- CreateDynamicObject(19447, 168.83, 1189.12, 17.46, 0.00, 0.00, 331.00);
- CreateDynamicObject(19447, 164.41, 1181.17, 14.41, 0.00, 0.00, 331.00);
- CreateDynamicObject(19447, 164.41, 1181.15, 17.46, 0.00, 0.00, 331.00);
- CreateDynamicObject(19447, 162.74, 1178.18, 14.41, 0.00, 0.00, 331.00);
- CreateDynamicObject(19447, 162.74, 1178.16, 17.46, 0.00, 0.00, 331.00);
- CreateDynamicObject(19464, 162.94, 1172.58, 14.35, 0.00, 0.00, 61.00);
- CreateDynamicObject(19464, 162.96, 1172.60, 17.46, 0.00, 0.00, 61.00);
- CreateDynamicObject(19464, 167.13, 1170.22, 14.35, 0.00, 0.00, 61.00);
- CreateDynamicObject(19464, 167.13, 1170.24, 17.46, 0.00, 0.00, 61.00);
- CreateDynamicObject(19464, 171.58, 1167.79, 14.35, 0.00, 0.00, 61.00);
- CreateDynamicObject(19464, 171.62, 1167.77, 17.46, 0.00, 0.00, 61.00);
- CreateDynamicObject(19465, 176.08, 1165.28, 16.18, 0.00, 0.00, 61.00);
- CreateDynamicObject(19447, 180.85, 1168.05, 17.46, 0.00, 0.00, 331.00);
- CreateDynamicObject(19447, 180.85, 1168.03, 14.31, 0.00, 0.00, 331.00);
- CreateDynamicObject(19447, 185.26, 1175.96, 14.31, 0.00, 0.00, 331.00);
- CreateDynamicObject(19447, 185.24, 1175.96, 17.46, 0.00, 0.00, 331.00);
- CreateDynamicObject(19447, 186.98, 1179.06, 14.31, 0.00, 0.00, 331.00);
- CreateDynamicObject(19447, 186.96, 1179.06, 17.46, 0.00, 0.00, 331.00);
- CreateDynamicObject(19451, 179.23, 1168.82, 18.90, 0.00, 90.00, 332.00);
- CreateDynamicObject(19451, 177.68, 1169.72, 18.92, 0.00, 90.00, 332.00);
- CreateDynamicObject(19451, 175.16, 1171.27, 19.62, 0.00, 120.00, 332.00);
- CreateDynamicObject(19443, 171.38, 1167.97, 18.63, 0.00, 0.00, 61.00);
- CreateDynamicObject(19443, 171.06, 1168.13, 18.69, 0.00, 0.00, 61.00);
- CreateDynamicObject(19443, 170.67, 1168.36, 18.80, 0.00, 0.00, 61.00);
- CreateDynamicObject(19443, 170.55, 1168.43, 19.02, 0.00, 0.00, 61.00);
- CreateDynamicObject(19443, 170.28, 1168.56, 19.20, 0.00, 0.00, 61.00);
- CreateDynamicObject(19443, 170.01, 1168.70, 19.36, 0.00, 0.00, 61.00);
- CreateDynamicObject(19443, 169.07, 1169.21, 19.36, 0.00, 0.00, 61.00);
- CreateDynamicObject(19451, 173.12, 1172.37, 20.90, 0.00, 120.00, 332.00);
- CreateDynamicObject(19451, 170.49, 1173.82, 20.90, 0.00, -120.00, 332.00);
- CreateDynamicObject(19443, 167.96, 1170.05, 18.59, 0.00, 0.00, 61.00);
- CreateDynamicObject(19451, 168.54, 1174.86, 19.60, 0.00, -120.00, 332.00);
- CreateDynamicObject(19443, 168.21, 1169.95, 18.61, 0.00, 0.00, 61.00);
- CreateDynamicObject(19443, 168.47, 1169.76, 18.81, 0.00, 0.00, 61.00);
- CreateDynamicObject(19443, 168.83, 1169.63, 19.04, 0.00, 0.00, 61.00);
- CreateDynamicObject(19443, 169.11, 1169.40, 19.14, 0.00, 0.00, 61.00);
- CreateDynamicObject(19443, 169.59, 1168.95, 19.70, 0.00, 0.00, 61.00);
- CreateDynamicObject(19451, 172.79, 1182.74, 19.60, 0.00, -120.00, 332.00);
- CreateDynamicObject(19451, 174.98, 1182.27, 20.90, 0.00, -120.00, 332.00);
- CreateDynamicObject(19451, 174.51, 1185.91, 19.60, 0.00, -120.00, 332.00);
- CreateDynamicObject(19451, 176.43, 1184.91, 20.90, 0.00, -120.00, 332.00);
- CreateDynamicObject(19451, 177.60, 1180.91, 20.98, 0.00, 120.00, 332.00);
- CreateDynamicObject(19451, 179.84, 1179.68, 19.62, 0.00, 120.00, 332.00);
- CreateDynamicObject(19451, 179.04, 1183.53, 20.98, 0.00, 120.00, 332.00);
- CreateDynamicObject(19451, 181.17, 1182.25, 19.66, 0.00, 120.00, 332.00);
- CreateDynamicObject(19447, 179.90, 1188.41, 16.67, 90.00, 0.00, 61.00);
- CreateDynamicObject(19447, 182.05, 1187.23, 14.79, 90.00, 0.00, 61.10);
- CreateDynamicObject(19447, 181.17, 1187.71, 15.50, 90.00, 0.00, 61.10);
- CreateDynamicObject(19447, 178.94, 1188.95, 15.50, 90.00, 0.00, 61.10);
- CreateDynamicObject(19447, 178.04, 1189.45, 14.79, 90.00, 0.00, 61.10);
- CreateDynamicObject(19451, 164.22, 1177.27, 18.92, 0.00, 90.00, 332.00);
- CreateDynamicObject(19451, 165.97, 1176.49, 18.90, 0.00, 90.00, 332.00);
- CreateDynamicObject(19451, 170.43, 1185.07, 18.90, 0.00, 90.00, 332.00);
- CreateDynamicObject(19451, 168.97, 1185.67, 18.92, 0.00, 90.00, 332.00);
- CreateDynamicObject(19451, 171.81, 1187.35, 18.90, 0.00, 90.00, 332.00);
- CreateDynamicObject(19451, 170.45, 1188.12, 18.92, 0.00, 90.00, 332.00);
- CreateDynamicObject(19451, 183.75, 1177.14, 18.90, 0.00, 90.00, 332.00);
- CreateDynamicObject(19451, 182.11, 1178.06, 18.92, 0.00, 90.00, 332.00);
- CreateDynamicObject(19451, 183.50, 1180.75, 18.92, 0.00, 90.00, 332.00);
- CreateDynamicObject(19451, 185.26, 1179.91, 18.90, 0.00, 90.00, 332.00);
- CreateDynamicObject(1523, 175.36, 1165.58, 13.62, 0.00, 0.00, 330.81);
- CreateDynamicObject(1985, 183.24, 1178.33, 16.91, 0.00, 0.00, 0.00);
- CreateDynamicObject(1985, 185.24, 1177.22, 16.91, 0.00, 0.00, 0.00);
- CreateDynamicObject(1985, 184.36, 1181.36, 16.91, 0.00, 0.00, 0.00);
- CreateDynamicObject(1985, 185.43, 1183.56, 16.91, 0.00, 0.00, 0.00);
- CreateDynamicObject(947, 179.58, 1186.62, 15.95, 0.00, 0.00, 150.00);
- CreateDynamicObject(14486, 175.20, 1178.60, 15.38, 0.00, 0.00, 331.17);
- CreateDynamicObject(11453, -206.06, 985.87, 18.99, 0.00, 0.00, 90.00);
- CreateDynamicObject(14881, -224.46, 979.61, 20.66, 0.00, 0.00, 180.00);
- CreateDynamicObject(19355, -222.12, 982.72, 21.19, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -222.14, 981.21, 21.19, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -222.08, 981.21, 19.99, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -222.10, 982.72, 19.99, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -222.12, 985.92, 21.19, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -222.11, 985.94, 19.99, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -218.50, 978.12, 20.01, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -220.18, 971.33, 19.99, 0.00, 0.00, 90.00);
- CreateDynamicObject(19355, -218.50, 974.93, 20.01, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -225.67, 972.83, 20.01, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -220.43, 979.67, 21.19, 0.00, 0.00, 90.00);
- CreateDynamicObject(19355, -220.15, 979.65, 21.19, 0.00, 0.00, 90.00);
- CreateDynamicObject(19355, -220.15, 979.67, 19.99, 0.00, 0.00, 90.00);
- CreateDynamicObject(19355, -218.52, 978.12, 21.19, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -218.52, 974.93, 21.19, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -218.54, 972.90, 21.19, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -220.43, 979.69, 19.99, 0.00, 0.00, 90.00);
- CreateDynamicObject(19355, -220.18, 971.35, 21.19, 0.00, 0.00, 90.00);
- CreateDynamicObject(19355, -223.40, 971.33, 19.99, 0.00, 0.00, 90.00);
- CreateDynamicObject(19355, -224.04, 971.33, 19.99, 0.00, 0.00, 90.00);
- CreateDynamicObject(19355, -223.40, 971.35, 21.19, 0.00, 0.00, 90.00);
- CreateDynamicObject(19355, -224.04, 971.35, 21.19, 0.00, 0.00, 90.00);
- CreateDynamicObject(19355, -218.52, 972.90, 20.01, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -225.69, 975.96, 20.01, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -225.69, 977.70, 20.01, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -225.65, 972.83, 21.19, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -225.67, 975.96, 21.19, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -225.67, 977.70, 21.19, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -227.38, 979.37, 19.99, 0.00, 0.00, 90.00);
- CreateDynamicObject(19355, -228.82, 979.39, 19.99, 0.00, 0.00, 90.00);
- CreateDynamicObject(19355, -227.38, 979.39, 21.19, 0.00, 0.00, 90.00);
- CreateDynamicObject(19355, -228.82, 979.41, 21.19, 0.00, 0.00, 90.00);
- CreateDynamicObject(19355, -230.39, 980.95, 20.01, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -230.39, 983.64, 20.01, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -230.39, 986.66, 20.01, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -230.37, 980.95, 21.19, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -230.37, 983.64, 21.19, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -230.37, 986.66, 21.19, 0.00, 0.00, 0.00);
- CreateDynamicObject(19385, -224.21, 987.85, 20.41, 0.00, 0.00, 90.00);
- CreateDynamicObject(19428, -222.08, 986.98, 20.36, 0.00, 0.00, 0.00);
- CreateDynamicObject(19428, -225.81, 987.85, 20.36, 0.00, 0.00, 90.00);
- CreateDynamicObject(19428, -228.75, 989.35, 20.36, 0.00, 0.00, 90.00);
- CreateDynamicObject(19428, -227.25, 989.35, 20.36, 0.00, 0.00, 90.00);
- CreateDynamicObject(19428, -226.54, 988.64, 20.36, 0.00, 0.00, 0.00);
- CreateDynamicObject(19428, -229.66, 989.35, 20.36, 0.00, 0.00, 90.00);
- CreateDynamicObject(19428, -222.70, 987.85, 20.36, 0.00, 0.00, 90.00);
- CreateDynamicObject(11453, -224.15, 987.93, 22.33, 0.00, 0.00, 180.00);
- CreateDynamicObject(19355, -222.10, 986.25, 21.19, 0.00, 0.00, 0.00);
- CreateDynamicObject(19428, -226.54, 988.64, 20.36, 0.00, 0.00, 0.00);
- CreateDynamicObject(19428, -226.54, 988.64, 20.36, 0.00, 0.00, 0.00);
- CreateDynamicObject(19428, -226.43, 988.64, 20.36, 0.00, 0.00, 0.00);
- CreateDynamicObject(19428, -226.31, 988.59, 21.40, 0.00, 0.00, 0.00);
- CreateDynamicObject(19428, -227.17, 989.33, 21.40, 0.00, 0.00, 90.00);
- CreateDynamicObject(19428, -228.74, 989.33, 21.40, 0.00, 0.00, 90.00);
- CreateDynamicObject(19428, -229.48, 989.33, 21.40, 0.00, 0.00, 90.00);
- CreateDynamicObject(19355, -230.39, 987.83, 20.01, 0.00, 0.00, 0.00);
- CreateDynamicObject(19355, -230.37, 987.81, 21.19, 0.00, 0.00, 0.00);
- CreateDynamicObject(19447, -223.78, 982.97, 22.96, 0.00, 90.00, 0.00);
- CreateDynamicObject(19447, -228.68, 984.22, 22.96, 0.00, 90.00, 0.00);
- CreateDynamicObject(19447, -228.11, 984.46, 22.96, 0.00, 90.00, 0.00);
- CreateDynamicObject(19447, -225.92, 982.99, 22.96, 0.00, 90.00, 0.00);
- CreateDynamicObject(19447, -226.12, 976.19, 22.96, 0.00, 90.00, 0.00);
- CreateDynamicObject(19447, -222.66, 976.19, 22.96, 0.00, 90.00, 0.00);
- CreateDynamicObject(19447, -219.49, 976.20, 22.96, 0.00, 90.00, 0.00);
- CreateDynamicObject(19447, -228.69, 976.19, 22.96, 0.00, 90.00, 0.00);
- CreateDynamicObject(1495, -225.00, 987.75, 18.63, 0.00, 0.00, 0.00);
- CreateDynamicObject(2008, -228.05, 981.13, 18.66, 0.00, 0.00, 0.00);
- CreateDynamicObject(2165, -228.74, 987.14, 18.66, 0.00, 0.00, 270.00);
- CreateDynamicObject(1721, -227.39, 986.18, 18.66, 0.00, 0.00, 90.00);
- CreateDynamicObject(1721, -227.39, 987.08, 18.66, 0.00, 0.00, 90.00);
- CreateDynamicObject(1721, -226.69, 982.50, 18.66, 0.00, 0.00, 150.00);
- CreateDynamicObject(1721, -228.21, 982.50, 18.66, 0.00, 0.00, 180.00);
- CreateDynamicObject(1806, -227.16, 979.90, 18.66, 0.00, 0.00, 0.00);
- CreateDynamicObject(1806, -230.07, 986.82, 18.66, 0.00, 0.00, 250.00);
- CreateDynamicObject(1499, -224.98, 979.56, 18.66, 0.00, 0.00, 0.00);
- CreateDynamicObject(19302, -222.84, 976.54, 19.92, 0.00, 0.00, 90.00);
- CreateDynamicObject(19303, -222.85, 978.30, 19.92, 0.00, 0.00, 90.00);
- CreateDynamicObject(19304, -222.84, 977.45, 21.79, 0.00, 0.00, 90.00);
- CreateDynamicObject(19302, -222.84, 972.62, 19.92, 0.00, 0.00, 90.00);
- CreateDynamicObject(19303, -222.85, 974.34, 19.92, 0.00, 0.00, 90.00);
- CreateDynamicObject(19304, -222.84, 973.45, 21.79, 0.00, 0.00, 90.00);
- CreateDynamicObject(2048, -222.26, 983.40, 22.05, 0.00, 0.00, 270.00);
- CreateDynamicObject(2612, -222.28, 984.58, 20.51, 0.00, 0.00, -90.00);
- CreateDynamicObject(2611, -222.29, 982.08, 20.51, 0.00, 0.00, -90.00);
- CreateDynamicObject(2606, -227.26, 987.73, 21.41, 20.00, 0.00, -5.00);
- CreateDynamicObject(2737, -229.19, 979.70, 20.45, 0.00, 0.00, 180.00);
- CreateDynamicObject(2616, -230.20, 986.40, 20.45, 0.00, 0.00, 90.00);
- CreateDynamicObject(2615, -230.19, 986.05, 20.57, 0.00, 0.00, 90.00);
- CreateDynamicObject(18636, -226.71, 981.23, 19.50, 0.00, 0.00, 90.00);
- CreateDynamicObject(2186, -222.79, 981.09, 18.65, 0.00, 0.00, 270.00);
- CreateDynamicObject(2200, -230.08, 982.82, 18.66, 0.00, 0.00, 90.00);
- CreateDynamicObject(1808, -225.50, 987.46, 18.66, 0.00, 0.00, 0.00);
- CreateDynamicObject(1738, -224.36, 971.56, 19.28, 0.00, 0.00, 0.00);
- CreateDynamicObject(2627, 164.04, 1176.84, 13.84, 0.00, 0.00, 58.98);
- CreateDynamicObject(2627, 163.37, 1175.68, 13.84, 0.00, 0.00, 58.98);
- CreateDynamicObject(2628, 171.76, 1192.05, 13.83, 0.00, 0.00, 0.00);
- CreateDynamicObject(2630, 174.12, 1190.60, 13.83, 0.00, 0.00, 150.00);
- CreateDynamicObject(2630, 173.26, 1191.11, 13.83, 0.00, 0.00, 150.00);
- CreateDynamicObject(2630, 175.03, 1190.12, 13.83, 0.00, 0.00, 150.00);
- CreateDynamicObject(2629, 169.99, 1188.43, 13.83, 0.00, 0.00, 61.00);
- CreateDynamicObject(2629, 181.54, 1171.43, 13.83, 0.00, 0.00, -120.00);
- CreateDynamicObject(2629, 180.77, 1170.12, 13.83, 0.00, 0.00, -120.00);
- CreateDynamicObject(2628, 178.41, 1164.91, 13.83, 0.00, 0.00, 13.83);
- CreateDynamicObject(2631, 184.26, 1177.43, 13.89, 0.00, 0.00, 60.00);
- CreateDynamicObject(2631, 186.61, 1181.50, 13.89, 0.00, 0.00, 60.00);
- treethree = CreateDynamicObject(654, 122.14, 1136.34, 13.28, 0.00, 0.00, 0.00);// tree 3
- treetwo = CreateDynamicObject(654, 142.09, 1123.95, 12.39, 0.00, 0.00, 0.00);// tree 2
- CreateDynamicObject(18220, 92.16, 1124.14, 15.00, 0.00, 19.00, 0.00);
- CreateDynamicObject(18220, 111.49, 1114.08, 12.80, -2.00, 0.00, 75.58);
- CreateDynamicObject(18220, 138.26, 1119.14, 12.28, -1.00, 0.00, 75.58);
- CreateDynamicObject(18220, 149.28, 1132.93, 13.14, -5.00, 0.00, 140.00);
- CreateDynamicObject(18220, 141.55, 1154.13, 13.96, -5.00, 0.00, 210.00);
- CreateDynamicObject(669, 134.03, 1111.26, 12.66, 356.86, 0.00, 3.14);
- CreateDynamicObject(669, 161.96, 1112.21, 14.20, 356.86, 0.00, 3.14);
- CreateDynamicObject(691, 163.68, 1125.00, 12.43, 3.14, 0.00, 2.64);
- treeone = CreateDynamicObject(654, 138.09, 1154.34, 14.30, 0.00, 0.00, 0.00);// tree 1
- treefive = CreateDynamicObject(654, 94.83, 1134.52, 14.86, 0.00, 0.00, 0.00);// tree 5
- treefour = CreateDynamicObject(654, 103.93, 1118.94, 12.50, 0.00, 0.00, 0.00);// tree 4
- CreateDynamicObject(19447, 182.26, 1187.11, 17.46, 0.00, 0.00, 61.20);
- CreateDynamicObject(843, 147.31, 1141.57, 13.39, 0.00, 0.00, 267.39);
- CreateDynamicObject(841, 147.26, 1138.12, 13.42, 0.00, 0.00, 0.00);
- CreateDynamicObject(842, 147.94, 1138.56, 13.45, 0.00, 0.00, 0.00);
- /*The Town*/
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- gPlayerLogged[playerid] = 0;
- SetPlayerColor(playerid, COLOR_WHITE);
- TogglePlayerSpectating(playerid, true);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome To Inter City Roleplay");
- SendClientMessage(playerid, COLOR_BLUE, "Our Anti-Cheat will catch you, so do not try hacking");
- SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
- if(fexist(UserPath(playerid)))
- {
- AdminDuty[playerid] = 0;
- SetTimerEx("TrashTimer", 1500000, 1, "i", playerid);
- JackingCar[playerid] = 0;
- Logging[playerid] = 0;
- GettingJob[playerid] = 0;
- Farming[playerid] = 0;
- PlantingSeeds[playerid] = 0;
- GrowingCrops[playerid] = 0;
- FarmingCrops[playerid] = -1;
- CollectingTrash[playerid] = 0;
- CollectingTrash1[playerid] = 0;
- CollectingTrash2[playerid] = 0;
- CollectingTrash3[playerid] = 0;
- CollectingTrash4[playerid] = 0;
- CollectingTrash5[playerid] = 0;
- CollectingTrash6[playerid] = 0;
- CollectingTrash7[playerid] = 0;
- CollectingTrash8[playerid] = 0;
- CollectingTrash9[playerid] = 0;
- CollectingTrash10[playerid] = 0;
- CollectingTrash11[playerid] = 0;
- CollectingTrash12[playerid] = 0;
- CollectingTrash13[playerid] = 0;
- oldcar[playerid] = 0;
- HandsupPlayer[playerid] = 0;
- EatingFood[playerid] = 0;
- DeliveryTruck[playerid] = 0;
- PlayerTied[playerid] = 0;
- ShotPlayer[playerid] = 0;
- SmuggleDropOff[playerid] = 0;
- PlayerCuffed[playerid] = 0;
- CellTime[playerid] = 0;
- PlayerRestrained[playerid] = 0;
- RentedCar[playerid] = 0;
- HoldingObject[playerid] = 0;
- PhoneOnline[playerid] = 0;
- Mobile[playerid] = INVALID_PLAYER_ID;
- Spectating[playerid] = 0;
- RingTone[playerid] = 0;
- CopDuty[playerid] = 0;
- TazerCharged[playerid] = 0;
- Tazer[playerid] = 0;
- SmugglingMats[playerid] = 0;
- SetPlayerColor(playerid, COLOR_WHITE);
- GettingPacks[playerid] = 0;
- ResetPlayerMoney(playerid);
- INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
- ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Welcome Back", " Welcome Back, This Account Is Registered \n Please Type Your Password Below To Continue: \n", "Login", "Quit");
- }
- else
- {
- SendClientMessage(playerid, COLOR_BLUE, " [-Fort Carson Immigration-] ");
- SendClientMessage(playerid, COLOR_WHITE, " We Cannot Seem To Find A File ");
- SendClientMessage(playerid, COLOR_WHITE, " On You, Please Fill In This Information ");
- AdminDuty[playerid] = 0;
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT,"Registration","Type your password below to register a new account:","Register","Leave");
- }
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- gPlayerLogged[playerid] = 0;
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"[PlayerStats]");
- INI_WriteInt(File,"Money",PlayerInfo[playerid][pMoney]);
- INI_WriteInt(File,"AdminLevel",PlayerInfo[playerid][pAdminLevel]);
- INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin]);
- INI_WriteInt(File,"Registered",PlayerInfo[playerid][pRegistered]);
- INI_WriteInt(File,"Age",PlayerInfo[playerid][pAge]);
- INI_WriteInt(File,"Origin",PlayerInfo[playerid][pOrigin]);
- INI_WriteInt(File,"Accent",PlayerInfo[playerid][pAccent]);
- INI_WriteFloat(File,"Health",PlayerInfo[playerid][pHealth]);
- INI_WriteFloat(File,"Armour",PlayerInfo[playerid][pArmour]);
- INI_WriteInt(File,"Bank",PlayerInfo[playerid][pBank]);
- INI_WriteInt(File,"Job",PlayerInfo[playerid][pJob]);
- INI_WriteInt(File,"Faction",PlayerInfo[playerid][pFaction]);
- INI_WriteInt(File,"Rank",PlayerInfo[playerid][pRank]);
- INI_WriteInt(File,"License",PlayerInfo[playerid][pLicense]);
- INI_WriteInt(File,"Cocaine",PlayerInfo[playerid][pCocaine]);
- INI_WriteInt(File,"Marijuana",PlayerInfo[playerid][pMarijuana]);
- INI_WriteInt(File,"Donater",PlayerInfo[playerid][pDonater]);
- INI_WriteInt(File,"DonaterPoints",PlayerInfo[playerid][pDonaterPoints]);
- INI_WriteInt(File,"Watch",PlayerInfo[playerid][pWatch]);
- INI_WriteInt(File,"Phone",PlayerInfo[playerid][pPhone]);
- INI_WriteInt(File,"PhoneNumber",PlayerInfo[playerid][pPhoneNumber]);
- INI_WriteInt(File,"House",PlayerInfo[playerid][pHouse]);
- INI_WriteInt(File,"Cigars",PlayerInfo[playerid][pCigars]);
- INI_WriteInt(File,"Lighter",PlayerInfo[playerid][pLighter]);
- INI_WriteInt(File,"Mask",PlayerInfo[playerid][pMask]);
- INI_WriteInt(File,"JailTime",PlayerInfo[playerid][pJailTime]);
- INI_WriteInt(File,"Gun01",PlayerInfo[playerid][pGun01]);
- INI_WriteInt(File,"Gun02",PlayerInfo[playerid][pGun02]);
- INI_WriteInt(File,"Gun03",PlayerInfo[playerid][pGun03]);
- INI_WriteInt(File,"Gun04",PlayerInfo[playerid][pGun04]);
- INI_WriteInt(File,"Gun05",PlayerInfo[playerid][pGun05]);
- INI_WriteInt(File,"Gun06",PlayerInfo[playerid][pGun06]);
- INI_WriteInt(File,"Gun07",PlayerInfo[playerid][pGun07]);
- INI_WriteInt(File,"Gun08",PlayerInfo[playerid][pGun08]);
- INI_WriteInt(File,"Gun09",PlayerInfo[playerid][pGun09]);
- INI_WriteInt(File,"Gun11",PlayerInfo[playerid][pGun11]);
- INI_WriteInt(File,"Ammo01",PlayerInfo[playerid][pAmmo01]);
- INI_WriteInt(File,"Ammo02",PlayerInfo[playerid][pAmmo02]);
- INI_WriteInt(File,"Ammo03",PlayerInfo[playerid][pAmmo03]);
- INI_WriteInt(File,"Ammo04",PlayerInfo[playerid][pAmmo04]);
- INI_WriteInt(File,"Ammo05",PlayerInfo[playerid][pAmmo05]);
- INI_WriteInt(File,"Ammo06",PlayerInfo[playerid][pAmmo06]);
- INI_WriteInt(File,"Ammo07",PlayerInfo[playerid][pAmmo07]);
- INI_WriteInt(File,"Ammo08",PlayerInfo[playerid][pAmmo08]);
- INI_WriteInt(File,"Ammo09",PlayerInfo[playerid][pAmmo09]);
- INI_WriteInt(File,"Ammo11",PlayerInfo[playerid][pAmmo11]);
- INI_Close(File);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- return 1;
- }
- forward Hospital(playerid);
- public OnPlayerDeath(playerid, killerid, reason)
- {
- TextDrawShowForPlayer(playerid, Textdraw0);
- TextDrawShowForPlayer(playerid, Textdraw1);
- SendClientMessage(killerid, COLOR_TWRED, "They black out, and fall to the ground...");
- SendClientMessage(playerid, COLOR_TWRED, "You black out, and fall to the ground...");
- ClearWeapons(playerid);
- TogglePlayerSpectating(playerid, true);
- TogglePlayerControllable(playerid, false);
- SetTimerEx("Hospital", 25000, 0, "i", playerid);
- return 1;
- }
- public Hospital(playerid)
- {
- new string[256];
- TogglePlayerSpectating(playerid, false);
- SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], -318.6522, 1049.3909, 20.3403, 358.4333, 0, 0, 0, 0, 0, 0);
- SpawnPlayer(playerid);
- SetPlayerInterior(playerid, 5);
- SetPlayerPos(playerid, -676.3841, -726.8386, 1072.5399);
- SetPlayerFacingAngle(playerid, 91.4410);
- TogglePlayerControllable(playerid, true);
- SendClientMessage(playerid, COLOR_TWPINK, "You wake up in a hospital bed, a bit dizzy, and cannot remember what had happened!");
- TextDrawHideForPlayer(playerid, Textdraw0);
- TextDrawHideForPlayer(playerid, Textdraw1);
- format(string, sizeof(string), " %s slowly opens his eyes, waking up in a hospital bed", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 1)
- {
- if(PlayerInfo[playerid][pAccent] == 0)
- {
- new string[256], playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), "%s says: %s", playername, text);
- ProxDetector(15.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
- }
- if(PlayerInfo[playerid][pAccent] == 1)
- {
- new string[256], playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), "%s says [European Accent]: %s", playername, text);
- ProxDetector(15.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
- }
- if(PlayerInfo[playerid][pAccent] == 2)
- {
- new string[256], playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), "%s says [African Accent]: %s", playername, text);
- ProxDetector(15.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
- }
- if(PlayerInfo[playerid][pAccent] == 3)
- {
- new string[256], playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), "%s says [Australian Accent]: %s", playername, text);
- ProxDetector(15.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
- }
- if(PlayerInfo[playerid][pAccent] == 4)
- {
- new string[256], playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), "%s says [Asian Accent]: %s", playername, text);
- ProxDetector(15.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
- }
- if(PlayerInfo[playerid][pAccent] == 5)
- {
- new string[256], playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), "%s says [South American Accent]: %s", playername, text);
- ProxDetector(15.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
- }
- }
- }
- if(Mobile[playerid] != INVALID_PLAYER_ID && PlayerInfo[playerid][pPhone] > 0)
- {
- new string[256];
- format(string, sizeof(string), "(cellphone) %s says: %s", GetPlayerNameEx(playerid), text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- if(Mobile[playerid] == 914)
- {
- if(!text[0])
- {
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "Dispatch: Sorry, I don't understand?");
- return 0;
- }
- SendClientMessage(playerid, COLOR_BLUE, "Dispatch: We have alerted all units in the area.");
- SendClientMessage(playerid, COLOR_BLUE, "Thank you for reporting this incident");
- SendClientMessage(playerid, COLOR_GRAD2, " They hung up...");
- Mobile[playerid] = INVALID_PLAYER_ID;
- return 0;
- }
- if(Mobile[playerid] == 912)
- {
- if(!text[0])
- {
- SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Sorry, I don't understand?");
- return 0;
- }
- SendClientMessage(playerid, COLOR_BLUE, "Police HQ: We are sending a unit to your location...");
- return 0;
- }
- if(Mobile[playerid] == 911)
- {
- if(!text[0])
- {
- SendClientMessage(playerid, COLOR_BLUE, "EMERGENCY: Sorry, I don't understand - police or paramedic?");
- return 0;
- }
- else if (strcmp("police", text, true) == 0)
- {
- SendClientMessage(playerid, COLOR_BLUE, "EMERGENCY: I am patching you to police headquarters, please hold...");
- Mobile[playerid] = 912;
- SendClientMessage(playerid, COLOR_BLUE, "Police HQ: Please give me a short description of the crime.");
- return 0;
- }
- else if (strcmp("paramedic", text, true) == 0)
- {
- SendClientMessage(playerid, COLOR_BLUE, "EMERGENCY: I am patching you to FDSA headquarters, please hold...");
- Mobile[playerid] = 914;
- SendClientMessage(playerid, COLOR_BLUE, "Dispatch: Please give me a short description of the incident.");
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_BLUE, "EMERGENCY: Sorry, I don't understand - police or paramedic?");
- return 0;
- }
- }
- if(IsPlayerConnected(Mobile[playerid]))
- {
- if(Mobile[Mobile[playerid]] == playerid)
- {
- SendClientMessage(Mobile[playerid], COLOR_YELLOW, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW,"There is nobody on the line...");
- }
- }
- return 0;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- return 0;
- }
- //Admin Commands
- CMD:ban(playerid, params[])
- {
- new Player, Reason[256];
- if (sscanf(params, "us[256]", Player, Reason))
- {
- SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /ban [PlayerID or Name] [Reason]");
- }
- else if (Player == INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player name or id entered!");
- }
- else
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 1)
- {
- if((PlayerInfo[playerid][pAdminLevel] > 1 || IsPlayerAdmin(playerid))&& AdminDuty[playerid] == 1)
- {
- new playername[MAX_PLAYER_NAME], playername2[MAX_PLAYER_NAME], string[256];
- GetPlayerName(playerid, playername, sizeof(playername));
- GetPlayerName(Player, playername2, sizeof(playername2));
- format(string, sizeof(string), "Staff Member %s has banned %s, Reason: %s", playername, playername2, Reason);
- SendClientMessageToAll(COLOR_RED, string);
- Ban(Player);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use this command!");
- }
- }
- }
- }
- return 1;
- }
- CMD:kick(playerid, params[])
- {
- new Player, Reason[256];
- if (sscanf(params, "us[256]", Player, Reason))
- {
- SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /kick [PlayerID or Name] [Reason]");
- }
- else if (Player == INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player name or id entered!");
- }
- else
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 1)
- {
- if((PlayerInfo[playerid][pAdminLevel] > 0 || IsPlayerAdmin(playerid)) && AdminDuty[playerid] == 1)
- {
- new playername[MAX_PLAYER_NAME], playername2[MAX_PLAYER_NAME], string[256];
- GetPlayerName(playerid, playername, sizeof(playername));
- GetPlayerName(Player, playername2, sizeof(playername2));
- format(string, sizeof(string), "Staff Member %s has kicked %s, Reason: %s", playername, playername2, Reason);
- SendClientMessageToAll(COLOR_RED, string);
- Kick(Player);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a moderator/administrator!");
- }
- }
- }
- }
- return 1;
- }
- CMD:setstaff(playerid, params[])
- {
- if(IsPlayerAdmin(playerid))
- {
- new Player, Level;
- if (sscanf(params, "ui", Player, Level))
- {
- if(Level < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid staff level!");
- }
- else if(PlayerInfo[Player][pAdminLevel] >= 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Player is already an Admin or Mod!");
- }
- else if (Player == INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player name or id entered!");
- }
- else
- {
- new string[256], INI:File = INI_Open(UserPath(playerid));
- PlayerInfo[Player][pAdminLevel] = Level;
- INI_WriteInt(File,"AdminLevel",PlayerInfo[playerid][pAdminLevel]);
- format(string, sizeof(string), "You have been promoted to a staff position by %s", GetPlayerNameEx(playerid));
- SendClientMessage(Player, COLOR_GREEN, string);
- format(string, sizeof(string), "You have promoted %s to a staff position, level: %i", GetPlayerNameEx(Player), Level);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- }
- return 1;
- }
- CMD:setskin(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
- {
- if(AdminDuty[playerid] >= 1)
- {
- new Player, Skinid;
- if (sscanf(params, "ui", Player, Skinid))
- {
- SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /setskin [PlayerID or Name] [SkinID]");
- }
- else if (Player == INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player name or id entered!");
- }
- else
- {
- new string[256];
- format(string, sizeof(string), "Your skin has been set to %i by %s", Skinid, GetPlayerNameEx(playerid));
- SendClientMessage(Player, COLOR_YELLOW, string);
- format(string, sizeof(string), "You have set %s's skin to %i", GetPlayerNameEx(Player), Skinid);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- SetPlayerSkin(Player, Skinid);
- PlayerInfo[Player][pSkin] = Skinid;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You must be on duty to perform this command");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You must be a administrator or moderator to use this command");
- }
- return 1;
- }
- CMD:createcar(playerid, params[])
- {
- new CarID, Color1, Color2;
- if(sscanf(params, "iii", CarID, Color1, Color2))
- {
- SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /createcar [CarID] [Color] [Color]");
- }
- else if(CarID < 400)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid Car ID");
- }
- else if(Color1 < 0 || Color2 < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid Color ID");
- }
- else
- {
- if((PlayerInfo[playerid][pAdminLevel] > 1 || IsPlayerAdmin(playerid)) && AdminDuty[playerid] == 1)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- CreateVehicle(CarID, x, y, z, 0, Color1, Color2, 900000);
- }
- }
- return 1;
- }
- CMD:goto(playerid, params[])
- {
- new Players;
- if(sscanf(params, "u", Players))
- {
- SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /goto [playerid]");
- }
- else if(PlayerInfo[playerid][pAdminLevel] <= 0 || IsPlayerAdmin(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "This command can only be used by a moderator/administrator");
- }
- else if(AdminDuty[playerid] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You must be on admin duty to use this command");
- }
- else
- {
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(Players, X, Y, Z);
- SetPlayerPos(playerid, X, Y, Z);
- }
- return 1;
- }
- CMD:gethere(playerid, params[])
- {
- new Players;
- if(sscanf(params, "u", Players))
- {
- SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /gethere [playerid]");
- }
- else if(PlayerInfo[playerid][pAdminLevel] <= 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This command can only be used by a moderator/administrator");
- }
- else if(AdminDuty[playerid] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You must be on admin duty to use this command");
- }
- else
- {
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- SetPlayerPos(Players, X, Y, Z);
- }
- return 1;
- }
- CMD:freeze(playerid, params[])
- {
- new Players;
- if(sscanf(params, "u", Players))
- {
- SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /freeze [playerid]");
- }
- else if(PlayerInfo[playerid][pAdminLevel] <= 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This command can only be used by a moderator/administrator");
- }
- else if(AdminDuty[playerid] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You must be on admin duty to use this command");
- }
- else
- {
- TogglePlayerControllable(Players, false);
- new string[256];
- format(string, sizeof(string), "Staff Member %s has frozen you, if you think this is unfair please report the Staff Member...", GetPlayerNameEx(playerid));
- SendClientMessage(Players, COLOR_RED, string);
- }
- return 1;
- }
- CMD:unfreeze(playerid, params[])
- {
- new Players;
- if(sscanf(params, "u", Players))
- {
- SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /unfreeze [playerid]");
- }
- else if(PlayerInfo[playerid][pAdminLevel] <= 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This command can only be used by a moderator/administrator");
- }
- else if(AdminDuty[playerid] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You must be on admin duty to use this command");
- }
- else
- {
- TogglePlayerControllable(Players, true);
- TogglePlayerSpectating(Players, false);
- new string[256];
- format(string, sizeof(string), "Staff Member %s has unfrozen you", GetPlayerNameEx(playerid));
- SendClientMessage(Players, COLOR_RED, string);
- }
- return 1;
- }
- CMD:spectate(playerid, params[])
- {
- new Players;
- if(sscanf(params, "u", Players))
- {
- SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /spec(tate) [playerid]");
- }
- else if(PlayerInfo[playerid][pAdminLevel] <= 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This command can only be used by a moderator/administrator");
- }
- else if(gPlayerLogged[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You must be logged in to use this command");
- }
- else
- {
- if(AdminDuty[playerid] > 0)
- {
- new string[256];
- format(string, sizeof(string), "Staff Member %s has started spectating you", GetPlayerNameEx(playerid));
- SendClientMessage(Players, COLOR_RED, string);
- if(!IsPlayerInAnyVehicle(Players))
- {
- TogglePlayerSpectating(playerid, true);
- PlayerSpectatePlayer(playerid, Players);
- SetPlayerInterior(playerid, GetPlayerInterior(Players));
- SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Players));
- Spectating[playerid] = 1;
- }
- else
- {
- TogglePlayerSpectating(playerid, true);
- new carid = GetPlayerVehicleID(Players);
- PlayerSpectateVehicle(playerid, carid);
- SetPlayerInterior(playerid, GetPlayerInterior(Players));
- SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Players));
- Spectating[playerid] = 1;
- }
- }
- else
- {
- if(!IsPlayerInAnyVehicle(Players))
- {
- TogglePlayerSpectating(playerid, true);
- PlayerSpectatePlayer(playerid, Players);
- SetPlayerInterior(playerid, GetPlayerInterior(Players));
- SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Players));
- Spectating[playerid] = 1;
- }
- else
- {
- TogglePlayerSpectating(playerid, true);
- new carid = GetPlayerVehicleID(Players);
- PlayerSpectateVehicle(playerid, carid);
- SetPlayerInterior(playerid, GetPlayerInterior(Players));
- SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Players));
- Spectating[playerid] = 1;
- }
- }
- }
- return 1;
- }
- CMD:spec(playerid, params[])
- {
- return cmd_spectate(playerid, params);
- }
- CMD:givedeagle(playerid, params[])
- {
- PlayerInfo[playerid][pGun02] = 24;
- GivePlayerWeapon(playerid, 24, 5000);
- return 1;
- }
- CMD:staffduty(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdminLevel] > 0 || IsPlayerAdmin(playerid))
- {
- if(gPlayerLogged[playerid] == 1)
- {
- if(PlayerInfo[playerid][pAdminLevel] > 0 || IsPlayerAdmin(playerid))
- {
- if(AdminDuty[playerid] == 0)
- {
- new playername[MAX_PLAYER_NAME], string2[256];
- GetPlayerName(playerid, playername, sizeof(playername));
- AdminDuty[playerid] = 1;
- format(string2, sizeof(string2), "Staff Member %s, is now on duty", playername);
- SendClientMessageToAll(COLOR_GREEN, string2);
- }
- else
- {
- new playername[MAX_PLAYER_NAME], string2[256];
- GetPlayerName(playerid, playername, sizeof(playername));
- AdminDuty[playerid] = 0;
- format(string2, sizeof(string2), " %s, is now off duty", playername);
- SendClientMessageToAll(COLOR_GREEN, string2);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a moderator/administrator!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not logged in!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a moderator/administrator!");
- }
- return 1;
- }
- CMD:ooctoggle(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 1)
- {
- if(DisabledOOC == 0)
- {
- new playername[MAX_PLAYER_NAME], string[256];
- GetPlayerName(playerid, playername, sizeof(playername));
- if(PlayerInfo[playerid][pAdminLevel] > 0 || IsPlayerAdmin(playerid))
- {
- format(string, sizeof(string), "Staff Member %s, has disabled global OOC", playername);
- SendClientMessageToAll(COLOR_GREEN, string);
- DisabledOOC = 1;
- }
- }
- else
- {
- new playername[MAX_PLAYER_NAME], string[256];
- GetPlayerName(playerid, playername, sizeof(playername));
- if(PlayerInfo[playerid][pAdminLevel] > 0 || IsPlayerAdmin(playerid))
- {
- format(string, sizeof(string), "Staff Member %s, has enabled global OOC", playername);
- SendClientMessageToAll(COLOR_GREEN, string);
- DisabledOOC = 0;
- }
- }
- }
- }
- return 1;
- }
- //Main Commands
- CMD:stats(playerid, params[])
- {
- new string[1000];
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 1)
- {
- format(string, sizeof(string), " - Staff Level:%i - Money:%i - Bank:%i - AccentID:%i - JobID:%i - \n \
- - FactionID:%i - Faction Rank:%i - License:%i - Cocaine Grams:%i - \n - Marijuana Grams:%i - Donater:%i - Donater Rank: %i - Watch:%i - \n \
- - Phone:%i - Phone Number:%i - Cigars:%i - Lighter:%i - Mask:%i - House: %i\n",
- PlayerInfo[playerid][pAdminLevel], PlayerInfo[playerid][pMoney], PlayerInfo[playerid][pBank],
- PlayerInfo[playerid][pAccent], PlayerInfo[playerid][pJob], PlayerInfo[playerid][pFaction],
- PlayerInfo[playerid][pRank], PlayerInfo[playerid][pLicense], PlayerInfo[playerid][pCocaine],
- PlayerInfo[playerid][pMarijuana], PlayerInfo[playerid][pDonater], PlayerInfo[playerid][pDonaterPoints],
- PlayerInfo[playerid][pWatch], PlayerInfo[playerid][pPhone], PlayerInfo[playerid][pPhoneNumber],
- PlayerInfo[playerid][pCigars], PlayerInfo[playerid][pLighter], PlayerInfo[playerid][pMask], PlayerInfo[playerid][pHouse]);
- ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, "Player Stats", string, "Close", "");
- }
- }
- return 1;
- }
- CMD:help(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 1)
- {
- ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Server Help", "\r\nGeneral Help\r\nCommands Help\r\nJob Help\r\nFaction Help\r\n", "Select", "Close");
- }
- }
- return 1;
- }
- CMD:report(playerid, params[])
- {
- new Player, Reason[256];
- if (sscanf(params, "us[256]", Player, Reason))
- {
- SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /report [PlayerID or Name] [Reason]");
- }
- else if (Player == INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player name or id entered!");
- }
- else
- {
- if(IsPlayerConnected(playerid) && IsPlayerConnected(Player))
- {
- if(gPlayerLogged[playerid] == 1 && gPlayerLogged[Player] == 1)
- {
- new playername[MAX_PLAYER_NAME], playername2[MAX_PLAYER_NAME], string[256], string2[256];
- GetPlayerName(playerid, playername, sizeof(playername));
- GetPlayerName(Player, playername2, sizeof(playername2));
- format(string, sizeof(string), "[Report By %s]: %s, Report Against: %s",playername, Reason, playername2);
- format(string2, sizeof(string2), "You Reported: %s, For: %s",playername2, Reason);
- SendClientMessage(playerid, COLOR_REPORT, string2);
- ABroadCast(COLOR_REPORT,string,1);
- }
- }
- }
- return 1;
- }
- CMD:stopanim(playerid, params[])
- {
- if(ShotPlayer[playerid] == 0 && PlayerCuffed[playerid] == 0 && PlayerTied[playerid] == 0)
- {
- if(PlayerRestrained[playerid] == 1 && HandsupPlayer[playerid] == 1)
- {
- ClearAnimations(playerid);
- HandsupPlayer[playerid] = 0;
- }
- else if(PlayerRestrained[playerid] == 1 && HandsupPlayer[playerid] == 0)
- {
- }
- }
- return 1;
- }
- CMD:quitjob(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] != 0 && gPlayerLogged[playerid] == 1)
- {
- PlayerInfo[playerid][pJob] = 0;
- SendClientMessage(playerid, COLOR_RED, "You have quit your job, relog to save changes!");
- DisablePlayerCheckpoint(playerid);
- RemovePlayerFromVehicle(playerid);
- JackingCar[playerid] = 0;
- Logging[playerid] = 0;
- GettingJob[playerid] = 0;
- Farming[playerid] = 0;
- PlantingSeeds[playerid] = 0;
- GrowingCrops[playerid] = 0;
- FarmingCrops[playerid] = -1;
- CollectingTrash[playerid] = 0;
- CollectingTrash1[playerid] = 0;
- CollectingTrash2[playerid] = 0;
- CollectingTrash3[playerid] = 0;
- CollectingTrash4[playerid] = 0;
- CollectingTrash5[playerid] = 0;
- CollectingTrash6[playerid] = 0;
- CollectingTrash7[playerid] = 0;
- CollectingTrash8[playerid] = 0;
- CollectingTrash9[playerid] = 0;
- CollectingTrash10[playerid] = 0;
- CollectingTrash11[playerid] = 0;
- CollectingTrash12[playerid] = 0;
- CollectingTrash13[playerid] = 0;
- DeliveryTruck[playerid] = 0;
- SmuggleDropOff[playerid] = 0;
- HoldingObject[playerid] = 0;
- SmugglingMats[playerid] = 0;
- GettingPacks[playerid] = 0;
- ResetPlayerMoney(playerid);
- if(ptree[playerid] == 1)
- {
- tree1 = 0;
- }
- if(ptree[playerid] == 2)
- {
- tree2 = 0;
- }
- if(ptree[playerid] == 3)
- {
- tree3 = 0;
- }
- if(ptree[playerid] == 4)
- {
- tree4 = 0;
- }
- if(ptree[playerid] == 5)
- {
- tree5 = 0;
- }
- ptree[playerid] = 0;
- GiveGuns(playerid);
- }
- return 1;
- }
- CMD:collect(playerid, params[])
- {
- new vehid = GetPlayerVehicleID(playerid);
- if(PlayerInfo[playerid][pJob] == 3 && IsATrashJobCar(vehid))
- {
- if(CollectingTrash[playerid] == 0)
- {
- DisablePlayerCheckpoint(playerid);
- SendClientMessage(playerid, COLOR_GREEN, "You are now on duty.");
- SendClientMessage(playerid, COLOR_YELLOW, "The Job: Go around and clean the dumpsters around the town, you must actually go to each one.");
- SendClientMessage(playerid, COLOR_YELLOW, "Tip: Use [LEFT MOUSE BUTTON] to pickup trash from dumbsters, and put trash into the garbage truck.");
- SendClientMessage(playerid, COLOR_YELLOW, "Hint: You can only clean each dumpster once per 25 minutes.");
- CollectingTrash[playerid] = 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREEN, "You are now off duty.");
- CollectingTrash[playerid] = 0;
- }
- }
- return 1;
- }
- CMD:farm(playerid, params[])
- {
- new vehid = GetPlayerVehicleID(playerid);
- if(PlayerInfo[playerid][pJob] == 4 && (IsAFarmerJobHarvestor(vehid) || IsAFarmerJobTractor(vehid)))
- {
- if(Farming[playerid] == 0)
- {
- Farming[playerid] = 1;
- DisablePlayerCheckpoint(playerid);
- SendClientMessage(playerid, COLOR_GREEN, "You are now on duty.");
- SendClientMessage(playerid, COLOR_YELLOW, "The Job: Go purchase some seeds, get onto a tracker, and begin planting.");
- SendClientMessage(playerid, COLOR_YELLOW, "Tip: Use [LEFT MOUSE BUTTON] to plant seeds with the tractor.");
- SendClientMessage(playerid, COLOR_YELLOW, "Hint: You can plant and grow as much as you want.");
- SetPlayerCheckpoint(playerid, 300.6143, 1141.2806, 9.1375, 1);
- }
- else
- {
- DisablePlayerCheckpoint(playerid);
- SendClientMessage(playerid, COLOR_GREEN, "You are now off duty.");
- Farming[playerid] = 0;
- PlantingSeeds[playerid] = 0;
- GrowingCrops[playerid] = 0;
- FarmingCrops[playerid] = -1;
- }
- }
- return 1;
- }
- //NOT COMPLETE
- CMD:chopshop(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] == 0 && PlayerInfo[playerid][pFaction] != 1 && PlayerInfo[playerid][pFaction] != 2)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new vehid = GetPlayerVehicleID(playerid);
- if(IsARentCar(vehid) || IsACopCar(vehid) || IsAMedicCar(vehid) || IsATrashJobCar(vehid) || IsASmuggleJobCar(vehid) || IsAFarmerJobHarvestor(vehid) || IsAFarmerJobTractor(vehid))
- {
- SendClientMessage(playerid, COLOR_RED, "This car is too hot to jack!");
- }
- else
- {
- if(JackingCar[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You should head out to the garage.");
- DisablePlayerCheckpoint(playerid);
- SetPlayerCheckpoint(playerid, 413.2778, 1164.2896, 9.9507, 5);
- JackingCar[playerid] = 1;
- }
- else if(JackingCar[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You should head out to the garage.");
- DisablePlayerCheckpoint(playerid);
- SetPlayerCheckpoint(playerid, 413.2778, 1164.2896, 9.9507, 5);
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "You cannot do this.");
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "You cannot do this, you might get in trouble.");
- }
- return 1;
- }
- //NOT COMPLETE
- //House Commands
- //
- //Interior Commands
- CMD:enter(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 2, -19.1319, 1175.4475, 19.5634)) //24/7
- {
- SetPlayerPos(playerid, -27.2800, -57.5262, 1003.5469);
- SetTimerEx("Entering", 3000, 0, "i", playerid);
- SetPlayerFacingAngle(playerid, 356.8071);
- SetPlayerInterior(playerid, 6);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, -207.5546, 1119.1989, 20.4297)) //City Hall
- {
- TogglePlayerControllable(playerid, false);
- SetTimerEx("Entering", 3000, 0, "i", playerid);
- SetPlayerPos(playerid, -2064.0215, 549.8762, 1173.0511);
- SetPlayerFacingAngle(playerid, 355.5900);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "Fort Carson Town Hall", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, -224.2236,988.6121,19.6565)) //Sheriff
- {
- SetPlayerPos(playerid, -224.4235,986.8237,19.6600);
- SetPlayerFacingAngle(playerid, 182.6175);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "Fort Carson Sheriff's Office", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, -179.4907,1133.0532,19.7422)) //Bank
- {
- TogglePlayerControllable(playerid, false);
- SetTimerEx("Entering", 3000, 0, "i", playerid);
- SetPlayerPos(playerid, 2305.4167,-16.3384,26.7496);
- SetPlayerFacingAngle(playerid, 271.7880);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "Fort Carson Town Bank", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, -179.4808,1177.5085,19.8909)) //Fashion World
- {
- TogglePlayerControllable(playerid, false);
- SetTimerEx("Entering", 3000, 0, "i", playerid);
- SetPlayerPos(playerid, 204.2683,-168.0887,1000.5234);
- SetPlayerFacingAngle(playerid, 358.1880);
- SetPlayerInterior(playerid, 14);
- SendClientMessage(playerid, COLOR_YELLOW, "Welcome to fashion world, look around and see if you find anything you like!");
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, -144.1138,1224.9894,19.8992)) //Donut Shop
- {
- TogglePlayerControllable(playerid, false);
- SetTimerEx("Entering", 3000, 0, "i", playerid);
- SetPlayerPos(playerid, 377.1079,-192.6514,1000.6401);
- SetPlayerFacingAngle(playerid, 1.9894);
- SetPlayerInterior(playerid, 17);
- SendClientMessage(playerid, COLOR_YELLOW, "Welcome to Fort Carson's very own Donut Shop!");
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, -320.2786, 1048.2366, 20.3403))//Hospital
- {
- TogglePlayerControllable(playerid, false);
- SetTimerEx("Entering", 3000, 0, "i", playerid);
- SetPlayerPos(playerid, -665.6446, -745.6014, 1071.7092);
- SetPlayerFacingAngle(playerid, 93.3445);
- SetPlayerInterior(playerid, 5);
- GameTextForPlayer(playerid, "Fort Carson Medical Center", 3000, 1);
- }
- return 1;
- }
- CMD:exit(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 2, -27.3909, -58.0451, 1003.5469)) //24/7
- {
- TogglePlayerControllable(playerid, false);
- SetTimerEx("Entering", 3000, 0, "i", playerid);
- SetPlayerPos(playerid, -19.1605, 1176.0039, 20.5398);
- SetPlayerFacingAngle(playerid, 2.4472);
- SetPlayerInterior(playerid, 0);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, -2063.8120, 549.8588, 1173.051)) //City Hall
- {
- SetPlayerPos(playerid, -206.8111, 1119.2057, 20.4297);
- SetPlayerFacingAngle(playerid, 267.9258);
- SetPlayerInterior(playerid, 0);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, -224.3224,987.2881,19.6600)) //Sheriff
- {
- SetPlayerPos(playerid, -224.1739,988.3985,19.6519);
- SetPlayerFacingAngle(playerid, 354.1945);
- SetPlayerInterior(playerid, 0);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, 2304.9590,-16.1474,26.7422)) //Bank
- {
- SetPlayerPos(playerid, -180.5359,1133.0625,19.7422);
- SetPlayerFacingAngle(playerid, 94.1263);
- SetPlayerInterior(playerid, 0);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, 204.3610,-168.8571,1000.5234) && TryingClothes[playerid] == 0) //Fashion World
- {
- TogglePlayerControllable(playerid, false);
- SetTimerEx("Entering", 3000, 0, "i", playerid);
- SetPlayerPos(playerid, -180.8552,1177.5388,19.7422);
- SetPlayerFacingAngle(playerid, 91.1087);
- SetPlayerInterior(playerid, 0);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, 377.1044,-193.3044,1000.6328)) //Donut Shop
- {
- TogglePlayerControllable(playerid, false);
- SetTimerEx("Entering", 3000, 0, "i", playerid);
- SetPlayerPos(playerid, -143.9969,1223.9484,19.8992);
- SetPlayerFacingAngle(playerid, 180.5678);
- SetPlayerInterior(playerid, 0);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, -665.6400,-745.6810,1071.7092)) //Hospital
- {
- TogglePlayerControllable(playerid, false);
- SetTimerEx("Entering", 3000, 0, "i", playerid);
- SetPlayerPos(playerid, -320.2086,1048.7581,20.3403);
- SetPlayerFacingAngle(playerid, 6.7084);
- SetPlayerInterior(playerid, 0);
- }
- return 1;
- }
- CMD:house(playerid, params[])
- {
- for(new i = 0;i < sizeof(HouseInfo);i++)
- {
- if(IsPlayerInRangeOfPoint(playerid,2,HouseInfo[i][hEntranceX],HouseInfo[i][hEntranceY],HouseInfo[i][hEntranceZ]))
- {
- if(HouseInfo[i][hOwned] == 0 && PlayerInfo[playerid][pHouse] == 0 && HouseInfo[i][hRentable] == 0)
- {
- ShowPlayerDialog(playerid, 28, DIALOG_STYLE_LIST, "House Information", "Buy House\r\n", "Select", "Close");
- }
- else if(HouseInfo[i][hOwned] == 0 && PlayerInfo[playerid][pHouse] == 0 && HouseInfo[i][hRentable] == 1)
- {
- ShowPlayerDialog(playerid, 31, DIALOG_STYLE_LIST, "House Information", "Buy House\r\nRent House\r\n", "Select", "Close");
- }
- else if(HouseInfo[i][hOwned] == 1)
- {
- if(!strcmp(HouseInfo[i][hOwner],GetPlayerNameEx(playerid)))
- {
- ShowPlayerDialog(playerid, 29, DIALOG_STYLE_LIST, "House Information", "Sell House\r\nSet Rent\r\nLock House\r\nUnlock House\r\nHouse Balance\r\n", "Select", "Close");
- }
- else
- {
- if(HouseInfo[i][hRentable] == 1)
- {
- ShowPlayerDialog(playerid, 30, DIALOG_STYLE_LIST, "House Information", "Rent House\r\n", "Select", "Close");
- }
- }
- }
- }
- }
- return 1;
- }
- CMD:buy(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 2, -23.2030, -55.6182, 1003.5469))
- {
- SendClientMessage(playerid, COLOR_YELLOW, "[Cashier]: Welcome to the General Store, what yall looking for today?");
- ShowPlayerDialog(playerid, 18, DIALOG_STYLE_LIST, "Fort Carson General Store", "Cigars[$6 A pack]\r\nLighter[$3]\r\nPhone[$95]\r\n", "Purchase", "No Thanks");
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, 204.2790, -159.3536, 1000.5234) && TryingClothes[playerid] == 1)
- {
- if(PlayerInfo[playerid][pMoney] >= 25)
- {
- new INI:File = INI_Open(UserPath(playerid));
- PlayerInfo[playerid][pSkin] = GetPlayerSkin(playerid);
- INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin]);
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 25);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- TryingClothes[playerid] = 0;
- SendClientMessage(playerid, COLOR_YELLOW, "That'll be $25 dollars!");
- SendClientMessage(playerid, COLOR_YELLOW, "Thanks for visiting Fashion World, hope to see you soon!");
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, 300.6143,1141.2806,9.1375) && Farming[playerid] == 1 && FarmingCrops[playerid] == -1)
- {
- if(PlayerInfo[playerid][pMoney] >= 20)
- {
- new INI:File = INI_Open(UserPath(playerid));
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 20);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- PlantingSeeds[playerid] = 5;
- SendClientMessage(playerid, COLOR_YELLOW, "That'll be $20 dollars!");
- SendClientMessage(playerid, COLOR_YELLOW, "You can get onto a tractor and begin planting, use the [LEFT MOUSE BUTTON]!");
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 5, 380.6606, -188.6519, 1000.6328))
- {
- if(PlayerInfo[playerid][pMoney] >= 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "[Cashier]: Welcome to the Donut Shop, what would you like to order...?");
- ShowPlayerDialog(playerid, 25, DIALOG_STYLE_LIST, "Donut Shop", "Small Burger[$3]\r\nSmall Pizza[$3]\r\nLarge Burger[$5]\r\nLarge Pizza[$5]\r\nLarge Drink[$2]\r\n", "Buy", "Close");
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 5, 311.6373, -166.1311, 999.6010))
- {
- ShowPlayerDialog(playerid, 27, DIALOG_STYLE_LIST, "Fort Carson Powertool", "Colt45[$1250]\r\nShotgun[$2500]\r\nKevlar[$250]\r\n", "Purchase", "No Thanks");
- }
- return 1;
- }
- CMD:tryon(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 2, 199.0392, -162.7294, 1000.5234) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 1)
- {
- new string[256];
- TryingClothes[playerid] = 1;
- SetPlayerSkin(playerid, 161);
- SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
- format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, 209.7188, -162.7050, 1000.5234) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 1)
- {
- new string[256];
- TryingClothes[playerid] = 1;
- SetPlayerSkin(playerid, 48);
- SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
- format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, 206.1754, -161.6224, 1001.7235) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 1)
- {
- new string[256];
- TryingClothes[playerid] = 1;
- SetPlayerSkin(playerid, 59);
- SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
- format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, 206.4646, -164.3621, 1001.7235) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 1)
- {
- new string[256];
- TryingClothes[playerid] = 1;
- SetPlayerSkin(playerid, 46);
- SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
- format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, 202.4623, -164.0576, 1001.7235) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 1)
- {
- new string[256];
- TryingClothes[playerid] = 1;
- SetPlayerSkin(playerid, 36);
- SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
- format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, 202.4364, -161.8771, 1001.7235) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 1)
- {
- new string[256];
- TryingClothes[playerid] = 1;
- SetPlayerSkin(playerid, 66);
- SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
- format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, 199.0392, -162.7294, 1000.5234) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 2)
- {
- new string[256];
- TryingClothes[playerid] = 1;
- SetPlayerSkin(playerid, 12);
- SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
- format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, 209.7188, -162.7050, 1000.5234) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 2)
- {
- new string[256];
- TryingClothes[playerid] = 1;
- SetPlayerSkin(playerid, 13);
- SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
- format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, 206.1754, -161.6224, 1001.7235) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 2)
- {
- new string[256];
- TryingClothes[playerid] = 1;
- SetPlayerSkin(playerid, 56);
- SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
- format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, 206.4646, -164.3621, 1001.7235) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 2)
- {
- new string[256];
- TryingClothes[playerid] = 1;
- SetPlayerSkin(playerid, 10);
- SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
- format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, 202.4623, -164.0576, 1001.7235) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 2)
- {
- new string[256];
- TryingClothes[playerid] = 1;
- SetPlayerSkin(playerid, 69);
- SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
- format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2, 202.4364, -161.8771, 1001.7235) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 2)
- {
- new string[256];
- TryingClothes[playerid] = 1;
- SetPlayerSkin(playerid, 90);
- SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
- format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- return 1;
- }
- CMD:takeoff(playerid, params[])
- {
- if(TryingClothes[playerid] == 1)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3, 215.9261, -158.9923, 1000.5306))
- {
- new string[256];
- TryingClothes[playerid] = 0;
- SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- format(string, sizeof(string), " %s changes back into their original clothes, in the changing room", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- }
- return 1;
- }
- CMD:bank(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 2, 2316.6182, -15.3364, 26.7422) || IsPlayerInRangeOfPoint(playerid, 2, 2316.6196, -12.7045, 26.7422) || IsPlayerInRangeOfPoint(playerid, 2, 2316.6199, -10.1284, 26.7422) || IsPlayerInRangeOfPoint(playerid, 2, 2316.6213,-7.5990,26.7422))
- {
- ShowPlayerDialog(playerid, 19, DIALOG_STYLE_LIST, "Fort Carson Town Bank", "Check Balance\r\nWithdraw\r\nDeposit\r\n", "Continue", "No Thanks");
- }
- return 1;
- }
- CMD:pay(playerid, params[])
- {
- new Players, Amount;
- if(sscanf(params, "ui", Players, Amount))
- {
- SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /pay [Player Name/ID] [Amount]");
- }
- else if(PlayerInfo[playerid][pMoney] < Amount)
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have the much money");
- }
- else if(gPlayerLogged[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Both players must be logged in for the command to continue");
- }
- else if(Amount <= 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have the much money");
- }
- else
- {
- if(GetDistanceBetweenPlayers(playerid,Players) < 4)
- {
- new string[256];
- PlayerInfo[Players][pMoney] += Amount;
- PlayerInfo[playerid][pMoney] -= Amount;
- ResetPlayerMoney(Players);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- GivePlayerMoney(Players, PlayerInfo[Players][pMoney]);
- format(string, sizeof(string), " %s reaches into his pocket and takes out %i and hands it to %s", GetPlayerNameEx(playerid), Amount, GetPlayerNameEx(Players));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not close enough to the other player");
- }
- }
- return 1;
- }
- CMD:smoke(playerid, params[])
- {
- if(PlayerInfo[playerid][pCigars] > 0)
- {
- if(PlayerInfo[playerid][pLighter] > 0)
- {
- new string[256];
- format(string, sizeof(string), " %s lights their cigar and puts away their lighter", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
- PlayerInfo[playerid][pCigars] -= 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You need a lighter to light your ciger!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have any cigars!");
- }
- return 1;
- }
- CMD:handsup(playerid, params[])
- {
- if(PlayerRestrained[playerid] == 0)
- {
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_HANDSUP);
- HandsupPlayer[playerid] = 1;
- PlayerRestrained[playerid] = 1;
- }
- return 1;
- }
- //Car Commands
- CMD:engine(playerid, params[])
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- newcar[playerid] = GetPlayerVehicleID(playerid);
- GetVehicleParamsEx(newcar[playerid], engine, lights, alarm, doors, bonnet, boot, objective);
- if(engine != 1 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- new string[256];
- SetVehicleParamsEx(newcar[playerid], 1, lights, alarm, doors, bonnet, boot, objective);
- format(string, sizeof(string), " %s twists his key and turns on the vehicle", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- new string[256];
- SetVehicleParamsEx(newcar[playerid], 0, lights, alarm, doors, bonnet, boot, objective);
- format(string, sizeof(string), " %s twists his key and turns off the vehicle", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- }
- return 1;
- }
- CMD:lights(playerid, params[])
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- /*new Float:cx, Float:cy, Float:cz;
- GetVehiclePos(oldcar[playerid], cx, cy, cz);
- if(IsPlayerInRangeOfPoint(playerid, 5.0 ,cx, cy, cz);*/
- newcar[playerid] = GetPlayerVehicleID(playerid);
- GetVehicleParamsEx(newcar[playerid], engine, lights, alarm, doors, bonnet, boot, objective);
- if(lights != 1 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- SetVehicleParamsEx(newcar[playerid], engine, 1, alarm, doors, bonnet, boot, objective);
- }
- else
- {
- SetVehicleParamsEx(newcar[playerid], engine, 0, alarm, doors, bonnet, boot, objective);
- }
- }
- return 1;
- }
- //Talk Commands
- CMD:me(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 1)
- {
- new string[256], playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), " %s %s", playername, params);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- }
- return 1;
- }
- CMD:cartest(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- new string[256];
- GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
- format(string, sizeof(string), "Vehicle Status : [Panels] : %d - [Doors] : %d - [Lights] : %d - [Tires] : %d",panels,doors,lights,tires);
- SendClientMessage(playerid, COLOR_GREEN, string);
- return 1;
- }
- CMD:do(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 1)
- {
- new string[256], playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), " ((%s)) %s", playername, params);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- }
- return 1;
- }
- CMD:ooc(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 1)
- {
- if(DisabledOOC == 0)
- {
- new string[256], playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), " (([Global OOC] %s says: %s))", playername, params);
- SendClientMessageToAll(COLOR_GREY, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Global OOC has been disabled by a moderator/administrator");
- }
- }
- }
- return 1;
- }
- CMD:o(playerid, params[])
- {
- return cmd_ooc(playerid, params);
- }
- CMD:b(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 1)
- {
- new string[256], playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), " (([Local OOC] %s says: %s))", playername, params);
- ProxDetector(30.0, playerid, string, COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY);
- }
- }
- return 1;
- }
- CMD:w(playerid, params[])
- {
- return cmd_whisper(playerid, params);
- }
- CMD:whisper(playerid, params[])
- {
- new Player, Text[256];
- if (sscanf(params, "us[256]", Player, Text))
- {
- SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /w(hisper) [playerid or name] [text]");
- }
- else if (Player == INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player name or id entered!");
- }
- else
- {
- if(IsPlayerConnected(Player))
- {
- if(gPlayerLogged[playerid] == 1 && gPlayerLogged[Player] == 1)
- {
- if(GetDistanceBetweenPlayers(playerid,Player) < 4)
- {
- new string[256], string2[256], playername[MAX_PLAYER_NAME], playername2[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- GetPlayerName(Player, playername2, sizeof(playername2));
- format(string, sizeof(string), " %s whispers something to %s", playername, playername2);
- ProxDetector(4.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
- format(string2, sizeof(string2), " [Whisper] %s says: %s", playername, Text);
- SendClientMessage(Player, COLOR_YELLOW, string2);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Player is too far away from you!");
- }
- }
- }
- }
- return 1;
- }
- CMD:s(playerid, params[])
- {
- return cmd_shout(playerid, params);
- }
- CMD:shout(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 1)
- {
- new string[256], playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), " %s shouts: %s", playername, params);
- ProxDetector(30.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
- }
- }
- return 1;
- }
- //Phone Commands
- CMD:call(playerid, params[])
- {
- new string[128], phonenumb;
- if(sscanf(params, "d", phonenumb)) return SendClientMessage(playerid, COLOR_WHITE, "[Command Usage]: /call [phonenumber]");
- if (PlayerInfo[playerid][pJailTime] > 0)
- {
- SendClientMessage(playerid,COLOR_GREY,"You can't use your phone while in jail.");
- return 1;
- }
- if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0)
- {
- SendClientMessage(playerid,COLOR_GREY,"You can't use your phone whilist restrained.");
- return 1;
- }
- if(PlayerInfo[playerid][pPhone] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have a cell phone.");
- return 1;
- }
- if(PhoneOnline[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your phone is off.");
- return 1;
- }
- format(string, sizeof(string), " %s takes out their cellphone, and dials a number", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- if(phonenumb == 911)
- {
- if(PlayerInfo[playerid][pJailTime] > 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "[Phone]: No signal can be reached in your area..HTTP.");
- return 1;
- }
- SendClientMessage(playerid, COLOR_WHITE, "HINT: You now use T to talk on your cellphone, type /hangup to hang up.");
- SendClientMessage(playerid, COLOR_BLUE, "EMERGENCY: Which service do you require, police or paramedic?");
- Mobile[playerid] = 911;
- return 1;
- }
- if(phonenumb == PlayerInfo[playerid][pPhoneNumber])
- {
- SendClientMessage(playerid, COLOR_GREY, "[PHONE]: You just get a busy tone...");
- return 1;
- }
- if(Mobile[playerid] != INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GREY, "[PHONE]: You are already on a call...");
- return 1;
- }
- foreach(Player, i)
- {
- if(PlayerInfo[i][pPhoneNumber] == phonenumb && phonenumb != 0)
- {
- new giveplayerid = i;
- Mobile[playerid] = giveplayerid; //caller connecting
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PhoneOnline[giveplayerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "[Phone]: You get a dead tone...");
- Mobile[playerid] = INVALID_PLAYER_ID;
- return 1;
- }
- if(Mobile[giveplayerid] != INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GREY, "[Phone]: You just get a busy tone...");
- Mobile[playerid] = INVALID_PLAYER_ID;
- return 1;
- }
- if(Spectating[giveplayerid]!=0)
- {
- SendClientMessage(playerid, COLOR_GREY, "[Phone]: You just get a busy tone...");
- Mobile[playerid] = INVALID_PLAYER_ID;
- return 1;
- }
- if (Mobile[giveplayerid] == INVALID_PLAYER_ID)
- {
- format(string, sizeof(string), "[Phone]: Your phone begins to ring... [Caller ID: %s]", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_YELLOW, string);
- RingTone[giveplayerid] = 10;
- format(string, sizeof(string), " %s's starts to ring", GetPlayerNameEx(i));
- SendClientMessage(playerid, COLOR_WHITE, "HINT: You now use T to talk on your cellphone, type /hangup to hang up.");
- ProxDetector(30.0, i, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- new Float:rX, Float:rY, Float:rZ;
- GetPlayerPos(giveplayerid, rX, rY, rZ);
- CellTime[playerid] = 1;
- return SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
- }
- }
- }
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "[Phone]: Your call can not be completed as dialed, please check the number and try again.");
- return 1;
- }
- CMD:hangup(playerid,params[])
- {
- new string[128];
- if(PlayerCuffed[playerid]!= 0 || PlayerTied[playerid] != 0)
- {
- SendClientMessage (playerid, COLOR_GREY, "You cannot do this at this time.");
- return 1;
- }
- new caller = Mobile[playerid];
- if((IsPlayerConnected(caller) && caller != INVALID_PLAYER_ID)|| caller == 911)
- {
- if(caller < 500)
- {
- SendClientMessage(caller, COLOR_GREY, "[Phone]: They hung up.");
- format(string, sizeof(string), " %s hangs up and puts away their cellphone", GetPlayerNameEx(caller));
- ProxDetector(30.0, caller, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- CellTime[caller] = 0;
- Mobile[caller] = INVALID_PLAYER_ID;
- }
- CellTime[playerid] = 0;
- SendClientMessage(playerid, COLOR_GREY, "[Phone]: You hung up.");
- format(string, sizeof(string), " %s hangs up and puts away their cellphone", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- Mobile[playerid] = INVALID_PLAYER_ID;
- CellTime[playerid] = 0;
- RingTone[playerid] = 0;
- SetPlayerSpecialAction(caller, SPECIAL_ACTION_STOPUSECELLPHONE);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
- return 1;
- }
- SendClientMessage(playerid, COLOR_GREY, "[Phone]: You are not on a call.");
- return 1;
- }
- CMD:h(playerid,params[])
- {
- return cmd_hangup(playerid, params);
- }
- CMD:pickup(playerid, params[])
- {
- new string[128];
- if(Mobile[playerid] != INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GREY, "[Phone]: You are already on a call...");
- return 1;
- }
- if(PlayerCuffed[playerid]!= 0 || PlayerTied[playerid] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot do this at this time.");
- return 1;
- }
- foreach(Player, i)
- {
- if(Mobile[i] == playerid)
- {
- Mobile[playerid] = i; //caller connecting
- SendClientMessage(i, COLOR_GREEN, "[Phone]: You are now connected.");
- format(string, sizeof(string), " %s takes out their cellphone and answers it", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RingTone[playerid] = 0;
- return SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
- }
- }
- return 1;
- }
- CMD:p(playerid, params[])
- {
- return cmd_pickup(playerid, params);
- }
- CMD:text(playerid, params[])
- {
- new Player, Text[256];
- if(IsPlayerConnected(playerid) && IsPlayerConnected(Player))
- {
- if(gPlayerLogged[playerid] == 1 && gPlayerLogged[Player] == 1)
- {
- if(PlayerCuffed[playerid]!= 0 || PlayerTied[playerid] != 0)
- {
- if(sscanf(params, "us[256]", Player, Text))
- {
- SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /sms (Player Name/ID) (Message)");
- }
- else if (Player == INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player name or ID");
- }
- else if(PlayerInfo[playerid][pPhone] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have a cell phone.");
- return 1;
- }
- else
- {
- new string[256];
- format(string, sizeof(string), "[Text Message From %s]: %s",GetPlayerNameEx(playerid), Text);
- SendClientMessage(Player, COLOR_YELLOW, string);
- SendClientMessage(playerid, COLOR_YELLOW, "[Phone]: Text Message Has Been Sent");
- }
- }
- }
- }
- return 1;
- }
- CMD:sms(playerid, params[])
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You haven't logged in yet!");
- return 1;
- }
- if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0)
- {
- SendClientMessage(playerid,COLOR_GREY," You can't use your phone whilist restrained.");
- return 1;
- }
- new string[128], phonenumb, text[100];
- if(sscanf(params, "ds[100]", phonenumb, text)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/t)ext [phonenumber] [text chat]");
- if(PlayerInfo[playerid][pPhoneNumber] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have a cell phone...");
- return 1;
- }
- if (PlayerInfo[playerid][pJailTime] > 0)
- {
- SendClientMessage(playerid,COLOR_GREY,"You can not use your phone while in jail or prison!");
- return 1;
- }
- if(PhoneOnline[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your phone is off.");
- return 1;
- }
- if(Spectating[playerid]==0)
- {
- format(string, sizeof(string), "* %s takes out a cellphone.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if(phonenumb == 555)
- {
- if ((strcmp("yes", text, true, strlen(text)) == 0) && (strlen(text) == strlen("yes")))
- {
- SendClientMessage(playerid, COLOR_WHITE, "Text message delivered.");
- SendClientMessage(playerid, COLOR_YELLOW, "SMS: I'm watching you, Sender: MOLE (555)");
- RingTone[playerid] = 20;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "SMS: I'm watching you, Sender: MOLE (555)");
- RingTone[playerid] = 20;
- return 1;
- }
- }
- foreach(Player, i)
- {
- if(PlayerInfo[i][pPhoneNumber] == phonenumb && phonenumb != 0)
- {
- new giveplayerid = i;
- if(Mobile[giveplayerid] != INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player's phone is busy (on a call).");
- return 1;
- }
- Mobile[playerid] = giveplayerid; //caller connecting
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PhoneOnline[giveplayerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player's phone is switched off.");
- return 1;
- }
- else
- {
- format(string, sizeof(string), "SMS: %s, Sender: %s (%d)", text,GetPlayerNameEx(playerid),PlayerInfo[playerid][pPhoneNumber]);
- }
- //format(string, sizeof(string), "* %s's phone beeps.", sendername);
- RingTone[giveplayerid] =20;
- SendClientMessage(giveplayerid, COLOR_YELLOW, string);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- SendClientMessage(playerid, COLOR_WHITE, "Text Message Delivered");
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- Mobile[playerid] = INVALID_PLAYER_ID;
- return 1;
- }
- }
- }
- }
- SendClientMessage(playerid, COLOR_GRAD2, " Message delivery failed...");
- return 1;
- }
- CMD:t(playerid, params[])
- {
- return cmd_sms(playerid, params);
- }
- CMD:togphone(playerid, params[])
- {
- if(PlayerInfo[playerid][pPhone] != 0)
- {
- if(PhoneOnline[playerid] == 1)
- {
- PhoneOnline[playerid] = 0;
- SendClientMessage(playerid, COLOR_GREY, "[Phone]: You turn your phone ON");
- }
- else
- {
- PhoneOnline[playerid] = 1;
- SendClientMessage(playerid, COLOR_GREY, "[Phone]: You turn your phone OFF");
- }
- }
- return 1;
- }
- //Sheriff Faction commands
- CMD:arrest(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 1 && PlayerInfo[playerid][pRank] > 0 && CopDuty[playerid] == 1)
- {
- new Players, Time;
- if(sscanf(params, "ui", Players, Time))
- {
- SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /arrest (Player Name/ID) (Time)");
- }
- else if(PlayerRestrained[Players] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "The suspect must be restrained first!");
- }
- else if(Time < 1 || Time > 20)
- {
- SendClientMessage(playerid, COLOR_GREY, "Please put a valid period of time, between 1 minute and 20 minutes!");
- }
- else if(PlayerCuffed[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot do this while being cuffed");
- }
- else
- {
- if(PlayerCuffed[Players] == 1)
- {
- if(GetDistanceBetweenPlayers(playerid,Players) < 4)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3, -223.4532,977.4991,19.6600))
- {
- PlayerInfo[Players][pJailTime] = Time;
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(Players, -221.8530,977.5364,19.6600);
- SetPlayerFacingAngle(Players, 89.7008);
- new string[256];
- TogglePlayerControllable(Players, true);
- PlayerCuffed[Players] = 0;
- format(string, sizeof(string), "%s uncuffs %s and puts the cuffs away, pushing %s into the jail cell", GetPlayerNameEx(playerid), GetPlayerNameEx(Players), GetPlayerNameEx(Players));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- JailTimes[Players] = SetTimerEx("JailTimer", 60000, 1, "i", Players);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3, -223.8111,973.3416,19.6600))
- {
- PlayerInfo[Players][pJailTime] = Time;
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(Players, -221.9353,973.6055,19.6600);
- SetPlayerFacingAngle(Players, 92.9498);
- new string[256];
- TogglePlayerControllable(Players, true);
- PlayerCuffed[Players] = 0;
- format(string, sizeof(string), "%s uncuffs %s and puts the cuffs away, pushing %s into the jail cell", GetPlayerNameEx(playerid), GetPlayerNameEx(Players), GetPlayerNameEx(Players));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- JailTimes[Players] = SetTimerEx("JailTimer", 60000, 1, "i", Players);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You must be closer to the suspect to cuff/uncuff them!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "The suspect must be cuffed first!");
- }
- }
- }
- return 1;
- }
- public JailTimer(playerid)
- {
- if(PlayerInfo[playerid][pJailTime] >= 1)
- {
- new string[100];
- PlayerInfo[playerid][pJailTime]--;
- format(string, sizeof(string), "Jail time remaining: %i minutes.", PlayerInfo[playerid][pJailTime]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- else
- {
- new string[100];
- PlayerInfo[playerid][pJailTime] = 0;
- format(string, sizeof(string), "Jail time remaining: %i minutes.", PlayerInfo[playerid][pJailTime]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "You are free, stay out of trouble.", PlayerInfo[playerid][pJailTime]);
- SendClientMessage(playerid, COLOR_GREEN, string);
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, -214.6989, 978.6218, 19.3373);
- SetPlayerFacingAngle(playerid, 267.2612);
- }
- return 1;
- }
- CMD:tazer(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 1 && CopDuty[playerid] == 1)
- {
- if(Tazer[playerid] == 0)
- {
- Tazer[playerid] = 1;
- new string[256], playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), " %s unholisters their tazer and aims it", playername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GivePlayerWeapon(playerid, 23, 50);
- PlayerInfo[playerid][pGun02] = 23;
- PlayerInfo[playerid][pAmmo02] = 0;
- }
- else
- {
- Tazer[playerid] = 0;
- new string[256], playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), " %s holisters their tazer", playername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GivePlayerWeapon(playerid, 24, PlayerInfo[playerid][pAmmo02]);
- PlayerInfo[playerid][pGun02] = 24;
- PlayerInfo[playerid][pAmmo02] = 0;
- }
- }
- return 1;
- }
- CMD:duty(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(gPlayerLogged[playerid] == 1)
- {
- if(PlayerInfo[playerid][pFaction] == 1 && IsPlayerInRangeOfPoint(playerid, 3, -229.2414,983.4330,19.6600))
- {
- if(CopDuty[playerid] == 0)
- {
- if(PlayerInfo[playerid][pRank] == 5)
- {
- BackupGuns(playerid);
- Tazer[playerid] = 0;
- CopDuty[playerid] = 1;
- ResetPlayerWeapons(playerid);
- new string[256], playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), " %s opens the locker and takes out their badge, tazer, and pistol", playername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GivePlayerWeapon(playerid, 24, 42);
- PlayerInfo[playerid][pGun02] = 24;
- PlayerInfo[playerid][pAmmo02] = 0;
- SetPlayerSkin(playerid, 288);
- }
- if(PlayerInfo[playerid][pRank] == 4)
- {
- BackupGuns(playerid);
- Tazer[playerid] = 0;
- CopDuty[playerid] = 1;
- ResetPlayerWeapons(playerid);
- new string[256], playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), " %s opens the locker and takes out their badge, tazer, and pistol", playername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GivePlayerWeapon(playerid, 24, 42);
- PlayerInfo[playerid][pGun02] = 24;
- PlayerInfo[playerid][pAmmo02] = 0;
- SetPlayerSkin(playerid, 283);
- }
- if(PlayerInfo[playerid][pRank] <= 3)
- {
- BackupGuns(playerid);
- Tazer[playerid] = 0;
- CopDuty[playerid] = 1;
- ResetPlayerWeapons(playerid);
- new string[256], playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), " %s opens the locker and takes out their badge, tazer, and pistol", playername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GivePlayerWeapon(playerid, 24, 42);
- PlayerInfo[playerid][pGun02] = 24;
- PlayerInfo[playerid][pAmmo02] = 0;
- SetPlayerSkin(playerid, 281);
- }
- }
- else
- {
- Tazer[playerid] = 0;
- CopDuty[playerid] = 0;
- new string[256], playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), " %s opens the locker and puts their badge, tazer, and pistol inside", playername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[playerid][pGun02] = 0;
- PlayerInfo[playerid][pAmmo02] = 0;
- GiveGuns(playerid);
- SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- }
- }
- }
- }
- return 1;
- }
- CMD:radio(playerid, params[])
- {
- new Radio[256];
- if(sscanf(params, "s[256]", Radio))
- {
- SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /r(adio) [Message]");
- }
- else if(gPlayerLogged[playerid] != 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You must be logged in to use the radio");
- }
- else if(PlayerInfo[playerid][pFaction] <= 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not in any factions!");
- }
- else
- {
- if(PlayerInfo[playerid][pFaction] == 1)
- {
- new string[256], RadioMessage[256];
- if(PlayerInfo[playerid][pRank] == 1)
- {
- format(RadioMessage, sizeof(RadioMessage), " [Cadet %s]: %s ", GetPlayerNameEx(playerid), Radio);
- SendRadioMessage(1, COLOR_TWORANGE, RadioMessage);
- }
- if(PlayerInfo[playerid][pRank] == 2)
- {
- format(RadioMessage, sizeof(RadioMessage), " [Officer %s]: %s ", GetPlayerNameEx(playerid), Radio);
- SendRadioMessage(1, COLOR_TWORANGE, RadioMessage);
- }
- if(PlayerInfo[playerid][pRank] == 3)
- {
- format(RadioMessage, sizeof(RadioMessage), " [Captain %s]: %s ", GetPlayerNameEx(playerid), Radio);
- SendRadioMessage(1, COLOR_TWORANGE, RadioMessage);
- }
- if(PlayerInfo[playerid][pRank] == 4)
- {
- format(RadioMessage, sizeof(RadioMessage), " [Under Sheriff %s]: %s ", GetPlayerNameEx(playerid), Radio);
- SendRadioMessage(1, COLOR_TWORANGE, RadioMessage);
- }
- if(PlayerInfo[playerid][pRank] == 5)
- {
- format(RadioMessage, sizeof(RadioMessage), " [Sheriff %s]: %s ", GetPlayerNameEx(playerid), Radio);
- SendRadioMessage(1, COLOR_TWORANGE, RadioMessage);
- }
- format(string, sizeof(string), " %s talks into their police radio", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- }
- return 1;
- }
- CMD:r(playerid, params[])
- {
- return cmd_radio(playerid, params);
- }
- CMD:cuff(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 1 && PlayerInfo[playerid][pRank] > 0 && CopDuty[playerid] == 1)
- {
- new Players;
- if(sscanf(params, "u", Players))
- {
- SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /cuff (Player Name/ID)");
- }
- else if(PlayerRestrained[Players] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "The suspect must be restrained first!");
- }
- else if(PlayerCuffed[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot do this while being cuffed");
- }
- else
- {
- if(PlayerCuffed[Players] == 0)
- {
- if(GetDistanceBetweenPlayers(playerid,Players) < 4)
- {
- new string[256];
- TogglePlayerControllable(Players, false);
- PlayerCuffed[Players] = 1;
- format(string, sizeof(string), " %s takes out a pair of cuffs, and cuffs %s", GetPlayerNameEx(playerid), GetPlayerNameEx(Players));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You must be closer to the suspect to cuff/uncuff them!");
- }
- }
- else
- {
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(Players, X,Y,Z);
- if(IsPlayerInRangeOfPoint(playerid, 5.0, X,Y,Z))
- {
- new string[256];
- TogglePlayerControllable(Players, false);
- PlayerCuffed[Players] = 0;
- format(string, sizeof(string), " %s uncuffs %s and puts the cuffs away", GetPlayerNameEx(playerid), GetPlayerNameEx(Players));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You must be closer to the suspect to cuff/uncuff them!");
- }
- }
- }
- }
- return 1;
- }
- //
- //Job Commands
- CMD:join(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 3, 149.1544, 1140.2843, 14.5224))
- {
- if(PlayerInfo[playerid][pJob] == 0)
- {
- ShowPlayerDialog(playerid, 35, DIALOG_STYLE_MSGBOX, "Job Menu", " This is a logging job, takes some patience, would\n you like to join this job?\n", "Join", "No Thanks");
- }
- }
- return 1;
- }
- CMD:logger(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] == 5)
- {
- if(Logging[playerid] == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.5, 139.1494, 1154.0134, 15.5135))
- {
- if(tree1 == 0 && ptree[playerid] == 0 && treeonehp >= 99)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can now cut the tree down!");
- BackupGuns(playerid);
- ptree[playerid] = 1;
- tree1 = 1;
- ResetPlayerWeapons(playerid);
- Logging[playerid] = 1;
- GivePlayerWeapon(playerid, 9, 110);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.5, 143.1485, 1123.8318, 13.6094))
- {
- if(tree2 == 0 && ptree[playerid] == 0 && treetwohp >= 99)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can now cut the tree down!");
- BackupGuns(playerid);
- ptree[playerid] = 2;
- tree2 = 1;
- ResetPlayerWeapons(playerid);
- Logging[playerid] = 1;
- GivePlayerWeapon(playerid, 9, 110);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.5, 123.2002, 1136.0647, 14.2177))
- {
- if(tree3 == 0 && ptree[playerid] == 0 && treethreehp >= 99)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can now cut the tree down!");
- BackupGuns(playerid);
- ptree[playerid] = 3;
- tree3 = 1;
- ResetPlayerWeapons(playerid);
- Logging[playerid] = 1;
- GivePlayerWeapon(playerid, 9, 110);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.5, 104.9863, 1118.6848, 13.6094))
- {
- if(tree4 == 0 && ptree[playerid] == 0 && treefourhp >= 99)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can now cut the tree down!");
- BackupGuns(playerid);
- ptree[playerid] = 4;
- tree4 = 1;
- ResetPlayerWeapons(playerid);
- Logging[playerid] = 1;
- GivePlayerWeapon(playerid, 9, 110);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.5, 95.8856, 1134.4281, 15.7993))
- {
- if(tree5 == 0 && ptree[playerid] == 0 && treefivehp >= 99)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can now cut the tree down!");
- BackupGuns(playerid);
- ptree[playerid] = 5;
- tree5 = 1;
- ResetPlayerWeapons(playerid);
- Logging[playerid] = 1;
- GivePlayerWeapon(playerid, 9, 110);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Get near one of the trees!");
- }
- }
- else
- {
- if(ptree[playerid] == 1)
- {
- tree1 = 0;
- }
- if(ptree[playerid] == 2)
- {
- tree2 = 0;
- }
- if(ptree[playerid] == 3)
- {
- tree3 = 0;
- }
- if(ptree[playerid] == 4)
- {
- tree4 = 0;
- }
- if(ptree[playerid] == 5)
- {
- tree5 = 0;
- }
- Logging[playerid] = 0;
- ptree[playerid] = 0;
- GiveGuns(playerid);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a logger!");
- }
- return 1;
- }
- //
- forward CheckRentCar(playerid, vehicleid);
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- if(IsACopCar(vehicleid))
- {
- if(PlayerInfo[playerid][pFaction] == 1)
- {
- }
- else
- {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- SendClientMessage(playerid, COLOR_GRAD2, "You are not in the FCSD!");
- }
- }
- else if(IsAMedicCar(vehicleid))
- {
- if(PlayerInfo[playerid][pFaction] == 2)
- {
- }
- else
- {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- SendClientMessage(playerid, COLOR_GRAD2, "You are not in the FCMFT!");
- }
- }
- return 1;
- }
- forward RentedCars(playerid);
- public RentedCars(playerid)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new vehid = GetPlayerVehicleID(playerid);
- if(IsARentCar(vehid))
- {
- new INI:File = INI_Open(UserPath(playerid));
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 1000);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- new playername2[MAX_PLAYER_NAME], string[256];
- GetPlayerName(playerid, playername2, sizeof(playername2));
- format(string, sizeof(string), "%s has been fined $1000 by the Anti-Cheat, Reason: Using Mod Sobeit", playername2);
- SendClientMessageToAll(COLOR_RED, string);
- Kick(playerid);
- }
- else
- {
- KillTimer(RentedCarsTimer[playerid]);
- }
- }
- else
- {
- KillTimer(RentedCarsTimer[playerid]);
- }
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- oldcar[playerid] = vehicleid;
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- new vehid = GetPlayerVehicleID(playerid);
- if(newstate == PLAYER_STATE_DRIVER)
- {
- SendClientMessage(playerid, COLOR_TWGREEN, "Use [/engine] and [/lights] to toggle the engine/lights of the vehicle");
- if(GetVehicleModel(vehid) == 427 || GetVehicleModel(vehid) == 497 || GetVehicleModel(vehid) == 523 || GetVehicleModel(vehid) == 528 || GetVehicleModel(vehid) ==596 || GetVehicleModel(vehid) == 597 || GetVehicleModel(vehid) ==598 || GetVehicleModel(vehid) == 599 || GetVehicleModel(vehid) == 601)
- {
- if(PlayerInfo[playerid][pFaction] != 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "[System]: You are not able to drive this vehicle!");
- RemovePlayerFromVehicle(playerid);
- }
- }
- else if(PlayerInfo[playerid][pLicense] != 1)
- {
- SendClientMessage(playerid, COLOR_GREEN, "You are driving without a driver's license, be careful!");
- }
- }
- if(newstate == PLAYER_STATE_DRIVER && GetVehicleModel(vehid) == 455)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pJob] == 1)
- {
- if(IsPlayerInRangeOfPoint(playerid, 60, 596.6511, 1243.0564, 11.7188))
- {
- ShowPlayerDialog(playerid, 15, DIALOG_STYLE_LIST, "Delivery Truck GPS", "Select The Route You Would Like To Deliver To\r\nLong Route\r\nMedium Route\r\nShort Route\r\n", "Select", "Close");
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "You are too far away from the factory to change your route!");
- }
- }
- else if(PlayerInfo[playerid][pJob] == 0)
- {
- ShowPlayerDialog(playerid, 16, DIALOG_STYLE_MSGBOX, "Job Menu", " This is a truck delivery job, you deliver\n things to places marked onto your map, would\n you like to join this job?\n", "Join", "No Thanks");
- }
- else
- {
- RemovePlayerFromVehicle(playerid);
- }
- }
- }
- if(newstate == PLAYER_STATE_DRIVER)
- {
- if(IsPlayerConnected(playerid) && IsASmuggleJobCar(vehid))
- {
- if(PlayerInfo[playerid][pJob] == 2)
- {
- if(SmugglingMats[playerid] != 1 && GettingPacks[playerid] != 1 && SmuggleDropOff[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You should head out to the pickup spot");
- SmugglingMats[playerid] = 1;
- SetPlayerCheckpoint(playerid, -32.1691, 2335.5229, 24.1406, 5);
- }
- }
- else if(PlayerInfo[playerid][pJob] == 0)
- {
- ShowPlayerDialog(playerid, 24, DIALOG_STYLE_MSGBOX, "Job Menu", " This is a product delivery job, and it is illegal, would\n you like to join this job?\n", "Join", "No Thanks");
- }
- else
- {
- RemovePlayerFromVehicle(playerid);
- }
- }
- }
- if(newstate == PLAYER_STATE_DRIVER)
- {
- if(IsPlayerConnected(playerid) && (IsAFarmerJobHarvestor(vehid) || IsAFarmerJobTractor(vehid)))
- {
- if(PlayerInfo[playerid][pJob] == 4)
- {
- if(PlantingSeeds[playerid] == 0 && Farming[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "To begin harvesting, type [/farm]");
- }
- else if(PlantingSeeds[playerid] == 0 && Farming[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You should begin planting seeds, you can get some from the farm house");
- }
- }
- else if(PlayerInfo[playerid][pJob] == 0)
- {
- ShowPlayerDialog(playerid, 34, DIALOG_STYLE_MSGBOX, "Job Menu", " This is a farming job, takes some patience, would\n you like to join this job?\n", "Join", "No Thanks");
- }
- else
- {
- RemovePlayerFromVehicle(playerid);
- }
- }
- }
- if(newstate == PLAYER_STATE_DRIVER)
- {
- if(IsPlayerConnected(playerid) && IsATrashJobCar(vehid))
- {
- if(PlayerInfo[playerid][pJob] == 3)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Type [/collect] to get help and tips on collecting trash and go on duty!");
- }
- else if(PlayerInfo[playerid][pJob] == 0)
- {
- ShowPlayerDialog(playerid, 26, DIALOG_STYLE_MSGBOX, "Job Menu", " This is a trash collecting job, can be pretty messy, but it helps\n would you like to join this job?\n", "Join", "No Thanks");
- }
- else
- {
- RemovePlayerFromVehicle(playerid);
- }
- }
- }
- if(newstate == PLAYER_STATE_DRIVER)
- {
- if(IsPlayerConnected(playerid) && IsARentCar(vehid) && RentedCar[playerid] != GetVehicleModel(vehid))
- {
- RentedCarTry[playerid] = GetVehicleModel(vehid);
- TogglePlayerControllable(playerid, false);
- ShowPlayerDialog(playerid, 23, DIALOG_STYLE_MSGBOX, "Rental Car", "Would you like to rent this vehicle for $100?", "Rent", "No Thanks");
- }
- }
- return 1;
- }
- forward TruckUnloading(playerid);
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(GettingJob[playerid] == 1)
- {
- DisablePlayerCheckpoint(playerid);
- GettingJob[playerid] = 0;
- }
- if(Farming[playerid] == 1 && PlayerInfo[playerid][pJob] == 4)
- {
- SendClientMessage(playerid, COLOR_GREEN, "Type [/buy] to purchase some seeds");
- DisablePlayerCheckpoint(playerid);
- }
- if(DeliveryTruck[playerid] == 1 && PlayerInfo[playerid][pJob] == 1)
- {
- new vehid = GetPlayerVehicleID(playerid);
- GetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, boot, objective);
- if(GetVehicleModel(vehid) == 455)
- {
- if(boot == 0)
- {
- SendClientMessage(playerid, COLOR_GREEN, "The delivered shipment is being unloaded, please wait...");
- SetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, 1, objective);
- TogglePlayerControllable(playerid, false);
- SetTimerEx("TruckUnloading", 10000, 0, "i", playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREEN, "The delivered shipment is being unloaded, please wait...");
- TogglePlayerControllable(playerid, false);
- SetTimerEx("TruckUnloading", 10000, 0, "i", playerid);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "This is not the truck we were told to expect!");
- }
- }
- else if(DeliveryTruck[playerid] == 2 && PlayerInfo[playerid][pJob] == 1)
- {
- new vehid = GetPlayerVehicleID(playerid);
- GetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, boot, objective);
- if(GetVehicleModel(vehid) == 455)
- {
- if(boot == 0)
- {
- SendClientMessage(playerid, COLOR_GREEN, "The delivered shipment is being unloaded, please wait...");
- SetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, 1, objective);
- TogglePlayerControllable(playerid, false);
- SetTimerEx("TruckUnloading", 15000, 0, "i", playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREEN, "The delivered shipment is being unloaded, please wait...");
- TogglePlayerControllable(playerid, false);
- SetTimerEx("TruckUnloading", 15000, 0, "i", playerid);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "This is not the truck we were told to expect!");
- }
- }
- else if(DeliveryTruck[playerid] == 3 && PlayerInfo[playerid][pJob] == 1)
- {
- new vehid = GetPlayerVehicleID(playerid);
- GetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, boot, objective);
- if(GetVehicleModel(vehid) == 455)
- {
- if(boot == 0)
- {
- SendClientMessage(playerid, COLOR_GREEN, "The delivered shipment is being unloaded, please wait...");
- SetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, 1, objective);
- TogglePlayerControllable(playerid, false);
- SetTimerEx("TruckUnloading", 20000, 0, "i", playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREEN, "The delivered shipment is being unloaded, please wait...");
- TogglePlayerControllable(playerid, false);
- SetTimerEx("TruckUnloading", 20000, 0, "i", playerid);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "This is not the truck we were told to expect!");
- }
- }
- else if(SmugglingMats[playerid] == 1 && SmuggleDropOff[playerid] == 0 && PlayerInfo[playerid][pJob] == 2)
- {
- new vehid = GetPlayerVehicleID(playerid);
- GetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, boot, objective);
- if(IsASmuggleJobCar(vehid) && SmuggleDropOff[playerid] == 0 && PlayerInfo[playerid][pJob] == 2)
- {
- if(boot == 0)
- {
- SendClientMessage(playerid, COLOR_GREEN, "Get out of the car and put the packages into the trunk");
- SetPlayerCheckpoint(playerid, -17.4977, 2336.5022, 24.1406, 5);
- SetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, 1, objective);
- SmugglingMats[playerid] = 0;
- GettingPacks[playerid] = 1;
- HoldingObject[playerid] = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREEN, "Get out of the car and put the packages into the trunk");
- SetPlayerCheckpoint(playerid, -17.4977, 2336.5022, 24.1406, 5);
- SmugglingMats[playerid] = 0;
- GettingPacks[playerid] = 1;
- HoldingObject[playerid] = 0;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "This is not the truck we were told to expect!");
- }
- }
- else if(GettingPacks[playerid] == 1 && SmugglingMats[playerid] == 0 && HoldingObject[playerid] == 0 && PlayerInfo[playerid][pJob] == 2)
- {
- if(IsASmuggleJobCar(oldcar[playerid]))
- {
- if(PlayerInfo[playerid][pAmmo11] != 11)
- {
- new Float:cx, Float:cy, Float:cz;
- GetVehiclePos(oldcar[playerid], cx, cy, cz);
- if(IsPlayerInRangeOfPoint(playerid, 50, cx, cy, cz))
- {
- new string[256];
- format(string, sizeof(string), " %s reaches for one of the packages and picks it up", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SendClientMessage(playerid, COLOR_RED, "Go near the truck and press your [LEFT MOUSE BUTTON] to place the package insideo of it.");
- PlayerInfo[playerid][pAmmo11] += 1;
- HoldingObject[playerid] = 1;
- SetPlayerAttachedObject( playerid, 0, 1578, 5, 0.251658, 0.045626, 0.011710, 149.569366, 274.921813, 249.591857, 0.512626, 1.000000, 1.000000 ); // drug_green - Drug Object Hold
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "Go near your truck before trying to get some packages.");
- }
- }
- }
- }
- else if(GettingPacks[playerid] == 0 && PlayerInfo[playerid][pJob] == 2 && SmugglingMats[playerid] == 1 && PlayerInfo[playerid][pAmmo11] == 0 && SmuggleDropOff[playerid] == 1)
- {
- new INI:File = INI_Open(UserPath(playerid));
- SendClientMessage(playerid, COLOR_YELLOW, "Thanks for the delivery, here is your payment!");
- INI_WriteInt(File,"Money",PlayerInfo[playerid][pMoney] += 700);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- SmuggleDropOff[playerid] = 0;
- SmugglingMats[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- SendClientMessage(playerid, COLOR_WHITE, "Get out and back into the car to start another route!");
- }
- else if(JackingCar[playerid] == 1 && PlayerInfo[playerid][pJob] == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 5, 413.2778, 1164.2896, 9.9507))
- {
- TogglePlayerControllable(playerid, false);
- SendClientMessage(playerid, COLOR_YELLOW, "Stay in the car while I take care of the parts.");
- SetTimerEx("CarJacker1", 2000, 0, "i", playerid);
- }
- }
- return 1;
- }
- forward CarJacker1(playerid);
- public CarJacker1(playerid)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- new string[256];
- format(string, sizeof(string), "The mechanic begins taking off the tires.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
- UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, 15);
- SetTimerEx("CarJacker2", 5000, 0, "i", playerid);
- return 1;
- }
- forward CarJacker2(playerid);
- public CarJacker2(playerid)
- {
- new string[256];
- new vehicleid = GetPlayerVehicleID(playerid);
- format(string, sizeof(string), "The mechanic begins taking off the doors.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
- UpdateVehicleDamageStatus(vehicleid, panels, 40, lights, tires);
- UpdateVehicleDamageStatus(vehicleid, panels, 7, lights, tires);
- UpdateVehicleDamageStatus(vehicleid, panels, 8, lights, tires);
- UpdateVehicleDamageStatus(vehicleid, panels, 16, lights, tires);
- UpdateVehicleDamageStatus(vehicleid, panels, 24, lights, tires);
- UpdateVehicleDamageStatus(vehicleid, panels, 32, lights, tires);
- SetTimerEx("CarJacker3", 5000, 0, "i", playerid);
- return 1;
- }
- forward CarJacker3(playerid);
- public CarJacker3(playerid)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- TogglePlayerControllable(playerid, true);
- RemovePlayerFromVehicle(playerid);
- new INI:File = INI_Open(UserPath(playerid));
- SendClientMessage(playerid, COLOR_YELLOW, "Thanks for the delivery, here is your payment!");
- INI_WriteInt(File,"Money",PlayerInfo[playerid][pMoney] += 500);
- ResetPlayerMoney(playerid);
- JackingCar[playerid] = 3;
- DestroyVehicle(vehicleid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- DisablePlayerCheckpoint(playerid);
- SetTimerEx("CarJacker4", 1500000, 0, "i", playerid);
- return 1;
- }
- forward CarJacker4(playerid);
- public CarJacker4(playerid)
- {
- JackingCar[playerid] = 0;
- return 1;
- }
- public TruckUnloading(playerid)
- {
- new INI:File = INI_Open(UserPath(playerid));
- new vehid = GetPlayerVehicleID(playerid);
- GetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, boot, objective);
- if(DeliveryTruck[playerid] == 1 && GetVehicleModel(vehid) == 455 && IsPlayerInRangeOfPoint(playerid, 10, 2791.1284, 2570.9358, 10.3256))
- {
- SetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, 0, objective);
- SendClientMessage(playerid, COLOR_GREEN, "Thanks for the delivery, here is your payment!");
- INI_WriteInt(File,"Money",PlayerInfo[playerid][pMoney] += 900);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- TogglePlayerControllable(playerid, true);
- DisablePlayerCheckpoint(playerid);
- DeliveryTruck[playerid] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "Get back to the farm, then go out and back into the car to start another route!");
- }
- else if(DeliveryTruck[playerid] == 2 && GetVehicleModel(vehid) == 455 && IsPlayerInRangeOfPoint(playerid, 10, 1638.6121, 2340.2693, 10.2162))
- {
- SetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, 0, objective);
- SendClientMessage(playerid, COLOR_GREEN, "Thanks for the delivery, here is your payment!");
- INI_WriteInt(File,"Money",PlayerInfo[playerid][pMoney] += 600);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- TogglePlayerControllable(playerid, true);
- DisablePlayerCheckpoint(playerid);
- DeliveryTruck[playerid] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "Get back to the farm, then go out and back into the car to start another route!");
- }
- else if(DeliveryTruck[playerid] == 3 && GetVehicleModel(vehid) == 455 && IsPlayerInRangeOfPoint(playerid, 10, 1467.7432, 1039.1665, 10.1369))
- {
- SetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, 0, objective);
- SendClientMessage(playerid, COLOR_GREEN, "Thanks for the delivery, here is your payment!");
- INI_WriteInt(File,"Money",PlayerInfo[playerid][pMoney] += 300);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- TogglePlayerControllable(playerid, true);
- DisablePlayerCheckpoint(playerid);
- DeliveryTruck[playerid] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "Get back to the farm, then go out and back into the car to start another route!");
- }
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpDynamicPickup(playerid, pickupid)
- {
- new vehid = GetPlayerVehicleID(playerid);
- if(IsPlayerInRangeOfPoint(playerid, 30, 248.2587, 1139.1237, 11.2654) || IsPlayerInRangeOfPoint(playerid, 30, 266.4614, 1073.5065, 17.2945))
- {
- if(FarmingCrops[playerid] > 0)
- {
- if(IsAFarmerJobHarvestor(vehid) && PlayerInfo[playerid][pJob] == 4)
- {
- FarmingCrops[playerid]--;
- new INI:File = INI_Open(UserPath(playerid));
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] += 60);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- RemoveCrop(playerid);
- DestroyDynamicPickup(pickupid);
- }
- else if(!IsAFarmerJobHarvestor(vehid) && PlayerInfo[playerid][pJob] == 4)
- {
- FarmingCrops[playerid]--;
- DestroyDynamicPickup(pickupid);
- RemoveCrop(playerid);
- SendClientMessage(playerid, COLOR_GREY, "You can only harvest with one of the harvestors, you destroyed the crop!");
- }
- else if(FarmingCrops[playerid] == 1 && PlayerInfo[playerid][pJob] == 4)
- {
- if(IsAFarmerJobHarvestor(vehid))
- {
- SendClientMessage(playerid, COLOR_GREEN, "You can now go buy more seed...");
- new INI:File = INI_Open(UserPath(playerid));
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] += 60);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- DestroyDynamicPickup(pickupid);
- RemoveCrop(playerid);
- FarmingCrops[playerid] = -1;
- }
- else
- {
- FarmingCrops[playerid] = -1;
- DestroyDynamicPickup(pickupid);
- RemoveCrop(playerid);
- SendClientMessage(playerid, COLOR_GREY, "You can only harvest with one of the harvestors, you destroyed the crop!");
- SendClientMessage(playerid, COLOR_GREEN, "You can now go buy more seed...");
- }
- }
- }
- else
- {
- if(FarmingCrops[playerid] < 0)
- {
- if(PlayerInfo[playerid][pJob] == 4)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid, x, y, z);
- SetTimerEx("IconRespawn", 10000, 0, "ifff", playerid, Float:x, Float:y, Float:z);
- DestroyDynamicPickup(pickupid);
- RemoveCrop(playerid);
- new INI:File = INI_Open(UserPath(playerid));
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 60);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- SendClientMessage(playerid, COLOR_GREY, "You aren't suppose to be harvesting yet, you destroyed the crop, it will regrow in 10 seconds!");
- }
- else
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid, x, y, z);
- SetTimerEx("IconRespawn", 10000, 0, "ifff", playerid, Float:x, Float:y, Float:z);
- DestroyDynamicPickup(pickupid);
- RemoveCrop(playerid);
- new INI:File = INI_Open(UserPath(playerid));
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 100);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- SendClientMessage(playerid, COLOR_GREY, "You destroyed someone elses crop, so you must pay for it!");
- }
- }
- }
- }
- return 1;
- }
- public IconRespawn(playerid, Float:x, Float:y, Float:z)
- {
- CreateDynamicPickup(1239, 14, x, y, z, 0, 0);
- CreateCrop(x,y,z-1.2);
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public Entering(playerid)
- {
- TogglePlayerControllable(playerid, true);
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if((newkeys & KEY_FIRE) && PlayerInfo[playerid][pJob] == 4 && Farming[playerid] == 1 && PlantingSeeds[playerid] > 0)
- {
- new vehid = GetPlayerVehicleID(playerid);
- if(IsPlayerInRangeOfPoint(playerid, 30, 248.2587, 1139.1237, 11.2654) || IsPlayerInRangeOfPoint(playerid, 30, 266.4614, 1073.5065, 17.2945))
- {
- if(GrowingCrops[playerid] == 0)
- {
- if(IsAFarmerJobTractor(vehid))
- {
- new Float:x,Float:y,Float:z,string[128];
- format(string, sizeof(string), " %s reaches into the seed bag and throws crop seeds onto the floor", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlantingSeeds[playerid]--;
- GrowingCrops[playerid] = 1;
- GetPlayerPos(playerid, x, y, z);
- SetTimerEx("Planting", 30000, 0, "ifff", playerid, Float:x, Float:y, Float:z);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You must be in a tractor!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Your crops are still growing, you must wait 30 seconds between");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You must be on one of the fields!");
- }
- }
- if((newkeys & KEY_FIRE) && (GetPlayerWeapon(playerid) == 9) && (Logging[playerid] == 1))
- {
- new INI:File = INI_Open(UserPath(playerid));
- if(IsPlayerInRangeOfPoint(playerid, 3.5, 139.1494, 1154.0134, 15.5135))
- {
- if(treeonehp >= 1)
- {
- treeonehp --;
- new string[50];
- format(string, sizeof(string), "[Logger Job]\n Tree Is Growing...");
- Update3DTextLabelText(treeonetext, COLOR_ORANGE, string);
- }
- else
- {
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] += 50);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- MoveDynamicObject(treeone, 138.0900, 1154.3400, -5.0000, 15);
- treeonehp = 0;
- new string[50];
- format(string, sizeof(string), "[Logger Job]\n Tree Is Growing...");
- Update3DTextLabelText(treeonetext, COLOR_ORANGE, string);
- GiveGuns(playerid);
- SetTimerEx("PlayerLogger", 2000, 0, "i", playerid);
- treeonetimer = SetTimer("TreeOne", 6500, 1);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.5, 143.1485, 1123.8318, 13.6094))
- {
- if(treetwohp >= 1)
- {
- treetwohp --;
- new string[50];
- format(string, sizeof(string), "[Logger Job]\n Tree Is Growing...");
- Update3DTextLabelText(treetwotext, COLOR_ORANGE, string);
- }
- else
- {
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] += 50);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- MoveDynamicObject(treetwo, 142.0900, 1123.9500, -7.0000, 15);
- treetwohp = 0;
- new string[50];
- format(string, sizeof(string), "[Logger Job]\n Tree Is Growing...");
- Update3DTextLabelText(treetwotext, COLOR_ORANGE, string);
- GiveGuns(playerid);
- SetTimerEx("PlayerLogger", 2000, 0, "i", playerid);
- treetwotimer = SetTimer("TreeTwo", 6500, 1);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.5, 123.2002, 1136.0647, 14.2177))
- {
- if(treethreehp >= 1)
- {
- treethreehp --;
- new string[50];
- format(string, sizeof(string), "[Logger Job]\n Tree Is Growing...");
- Update3DTextLabelText(treethreetext, COLOR_ORANGE, string);
- }
- else
- {
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] += 50);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- MoveDynamicObject(treethree, 122.1400, 1136.3400, -7.0000, 15);
- treethreehp = 0;
- new string[50];
- format(string, sizeof(string), "[Logger Job]\n Tree Is Growing...");
- Update3DTextLabelText(treethreetext, COLOR_ORANGE, string);
- GiveGuns(playerid);
- SetTimerEx("PlayerLogger", 2000, 0, "i", playerid);
- treethreetimer = SetTimer("TreeThree", 6500, 1);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.5, 104.9863, 1118.6848, 13.6094))
- {
- if(treefourhp >= 1)
- {
- treefourhp --;
- new string[50];
- format(string, sizeof(string), "[Logger Job]\n Tree Is Growing...");
- Update3DTextLabelText(treefourtext, COLOR_ORANGE, string);
- }
- else
- {
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] += 50);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- MoveDynamicObject(treefour, 103.9300, 1118.9399, -7.0000, 15);
- treefourhp = 0;
- new string[50];
- format(string, sizeof(string), "[Logger Job]\n Tree Is Growing...");
- Update3DTextLabelText(treefourtext, COLOR_ORANGE, string);
- GiveGuns(playerid);
- SetTimerEx("PlayerLogger", 2000, 0, "i", playerid);
- treefourtimer = SetTimer("TreeFour", 6500, 1);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.5, 95.8856, 1134.4281, 15.7993))
- {
- if(treefivehp >= 1)
- {
- treefivehp --;
- new string[50];
- format(string, sizeof(string), "[Logger Job]\n Tree Is Growing...");
- Update3DTextLabelText(treefivetext, COLOR_ORANGE, string);
- }
- else
- {
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] += 50);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- MoveDynamicObject(treefive, 94.8300, 1134.5200, -5.0000, 15);
- treefivehp = 0;
- new string[50];
- format(string, sizeof(string), "[Logger Job]\n Tree Is Growing...");
- Update3DTextLabelText(treefivetext, COLOR_ORANGE, string);
- GiveGuns(playerid);
- SetTimerEx("PlayerLogger", 2000, 0, "i", playerid);
- treefivetimer = SetTimer("TreeFive", 6500, 1);
- }
- }
- else
- {
- if(ptree[playerid] == 1)
- {
- tree1 = 0;
- }
- if(ptree[playerid] == 2)
- {
- tree2 = 0;
- }
- if(ptree[playerid] == 3)
- {
- tree3 = 0;
- }
- if(ptree[playerid] == 4)
- {
- tree4 = 0;
- }
- if(ptree[playerid] == 5)
- {
- tree5 = 0;
- }
- ptree[playerid] = 0;
- GiveGuns(playerid);
- SetTimerEx("PlayerLogger", 2000, 0, "i", playerid);
- GiveGuns(playerid);
- }
- }
- if((newkeys & KEY_FIRE) && (GetPlayerWeapon(playerid) != 0) && (Logging[playerid] == 0) &&(PlayerInfo[playerid][pGun01] == 0)&&(PlayerInfo[playerid][pGun02] == 0)&&(PlayerInfo[playerid][pGun03] == 0)&&(PlayerInfo[playerid][pGun04] == 0)&&(PlayerInfo[playerid][pGun05] == 0)&&(PlayerInfo[playerid][pGun06] == 0)&&(PlayerInfo[playerid][pGun07] == 0)&&(PlayerInfo[playerid][pGun08] == 0)&&(PlayerInfo[playerid][pGun09] == 0)&&(PlayerInfo[playerid][pGun11] == 0))
- {
- new INI:File = INI_Open(UserPath(playerid));
- ClearWeapons(playerid);
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 5000);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- new playername2[MAX_PLAYER_NAME], string[256];
- GetPlayerName(playerid, playername2, sizeof(playername2));
- format(string, sizeof(string), "%s has been fined $5000 by the Anti-Cheat, Reason: Weapon Hacks", playername2);
- SendClientMessageToAll(COLOR_RED, string);
- }
- if((newkeys & KEY_FIRE) && EatingFood[playerid] == 1)
- {
- new string[256];
- EatingFood[playerid] = 0;
- RemovePlayerAttachedObject(playerid, 0);
- format(string, sizeof(string), " %s begins eating their food", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if((newkeys & KEY_FIRE) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && PlayerInfo[playerid][pJob] == 3 && CollectingTrash[playerid] == 1)
- {
- new string[256];
- if(IsPlayerInRangeOfPoint(playerid, 1.5, -219.0727,1164.9230,19.7422) && CollectingTrash1[playerid] == 0)
- {
- format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- CollectingTrash1[playerid] = 1;
- RemovePlayerAttachedObject(playerid, 0);
- HoldingObject[playerid] = 2;
- SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.5, -156.7332,1234.3735,19.7422) && CollectingTrash2[playerid] == 0)
- {
- format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- CollectingTrash2[playerid] = 1;
- RemovePlayerAttachedObject(playerid, 0);
- HoldingObject[playerid] = 2;
- SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.5, -161.0505,1175.1516,19.7422) && CollectingTrash3[playerid] == 0)
- {
- format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- CollectingTrash3[playerid] = 1;
- RemovePlayerAttachedObject(playerid, 0);
- HoldingObject[playerid] = 2;
- SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.5, -170.2962,1170.0905,19.7500) && CollectingTrash4[playerid] == 0)
- {
- format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- CollectingTrash4[playerid] = 1;
- RemovePlayerAttachedObject(playerid, 0);
- HoldingObject[playerid] = 2;
- SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.5, -149.7856,1163.0737,19.7500) && CollectingTrash5[playerid] == 0)
- {
- format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- CollectingTrash5[playerid] = 1;
- RemovePlayerAttachedObject(playerid, 0);
- HoldingObject[playerid] = 2;
- SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.5, -88.7907,1164.3486,19.7422) && CollectingTrash6[playerid] == 0)
- {
- format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- CollectingTrash6[playerid] = 1;
- RemovePlayerAttachedObject(playerid, 0);
- HoldingObject[playerid] = 2;
- SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.5, -44.2278,1178.2389,19.4132) && CollectingTrash7[playerid] == 0)
- {
- format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- CollectingTrash7[playerid] = 1;
- RemovePlayerAttachedObject(playerid, 0);
- HoldingObject[playerid] = 2;
- SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.5, -25.8537,1165.3204,19.3604) && CollectingTrash8[playerid] == 0)
- {
- format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- CollectingTrash8[playerid] = 1;
- RemovePlayerAttachedObject(playerid, 0);
- HoldingObject[playerid] = 2;
- SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.5, -89.5503,1128.1899,19.7422) && CollectingTrash9[playerid] == 0)
- {
- format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- CollectingTrash9[playerid] = 1;
- RemovePlayerAttachedObject(playerid, 0);
- HoldingObject[playerid] = 2;
- SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.5, -148.8139,1133.7627,19.7422) && CollectingTrash10[playerid] == 0)
- {
- format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- CollectingTrash10[playerid] = 1;
- RemovePlayerAttachedObject(playerid, 0);
- HoldingObject[playerid] = 2;
- SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.5, -160.3165,1123.5753,19.7422) && CollectingTrash11[playerid] == 0)
- {
- format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- CollectingTrash11[playerid] = 1;
- RemovePlayerAttachedObject(playerid, 0);
- HoldingObject[playerid] = 2;
- SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.5, -122.7649,1079.3431,19.7814) && CollectingTrash12[playerid] == 0)
- {
- format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- CollectingTrash12[playerid] = 1;
- RemovePlayerAttachedObject(playerid, 0);
- HoldingObject[playerid] = 2;
- SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.5, -168.9294,1027.2206,19.7344) && CollectingTrash13[playerid] == 0)
- {
- format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- CollectingTrash13[playerid] = 1;
- RemovePlayerAttachedObject(playerid, 0);
- HoldingObject[playerid] = 2;
- SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
- }
- }
- if((newkeys & KEY_FIRE) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- new INI:File = INI_Open(UserPath(playerid));
- new Float:cx, Float:cy, Float:cz;
- GetVehiclePos(oldcar[playerid], cx, cy, cz);
- if(IsPlayerInRangeOfPoint(playerid, 3, cx, cy, cz) && GetVehicleModel(oldcar[playerid]) == 408)
- {
- if(PlayerInfo[playerid][pJob] == 3 && HoldingObject[playerid] == 2)
- {
- INI_WriteInt(File,"Money",PlayerInfo[playerid][pMoney] += 50);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- new string[256];
- RemovePlayerAttachedObject(playerid, 0);
- HoldingObject[playerid] = 0;
- format(string, sizeof(string), " %s places the trash bag into the back of the garbage truck", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- }
- }
- if((newkeys & KEY_FIRE) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- new Float:cx, Float:cy, Float:cz;
- GetVehiclePos(oldcar[playerid], cx, cy, cz);
- if(IsPlayerInRangeOfPoint(playerid, 6, cx, cy, cz) && GetVehicleModel(oldcar[playerid]) == 478)
- {
- if(GettingPacks[playerid] == 1 && SmugglingMats[playerid] == 0 && HoldingObject[playerid] == 1)
- {
- if(PlayerInfo[playerid][pAmmo11] != 11)
- {
- new string[256];
- RemovePlayerAttachedObject(playerid, 0);
- HoldingObject[playerid] = 0;
- format(string, sizeof(string), " %s places the package into the back of their truck", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- SetPlayerCheckpoint(playerid, -324.9968, 848.4097, 14.2422, 5);
- SendClientMessage(playerid, COLOR_YELLOW, "Go to the drop off location!");
- GettingPacks[playerid] = 0;
- RemovePlayerAttachedObject(playerid, 0);
- PlayerInfo[playerid][pAmmo11] = 0;
- SmugglingMats[playerid] = 1;
- SmuggleDropOff[playerid] = 1;
- }
- }
- }
- }
- if((newkeys & KEY_FIRE) && Tazer[playerid] == 1 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- if(TazerTimeout[playerid] > 0)
- {
- return 1;
- }
- new Float:X, Float:Y, Float:Z;
- foreach(Player, i)
- {
- if(IsPlayerStreamedIn(i, playerid))
- {
- GetPlayerPos(i, X, Y, Z);
- if(IsPlayerAimingAt(playerid,X,Y,Z,1) && PlayerCuffed[i] == 0 && GetPlayerState(i) == PLAYER_STATE_ONFOOT && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
- TogglePlayerControllable(i, false);
- ApplyAnimation(i,"CRACK","crckdeth2",4.1,0,1,1,1,1,1);
- ShotPlayer[i] = 1;
- PlayerRestrained[i] = 1;
- {
- new string[44 + (MAX_PLAYER_NAME * 2)];
- format(string, sizeof(string), " %s shoots a tazer shot at %s, tazering them successfully", GetPlayerNameEx(playerid), GetPlayerNameEx(i));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetTimerEx("TazerTimer",10000,false,"dd",playerid,i);
- TazerTimeout[playerid] = 1;
- GameTextForPlayer(playerid, "Tazer recharging...", 1500,3);
- return 1;
- }
- }
- }
- }
- return 1;
- }
- forward PlayerLogger(playerid);
- public PlayerLogger(playerid)
- {
- Logging[playerid] = 0;
- return 1;
- }
- forward TreeOne();
- public TreeOne()
- {
- if(treeonehp <= 99)
- {
- treeonehp++;
- }
- else
- {
- MoveDynamicObject(treeone, 138.09, 1154.34, 14.30, 15);
- KillTimer(treeonetimer);
- treeonehp = 100;
- }
- return 1;
- }
- forward TreeTwo();
- public TreeTwo()
- {
- if(treetwohp <= 99)
- {
- treetwohp++;
- }
- else
- {
- MoveDynamicObject(treetwo, 142.09, 1123.95, 12.39, 15);
- KillTimer(treetwotimer);
- treetwohp = 100;
- }
- return 1;
- }
- forward TreeThree();
- public TreeThree()
- {
- if(treethreehp <= 99)
- {
- treethreehp++;
- }
- else
- {
- MoveDynamicObject(treethree, 122.14, 1136.34, 13.28, 15);
- KillTimer(treethreetimer);
- treethreehp = 100;
- }
- return 1;
- }
- forward TreeFour();
- public TreeFour()
- {
- if(treefourhp <= 99)
- {
- treefourhp++;
- }
- else
- {
- MoveDynamicObject(treefour, 103.93, 1118.94, 12.50, 15);
- KillTimer(treefourtimer);
- treefourhp = 100;
- }
- return 1;
- }
- forward TreeFive();
- public TreeFive()
- {
- if(treefivehp <= 99)
- {
- treefivehp++;
- }
- else
- {
- MoveDynamicObject(treefive, 94.83, 1134.52, 14.86, 15);
- KillTimer(treefivetimer);
- treefivehp = 100;
- }
- return 1;
- }
- public Planting(playerid, Float:x , Float:y , Float:z)
- {
- if(PlantingSeeds[playerid] > 0)
- {
- GrowingCrops[playerid] = 0;
- CreateDynamicPickup(1239, 14, x, y, z, 0, 0);
- CreateCrop(x,y,z-1.2);
- SendClientMessage(playerid, COLOR_GREEN, "Your crops have grown, you can now plant again");
- }
- else
- {
- PlantingSeeds[playerid] = 0;
- GrowingCrops[playerid] = 0;
- FarmingCrops[playerid] = 5;
- CreateDynamicPickup(1239, 14, x, y, z, 0, 0);
- CreateCrop(x,y,z-1.2);
- SendClientMessage(playerid, COLOR_GREEN, "Your crops have grown, you have run out of seeds, go harvest your crops");
- }
- return 1;
- }
- forward TazerTimer(playerid, i);
- public TazerTimer(playerid, i)
- {
- new string[128];
- format(string,sizeof(string),"Tazer has recharged...", TazerTimeout[playerid]);
- GameTextForPlayer(playerid, string, 2000 , 3);
- TazerTimeout[playerid] = 0;
- TogglePlayerControllable(i, true);
- PlayerRestrained[i] = 0;
- ShotPlayer[i] = 0;
- return 1;
- }
- Float:DistanceCameraTargetToLocation(Float:CamX, Float:CamY, Float:CamZ, Float:ObjX, Float:ObjY, Float:ObjZ, Float:FrX, Float:FrY, Float:FrZ)
- {
- new Float:TGTDistance;
- // get distance from camera to target
- TGTDistance = floatsqroot((CamX - ObjX) * (CamX - ObjX) + (CamY - ObjY) * (CamY - ObjY) + (CamZ - ObjZ) * (CamZ - ObjZ));
- new Float:tmpX, Float:tmpY, Float:tmpZ;
- tmpX = FrX * TGTDistance + CamX;
- tmpY = FrY * TGTDistance + CamY;
- tmpZ = FrZ * TGTDistance + CamZ;
- return floatsqroot((tmpX - ObjX) * (tmpX - ObjX) + (tmpY - ObjY) * (tmpY - ObjY) + (tmpZ - ObjZ) * (tmpZ - ObjZ));
- }
- stock GetObjectToPlayerDistance(playerid, objectid) //By LarzI, Credits: Whoever made GetDistanceBetweenPlayers
- {
- new Float:ox, Float:oy, Float:oz, Float:px, Float:py, Float:pz;
- new Float:distance;
- GetObjectPos(objectid, ox, oy, oz);
- GetPlayerPos(playerid, px, py, pz);
- distance = floatsqroot(floatpower(floatabs(floatsub(ox, px)),2)+floatpower(floatabs(floatsub(oy, py)),2)+floatpower(floatabs(floatsub(oz, pz)),2));
- return floatround(distance);
- }
- stock IsPlayerAimingAt(playerid, Float:x, Float:y, Float:z, Float:radius)
- {
- new Float:cx,Float:cy,Float:cz,Float:fx,Float:fy,Float:fz;
- GetPlayerCameraPos(playerid, cx, cy, cz);
- GetPlayerCameraFrontVector(playerid, fx, fy, fz);
- return (radius >= DistanceCameraTargetToLocation(cx, cy, cz, x, y, z, fx, fy, fz));
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- /*
- if(PlayerInfo[playerid][pMoney] != GetPlayerMoney(playerid))
- {
- new INI:File = INI_Open(UserPath(playerid));
- dini_IntSet(file, "Money", PlayerInfo[playerid][pMoney] -= 2500);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- new playername2[MAX_PLAYER_NAME], string[256];
- GetPlayerName(playerid, playername2, sizeof(playername2));
- format(string, sizeof(string), "%s has been fined $2500 by the Anti-Cheat, Reason: Money Hacks", playername2);
- SendClientMessageToAll(COLOR_RED, string);
- }
- new Float:armour;
- GetPlayerArmour(playerid, armour);
- if(armour > 51 || (PlayerInfo[playerid][pArmour] = 0 && armour > 1))
- {
- new INI:File = INI_Open(UserPath(playerid));
- dini_IntSet(file, "Money", PlayerInfo[playerid][pMoney] -= 1000);
- SetPlayerArmour(playerid, 0);
- PlayerInfo[playerid][pArmour] = 0;
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- new playername2[MAX_PLAYER_NAME], string[256];
- GetPlayerName(playerid, playername2, sizeof(playername2));
- format(string, sizeof(string), "%s has been fined $1000 by the Anti-Cheat, Reason: Armour Hacks", playername2);
- SendClientMessageToAll(COLOR_RED, string);
- }
- */
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1)
- {
- if (!response)
- {
- Kick(playerid);
- return 1;
- }
- else
- {
- if(!strlen(inputtext))
- {
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Registration","You have entered an invalid password\nType a new password below:","Register","Leave");
- return 1;
- }
- else
- {
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"data");
- PlayerInfo[playerid][pPassword] = udb_hash(inputtext);
- INI_WriteInt(File,"Password",PlayerInfo[playerid][pPassword]);
- PlayerInfo[playerid][pMoney] = 1000;
- INI_WriteInt(File,"Money",PlayerInfo[playerid][pMoney]);
- PlayerInfo[playerid][pAdminLevel] = 0;
- INI_WriteInt(File,"AdminLevel",PlayerInfo[playerid][pAdminLevel]);
- PlayerInfo[playerid][pSkin] = 0;
- INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin]);
- PlayerInfo[playerid][pRegistered] = 0;
- INI_WriteInt(File,"Registered",PlayerInfo[playerid][pRegistered]);
- PlayerInfo[playerid][pAge] = 0;
- INI_WriteInt(File,"Age",PlayerInfo[playerid][pAge]);
- PlayerInfo[playerid][pOrigin] = 0;
- INI_WriteInt(File,"Origin",PlayerInfo[playerid][pOrigin]);
- PlayerInfo[playerid][pAccent] = 0;
- INI_WriteInt(File,"Accent",PlayerInfo[playerid][pAccent]);
- PlayerInfo[playerid][pHealth] = 100;
- INI_WriteFloat(File,"Health",PlayerInfo[playerid][pHealth]);
- PlayerInfo[playerid][pArmour] = 0;
- INI_WriteFloat(File,"Armour",PlayerInfo[playerid][pArmour]);
- PlayerInfo[playerid][pBank] = 500;
- INI_WriteInt(File,"Bank",PlayerInfo[playerid][pBank]);
- PlayerInfo[playerid][pJob] = 0;
- INI_WriteInt(File,"Job",PlayerInfo[playerid][pJob]);
- PlayerInfo[playerid][pFaction] = 0;
- INI_WriteInt(File,"Faction",PlayerInfo[playerid][pFaction]);
- PlayerInfo[playerid][pRank] = 0;
- INI_WriteInt(File,"Rank",PlayerInfo[playerid][pRank]);
- PlayerInfo[playerid][pLicense] = 0;
- INI_WriteInt(File,"License",PlayerInfo[playerid][pLicense]);
- PlayerInfo[playerid][pCocaine] = 0;
- INI_WriteInt(File,"Cocaine",PlayerInfo[playerid][pCocaine]);
- PlayerInfo[playerid][pMarijuana] = 0;
- INI_WriteInt(File,"Marijuana",PlayerInfo[playerid][pMarijuana]);
- PlayerInfo[playerid][pDonater] = 0;
- INI_WriteInt(File,"Donater",PlayerInfo[playerid][pDonater]);
- PlayerInfo[playerid][pDonaterPoints] = 0;
- INI_WriteInt(File,"DonaterPoints",PlayerInfo[playerid][pDonaterPoints]);
- PlayerInfo[playerid][pWatch] = 0;
- INI_WriteInt(File,"Watch",PlayerInfo[playerid][pWatch]);
- PlayerInfo[playerid][pPhone] = 0;
- INI_WriteInt(File,"Phone",PlayerInfo[playerid][pPhone]);
- PlayerInfo[playerid][pPhoneNumber] = 0;
- INI_WriteInt(File,"PhoneNumber",PlayerInfo[playerid][pPhoneNumber]);
- PlayerInfo[playerid][pHouse] = 0;
- INI_WriteInt(File,"House",PlayerInfo[playerid][pHouse]);
- PlayerInfo[playerid][pCigars] = 0;
- INI_WriteInt(File,"Cigars",PlayerInfo[playerid][pCigars]);
- PlayerInfo[playerid][pLighter] = 0;
- INI_WriteInt(File,"Lighter",PlayerInfo[playerid][pLighter]);
- PlayerInfo[playerid][pMask] = 0;
- INI_WriteInt(File,"Mask",PlayerInfo[playerid][pMask]);
- PlayerInfo[playerid][pJailTime] = 0;
- INI_WriteInt(File,"JailTime",PlayerInfo[playerid][pJailTime]);
- PlayerInfo[playerid][pGun01] = 0;
- INI_WriteInt(File,"Gun01",PlayerInfo[playerid][pGun01]);
- PlayerInfo[playerid][pGun02] = 0;
- INI_WriteInt(File,"Gun02",PlayerInfo[playerid][pGun02]);
- PlayerInfo[playerid][pGun03] = 0;
- INI_WriteInt(File,"Gun03",PlayerInfo[playerid][pGun03]);
- PlayerInfo[playerid][pGun04] = 0;
- INI_WriteInt(File,"Gun04",PlayerInfo[playerid][pGun04]);
- PlayerInfo[playerid][pGun05] = 0;
- INI_WriteInt(File,"Gun05",PlayerInfo[playerid][pGun05]);
- PlayerInfo[playerid][pGun06] = 0;
- INI_WriteInt(File,"Gun06",PlayerInfo[playerid][pGun06]);
- PlayerInfo[playerid][pGun07] = 0;
- INI_WriteInt(File,"Gun07",PlayerInfo[playerid][pGun07]);
- PlayerInfo[playerid][pGun08] = 0;
- INI_WriteInt(File,"Gun08",PlayerInfo[playerid][pGun08]);
- PlayerInfo[playerid][pGun09] = 0;
- INI_WriteInt(File,"Gun09",PlayerInfo[playerid][pGun09]);
- PlayerInfo[playerid][pGun11] = 0;
- INI_WriteInt(File,"Gun11",PlayerInfo[playerid][pGun11]);
- PlayerInfo[playerid][pAmmo01] = 0;
- INI_WriteInt(File,"Ammo01",PlayerInfo[playerid][pAmmo01]);
- PlayerInfo[playerid][pAmmo02] = 0;
- INI_WriteInt(File,"Ammo02",PlayerInfo[playerid][pAmmo02]);
- PlayerInfo[playerid][pAmmo03] = 0;
- INI_WriteInt(File,"Ammo03",PlayerInfo[playerid][pAmmo03]);
- PlayerInfo[playerid][pAmmo04] = 0;
- INI_WriteInt(File,"Ammo04",PlayerInfo[playerid][pAmmo04]);
- PlayerInfo[playerid][pAmmo05] = 0;
- INI_WriteInt(File,"Ammo05",PlayerInfo[playerid][pAmmo05]);
- PlayerInfo[playerid][pAmmo06] = 0;
- INI_WriteInt(File,"Ammo06",PlayerInfo[playerid][pAmmo06]);
- PlayerInfo[playerid][pAmmo07] = 0;
- INI_WriteInt(File,"Ammo07",PlayerInfo[playerid][pAmmo07]);
- PlayerInfo[playerid][pAmmo08] = 0;
- INI_WriteInt(File,"Ammo08",PlayerInfo[playerid][pAmmo08]);
- PlayerInfo[playerid][pAmmo09] = 0;
- INI_WriteInt(File,"Ammo09",PlayerInfo[playerid][pAmmo09]);
- PlayerInfo[playerid][pAmmo11] = 0;
- INI_WriteInt(File,"Ammo11",PlayerInfo[playerid][pAmmo11]);
- INI_Close(File);
- SendClientMessage(playerid, COLOR_YELLOW, "Thank You For Registering, Please Log In To Your Account");
- gPlayerLogged[playerid] = 1;
- ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Welcome Back", " Welcome Back, This Account Is Registered \n Please Type Your Password Below To Continue: \n", "Login", "Quit");
- }
- }
- }
- if(dialogid == 2)
- {
- if (!response)
- {
- Kick(playerid);
- return 1;
- }
- else
- {
- if(udb_hash(inputtext) == PlayerInfo[playerid][pPassword])
- {
- INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
- SetPlayerArmour(playerid, PlayerInfo[playerid][pArmour]);
- SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- gPlayerLogged[playerid] = 1;
- SendClientMessage(playerid,COLOR_RED, "You've Been Logged In, Welcome Back!");
- SetTimerEx("LoginTimer", 5000, false, "i", playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "The Password You Entered Was Incorrect");
- ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Welcome Back", " Welcome Back, This Account Is Registered \n Please Type Your Password Below To Continue: \n", "Login", "Quit");
- }
- return 1;
- }
- }
- if(dialogid == 4)
- {
- if(!response)
- {
- ShowPlayerDialog(playerid, 666, DIALOG_STYLE_MSGBOX, "Dialog Closed", "You chose to close the dialog", "Close", "");
- }
- else
- {
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "General Help", "\r\nThe Rules\r\nJob Locations\r\nDonation Information\r\n", "Select", "Close");
- }
- if(listitem == 2)
- {
- if(PlayerInfo[playerid][pAdminLevel] == 0 || IsPlayerAdmin(playerid))
- {
- ShowPlayerDialog(playerid, 7, DIALOG_STYLE_MSGBOX, "Commands Help", " [/help] - [/stats] - [/me] - [/do] \n [/report] [/s(hout)] - [/w(hisper)] - [/b] \n [/o(oc)] - [/call] - [/p(ickup)] - [/h(angup)] \n [/text] - [/stopanim] - [/enter] - [/exit] \n [/buy] - [/bank] - [/tryon] \n [/t] [/takeoff] - [/sms] - [/duty] \n [/pay] - [/d] \n", "Close", "");
- }
- }
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid, 8, DIALOG_STYLE_MSGBOX, "Job Help", " Jobs are great ways to make a good earning \n around the server. A job can help you purchase \n many things available to players around the \n server if you want to join a job, look for the \n yellow dots around the map, and go to the location! \n", "The Jobs", "Close");
- }
- if(listitem == 4)
- {
- if(PlayerInfo[playerid][pFaction] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not in any factions!");
- }
- else if(PlayerInfo[playerid][pFaction] == 1)
- {
- ShowPlayerDialog(playerid, 9, DIALOG_STYLE_LIST, "Faction Help", "\r\nFaction Information\r\nFaction Commands\r\n", "Select", "Close");
- }
- }
- }
- }
- if(dialogid == 6)
- {
- if(!response)
- {
- ShowPlayerDialog(playerid, 666, DIALOG_STYLE_MSGBOX, "Dialog Closed", "You chose to close the dialog", "Close", "");
- }
- else
- {
- if(listitem == 1)
- {
- new string[250];
- new string2[250];
- new string3[250];
- new string4[250];
- new string5[1000];
- format(string, sizeof(string), " 1. Do not use any hacks, cheats, or exploits \n 2. Do not disrespect anyone in the server \n");
- format(string2, sizeof(string2), " 3. Do not insult anyone in ooc \n 4. Do not advertise any other server or website in any way \n");
- format(string3, sizeof(string3), " 5. Do not play the role of a admin or owner, if you are not one \n 6. Do not ask to become Staff Member\n");
- format(string4, sizeof(string4), " 7. Roleplay at all times possible \n 8. Do not scam or rob over $50,000 \n");
- format(string5, sizeof(string5), "%s\n%s\n%s\n%s", string, string2, string3, string4);
- ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "The Rules", string5, "Close", "");
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, 17, DIALOG_STYLE_LIST, "Job Locations", "Which job do you need the location for?\r\nDelivery Truck Driver\r\nProduct Delivery\r\nGarbage Man\r\nChop Shop\r\nFarmer\r\nLogger\r\n", "Find", "Close");
- }
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Donation Information", " Donaters recieve great advantages, and help out the server \n greatly. As people donate, we can affoard to pay for the VPS, with the VPS \n we are able to provide a stable environment, for you the player, and be able to \n keep everything fresh and up to date. So donations are welcome, make sure to talk to \n Mento or Mustafa and they will be able to help you out with your donation inqueries. \n", "Close", "");
- }
- }
- }
- if(dialogid == 8)
- {
- if(!response)
- {
- ShowPlayerDialog(playerid, 666, DIALOG_STYLE_MSGBOX, "Dialog Closed", "You chose to close the dialog", "Close", "");
- }
- else
- {
- ShowPlayerDialog(playerid, 17, DIALOG_STYLE_LIST, "Job Locations", "Which job do you need the location for?\r\nDelivery Truck Driver\r\nProduct Delivery\r\nGarbage Man\r\nChop Shop\r\nFarmer\r\nLogger\r\n", "Find", "Close");
- }
- }
- if(dialogid == 11)
- {
- new INI:File = INI_Open(UserPath(playerid));
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "Gender Selection", "Are You A Male Or Female?\r\nMale\r\nFemale\r\n", "Continue", "");
- }
- if(listitem == 1)
- {
- SetPlayerSkin(playerid,171);
- INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin] = 171);
- INI_WriteInt(File,"Gender",PlayerInfo[playerid][pGender] = 1);
- ShowPlayerDialog(playerid, 12, DIALOG_STYLE_INPUT, "Age Selection", "What is your current age (From 17 To 70)?", "Continue", "");
- SetCameraBehindPlayer(playerid);
- }
- if(listitem == 2)
- {
- SetPlayerSkin(playerid, 194);
- INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin] = 194);
- INI_WriteInt(File,"Gender",PlayerInfo[playerid][pGender] = 2);
- SetCameraBehindPlayer(playerid);
- ShowPlayerDialog(playerid, 12, DIALOG_STYLE_INPUT, "Age Selection", "What is your current age (From 17 To 70)?", "Continue", "");
- }
- }
- }
- if(dialogid == 12)
- {
- new INI:File = INI_Open(UserPath(playerid));
- if(response)
- {
- new value[32] = "5748";
- if(isNumeric(value))
- {
- if(strval(inputtext) < 17 || strval(inputtext) > 70)
- {
- SendClientMessage(playerid, COLOR_GREY, "Please select another age...");
- ShowPlayerDialog(playerid, 12, DIALOG_STYLE_INPUT, "Age Selection", "What is your current age (From 17 To 70)?", "Continue", "");
- SetCameraBehindPlayer(playerid);
- }
- else
- {
- PlayerInfo[playerid][pAge] = strval(inputtext);
- INI_WriteInt(File,"Age",PlayerInfo[playerid][pAge]);
- ShowPlayerDialog(playerid, 13, DIALOG_STYLE_LIST, "Origion", "Where are you originally from?\r\nDo Not List\r\nEurope\r\nAfrica\r\nAustralia\r\nAsia\r\nSouth America\r\n", "Continue", "");
- SetCameraBehindPlayer(playerid);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Please select another age...");
- ShowPlayerDialog(playerid, 12, DIALOG_STYLE_INPUT, "Age Selection", "What is your current age (From 17 To 70)?", "Continue", "");
- SetCameraBehindPlayer(playerid);
- }
- }
- }
- if(dialogid == 13)
- {
- new INI:File = INI_Open(UserPath(playerid));
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, 13, DIALOG_STYLE_LIST, "Origion", "Where are you originally from?\r\nDo Not List\r\nEurope\r\nAfrica\r\nAustralia\r\nAsia\r\nSouth America\r\n", "Continue", "");
- SetCameraBehindPlayer(playerid);
- }
- if(listitem == 1)
- {
- PlayerInfo[playerid][pOrigin] = 0;
- INI_WriteInt(File,"Origin",PlayerInfo[playerid][pOrigin]);
- PlayerInfo[playerid][pAccent] = 0;
- INI_WriteInt(File,"Accent",PlayerInfo[playerid][pAccent]);
- SendClientMessage(playerid, COLOR_GREEN, "You filled out the form, please wait for the train to arrive to the location!");
- TogglePlayerControllable(playerid, true);
- SetTimerEx("AfterRegistration", 20000, 0, "i", playerid);
- SetCameraBehindPlayer(playerid);
- }
- if(listitem == 2)
- {
- PlayerInfo[playerid][pOrigin] = 1;
- INI_WriteInt(File,"Origin",PlayerInfo[playerid][pOrigin]);
- PlayerInfo[playerid][pAccent] = 1;
- INI_WriteInt(File,"Accent",PlayerInfo[playerid][pAccent]);
- SendClientMessage(playerid, COLOR_GREEN, "You filled out the form, please wait for the train to arrive to the location!");
- TogglePlayerControllable(playerid, true);
- SetTimerEx("AfterRegistration", 20000, 0, "i", playerid);
- SetCameraBehindPlayer(playerid);
- }
- if(listitem == 3)
- {
- PlayerInfo[playerid][pOrigin] = 2;
- INI_WriteInt(File,"Origin",PlayerInfo[playerid][pOrigin]);
- PlayerInfo[playerid][pAccent] = 2;
- INI_WriteInt(File,"Accent",PlayerInfo[playerid][pAccent]);
- SendClientMessage(playerid, COLOR_GREEN, "You filled out the form, please wait for the train to arrive to the location!");
- TogglePlayerControllable(playerid, true);
- SetTimerEx("AfterRegistration", 20000, 0, "i", playerid);
- SetCameraBehindPlayer(playerid);
- }
- if(listitem == 4)
- {
- PlayerInfo[playerid][pOrigin] = 3;
- INI_WriteInt(File,"Origin",PlayerInfo[playerid][pOrigin]);
- PlayerInfo[playerid][pAccent] = 3;
- INI_WriteInt(File,"Accent",PlayerInfo[playerid][pAccent]);
- SendClientMessage(playerid, COLOR_GREEN, "You filled out the form, please wait for the train to arrive to the location!");
- TogglePlayerControllable(playerid, true);
- SetTimerEx("AfterRegistration", 20000, 0, "i", playerid);
- SetCameraBehindPlayer(playerid);
- }
- if(listitem == 5)
- {
- PlayerInfo[playerid][pOrigin] = 4;
- INI_WriteInt(File,"Origin",PlayerInfo[playerid][pOrigin]);
- PlayerInfo[playerid][pAccent] = 4;
- INI_WriteInt(File,"Accent",PlayerInfo[playerid][pAccent]);
- SendClientMessage(playerid, COLOR_GREEN, "You filled out the form, please wait for the train to arrive to the location!");
- TogglePlayerControllable(playerid, true);
- SetTimerEx("AfterRegistration", 20000, 0, "i", playerid);
- SetCameraBehindPlayer(playerid);
- }
- if(listitem == 6)
- {
- PlayerInfo[playerid][pOrigin] = 5;
- INI_WriteInt(File,"Origin",PlayerInfo[playerid][pOrigin]);
- PlayerInfo[playerid][pAccent] = 5;
- INI_WriteInt(File,"Accent",PlayerInfo[playerid][pAccent]);
- SendClientMessage(playerid, COLOR_GREEN, "You filled out the form, please wait for the train to arrive to the location!");
- TogglePlayerControllable(playerid, true);
- SetTimerEx("AfterRegistration", 20000, 0, "i", playerid);
- SetCameraBehindPlayer(playerid);
- }
- }
- }
- if(dialogid == 15)
- {
- if(!response)
- {
- RemovePlayerFromVehicle(playerid);
- }
- else
- {
- new vehid = GetPlayerVehicleID(playerid);
- if(vehid == DeliveryJob[0] || vehid == DeliveryJob[1] ||vehid == DeliveryJob[2] || vehid == DeliveryJob[3] && PlayerInfo[playerid][pJob] == 1)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, 15, DIALOG_STYLE_LIST, "Delivery Truck GPS", "Select The Route You Would Like To Deliver To\r\nLong Route\r\nMedium Route\r\nShort Route\r\n", "Select", "Close");
- }
- if(listitem == 1)
- {
- DeliveryTruck[playerid] = 1;
- SetPlayerCheckpoint(playerid, 2791.1284, 2570.9358, 10.3256, 5);
- }
- if(listitem == 2)
- {
- DeliveryTruck[playerid] = 2;
- SetPlayerCheckpoint(playerid, 1638.6121, 2340.2693, 10.2162, 5);
- }
- if(listitem == 3)
- {
- DeliveryTruck[playerid] = 3;
- SetPlayerCheckpoint(playerid, 1467.7432, 1039.1665, 10.1369, 5);
- }
- }
- }
- }
- if(dialogid == 16)
- {
- new INI:File = INI_Open(UserPath(playerid));
- if(!response)
- {
- RemovePlayerFromVehicle(playerid);
- }
- else
- {
- if(PlayerInfo[playerid][pJob] == 0)
- {
- ShowPlayerDialog(playerid, 15, DIALOG_STYLE_LIST, "Delivery Truck GPS", "Select The Route You Would Like To Deliver To\r\nLong Route\r\nMedium Route\r\nShort Route\r\n", "Select", "Close");
- INI_WriteInt(File,"Job",PlayerInfo[playerid][pJob] = 1);
- }
- }
- }
- if(dialogid == 17)
- {
- if(!response)
- {
- ShowPlayerDialog(playerid, 666, DIALOG_STYLE_MSGBOX, "Dialog Closed", "You chose to close the dialog", "Close", "");
- }
- else
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, 17, DIALOG_STYLE_LIST, "Job Locations", "Which job do you need the location for?\r\nDelivery Truck Driver\r\nProduct Delivery\r\nGarbage Man\r\nChop Shop\r\nFarmer\r\nLogger\r\n", "Find", "Close");
- }
- if(listitem == 1)
- {
- SetPlayerCheckpoint(playerid, 596.6511, 1243.0564, 11.7188, 5);
- GettingJob[playerid] = 1;
- }
- if(listitem == 2)
- {
- SetPlayerCheckpoint(playerid, -136.4008, 1056.8842, 19.9548, 5);
- GettingJob[playerid] = 1;
- }
- if(listitem == 3)
- {
- SetPlayerCheckpoint(playerid, -229.7580, 1070.3711, 19.7422, 5);
- GettingJob[playerid] = 1;
- }
- if(listitem == 4)
- {
- SendClientMessage(playerid, COLOR_WHITE, "This job is illegal, you steal vehicles, and type [/chopshop], then you will be given a location!");
- }
- if(listitem == 5)
- {
- SetPlayerCheckpoint(playerid, 292.0416, 1146.5790, 8.6000, 5);
- GettingJob[playerid] = 1;
- }
- if(listitem == 6)
- {
- SetPlayerCheckpoint(playerid, 149.1544, 1140.2843, 14.5224, 3);
- GettingJob[playerid] = 1;
- }
- }
- }
- if(dialogid == 18)
- {
- if(!response)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Come back when ya got somthin' to buy partner!");
- }
- else
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][pMoney] >= 6)
- {
- if(PlayerInfo[playerid][pCigars] <= 10)
- {
- PlayerInfo[playerid][pCigars] += 5;
- PlayerInfo[playerid][pMoney] -= 6;
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- SendClientMessage(playerid, COLOR_YELLOW, "Here is your pack of cigars partner!");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You have too many cigars in your pocket!");
- }
- }
- }
- if(listitem == 1)
- {
- if(PlayerInfo[playerid][pMoney] >= 3)
- {
- if(PlayerInfo[playerid][pLighter] <= 5)
- {
- PlayerInfo[playerid][pLighter] += 1;
- PlayerInfo[playerid][pMoney] -= 3;
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- SendClientMessage(playerid, COLOR_YELLOW, "Here is your lighter partner!");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You have too many lighters in your pocket!");
- }
- }
- }
- if(listitem == 2)
- {
- if(PlayerInfo[playerid][pMoney] >= 95)
- {
- if(PlayerInfo[playerid][pPhone] == 0)
- {
- PlayerInfo[playerid][pPhone] = 1;
- PlayerInfo[playerid][pMoney] -= 95;
- new randphone = 1000 + random(9999);//minimum 1000 max 9999
- PlayerInfo[playerid][pPhoneNumber] = randphone;
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- SendClientMessage(playerid, COLOR_YELLOW, "Here is your cellular device partner!");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You aleardy have a phone!");
- }
- }
- }
- }
- }
- if(dialogid == 19)
- {
- if(!response)
- {
- ShowPlayerDialog(playerid, 666, DIALOG_STYLE_MSGBOX, "Dialog Closed", "You chose to close the dialog", "Close", "");
- }
- else
- {
- new string[256];
- format(string, sizeof(string), "Bank Amount: $%i", PlayerInfo[playerid][pBank]);
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, 20, DIALOG_STYLE_MSGBOX, "Fort Carson Town Bank", string, "Close", "");
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid, 21, DIALOG_STYLE_INPUT, "Fort Carson Town Bank", "How much do you want to withdraw?", "Withdraw", "Back");
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, 22, DIALOG_STYLE_INPUT, "Fort Carson Town Bank", "How much do you want to deposit?", "Deposit", "Back");
- }
- }
- }
- if(dialogid == 21)
- {
- new INI:File = INI_Open(UserPath(playerid));
- if(!response)
- {
- ShowPlayerDialog(playerid, 19, DIALOG_STYLE_LIST, "Fort Carson Town Bank", "Check Balance\r\nWithdraw\r\nDeposit\r\n", "Continue", "No Thanks");
- }
- else
- {
- if(PlayerInfo[playerid][pBank] >= strval(inputtext) && strval(inputtext) >= 1)
- {
- INI_WriteInt(File,"Bank", PlayerInfo[playerid][pBank] -= strval(inputtext));
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] += strval(inputtext));
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- }
- }
- }
- if(dialogid == 22)
- {
- new INI:File = INI_Open(UserPath(playerid));
- if(!response)
- {
- ShowPlayerDialog(playerid, 19, DIALOG_STYLE_LIST, "Fort Carson Town Bank", "Check Balance\r\nWithdraw\r\nDeposit\r\n", "Continue", "No Thanks");
- }
- else
- {
- if(PlayerInfo[playerid][pMoney] >= strval(inputtext) && strval(inputtext) >= 1)
- {
- INI_WriteInt(File,"Bank", PlayerInfo[playerid][pBank] += strval(inputtext));
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= strval(inputtext));
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- }
- }
- }
- if(dialogid == 23)
- {
- new INI:File = INI_Open(UserPath(playerid));
- if(!response)
- {
- RemovePlayerFromVehicle(playerid);
- SetTimerEx("RentedCars", 3000, 0, "i", playerid);
- TogglePlayerSpectating(playerid, false);
- TogglePlayerControllable(playerid, true);
- RentedCarTry[playerid] = 0;
- }
- else
- {
- if(PlayerInfo[playerid][pMoney] >= 100)
- {
- TogglePlayerControllable(playerid, true);
- RentedCar[playerid] = 1;
- TogglePlayerControllable(playerid, true);
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 100);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- SendClientMessage(playerid, COLOR_YELLOW, "You have successfully rented the vehicle!");
- TogglePlayerSpectating(playerid, false);
- RentedCar[playerid] = RentedCarTry[playerid];
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have the money for this!");
- RemovePlayerFromVehicle(playerid);
- SetTimerEx("RentedCars", 5000, 0, "i", playerid);
- TogglePlayerSpectating(playerid, false);
- TogglePlayerControllable(playerid, true);
- RentedCarTry[playerid] = 0;
- }
- }
- }
- if(dialogid == 24)
- {
- new INI:File = INI_Open(UserPath(playerid));
- if(!response)
- {
- RemovePlayerFromVehicle(playerid);
- }
- else
- {
- if(PlayerInfo[playerid][pJob] == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You should head out to the pickup spot");
- SmugglingMats[playerid] = 1;
- SetPlayerCheckpoint(playerid, -32.1691, 2335.5229, 24.1406, 5);
- INI_WriteInt(File,"Job",PlayerInfo[playerid][pJob] = 2);
- }
- }
- }
- if(dialogid == 25)
- {
- new INI:File = INI_Open(UserPath(playerid));
- if(!response)
- {
- }
- else
- {
- if(listitem == 0)
- {
- new string[256];
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 3);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- format(string, sizeof(string), " %s pays the cashier $3, and takes their food", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerAttachedObject(playerid, 0);
- SetPlayerAttachedObject( playerid, 0, 2703, 6, 0.066539, 0.019588, 0.018560, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
- EatingFood[playerid] = 1;
- }
- if(listitem == 1)
- {
- new string[256];
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 3);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- format(string, sizeof(string), " %s pays the cashier $3, and takes their food", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerAttachedObject(playerid, 0);
- SetPlayerAttachedObject( playerid, 0, 2702, 6, 0.103345, 0.034950, 0.062748, 103.011543, 171.309585, 50.579494, 1.000000, 1.000000, 1.000000 );
- EatingFood[playerid] = 1;
- }
- if(listitem == 2)
- {
- new string[256];
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 5);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- format(string, sizeof(string), " %s pays the cashier $5, and takes their food", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerAttachedObject(playerid, 0);
- SetPlayerAttachedObject( playerid, 0, 2880, 5, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
- EatingFood[playerid] = 1;
- }
- if(listitem == 3)
- {
- new string[256];
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 5);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- format(string, sizeof(string), " %s pays the cashier $5, and takes their food", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerAttachedObject(playerid, 0);
- SetPlayerAttachedObject( playerid, 0, 2881, 5, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
- EatingFood[playerid] = 1;
- }
- if(listitem == 4)
- {
- new string[256];
- INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 2);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- format(string, sizeof(string), " %s pays the cashier $2, and takes their drink", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerAttachedObject(playerid, 0);
- SetPlayerAttachedObject( playerid, 0, 2647, 5, 0.128486, 0.046768, -0.005824, 351.794830, 220.051788, 0.000000, 1.000000, 1.000000, 1.000000 );
- EatingFood[playerid] = 1;
- }
- }
- }
- if(dialogid == 26)
- {
- new INI:File = INI_Open(UserPath(playerid));
- if(!response)
- {
- RemovePlayerFromVehicle(playerid);
- }
- else
- {
- if(PlayerInfo[playerid][pJob] == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Type /collect to begin collecting trash!");
- INI_WriteInt(File,"Job",PlayerInfo[playerid][pJob] = 3);
- }
- }
- }
- if(dialogid == 27)
- {
- if(!response)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "See you then friend, I hope you change yer mind soon.");
- }
- else
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][pMoney] >= 1250)
- {
- PlayerInfo[playerid][pMoney] -= 1250;
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- PlayerInfo[playerid][pGun02] = 22;
- GivePlayerWeapon(playerid, 22, 150);
- SendClientMessage(playerid, COLOR_GREEN, "You purchase a Colt45 for $1250.");
- SendClientMessage(playerid, COLOR_YELLOW, "Thanks friend, come again!.");
- }
- }
- if(listitem == 1)
- {
- if(PlayerInfo[playerid][pMoney] >= 2500)
- {
- PlayerInfo[playerid][pMoney] -= 2500;
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- PlayerInfo[playerid][pGun02] = 25;
- GivePlayerWeapon(playerid, 25, 50);
- SendClientMessage(playerid, COLOR_GREEN, "You purchase a Shotgun for $2500.");
- SendClientMessage(playerid, COLOR_YELLOW, "Thanks friend, come again!.");
- }
- }
- if(listitem == 2)
- {
- if(PlayerInfo[playerid][pMoney] >= 250)
- {
- PlayerInfo[playerid][pMoney] -= 250;
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- SetPlayerArmour(playerid, 50);
- PlayerInfo[playerid][pArmour] = 1;
- SendClientMessage(playerid, COLOR_GREEN, "You purchase a Kevlar for $250.");
- SendClientMessage(playerid, COLOR_YELLOW, "Thanks friend, come again!.");
- }
- }
- }
- }
- if(dialogid == 28)
- {
- for(new i = 0;i < sizeof(HouseInfo);i++)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][pHouse] == 0)
- {
- if(PlayerInfo[playerid][pMoney] >= HouseInfo[i][hValue])
- {
- PlayerInfo[playerid][pMoney] -= HouseInfo[i][hValue];
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- HouseInfo[i][hOwner] = GetPlayerNameEx(playerid);
- PlayerInfo[playerid][pHouse] = i;
- HouseInfo[i][hOwned] = 1;
- SendClientMessage(playerid, COLOR_GREEN, "You have purchased a home.");
- }
- }
- }
- }
- }
- }
- if(dialogid == 29)
- {
- for(new i = 0;i < sizeof(HouseInfo);i++)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(!strcmp(HouseInfo[i][hOwner],GetPlayerNameEx(playerid)))
- {
- new string[126];
- PlayerInfo[playerid][pMoney] += HouseInfo[i][hSellprice];
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- HouseInfo[i][hOwner] = format(string, sizeof(string), "Home For Sale");
- PlayerInfo[playerid][pHouse] = 0;
- HouseInfo[i][hOwned] = 0;
- SendClientMessage(playerid, COLOR_GREEN, "You have sold your home.");
- }
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid, 32, DIALOG_STYLE_INPUT, "House Information", "Set A Rent Price", "Set", "Cancle");
- }
- if(listitem == 2)
- {
- if(PlayerInfo[playerid][pHouse] == i)
- {
- HouseInfo[i][hLock] = 1;
- }
- }
- if(listitem == 3)
- {
- if(PlayerInfo[playerid][pHouse] == i)
- {
- HouseInfo[i][hLock] = 0;
- }
- }
- if(listitem == 4)
- {
- new string[126];
- format(string, sizeof(string), "House Balance: %i", HouseInfo[i][hRevenue]);
- ShowPlayerDialog(playerid, 33, DIALOG_STYLE_MSGBOX, "House Information", string, "Withdraw", "Close");
- }
- }
- }
- }
- if(dialogid == 30)
- {
- for(new i = 0;i < sizeof(HouseInfo);i++)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][pHouse] == 0 && PlayerInfo[playerid][pMoney] >= HouseInfo[i][hValue])
- {
- PlayerInfo[playerid][pHouse] = i;
- PlayerInfo[playerid][pMoney] -= HouseInfo[i][hRent];
- HouseInfo[i][hRevenue] += HouseInfo[i][hRent];
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- }
- }
- }
- }
- }
- if(dialogid == 31)
- {
- for(new i = 0;i < sizeof(HouseInfo);i++)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][pHouse] == 0)
- {
- if(PlayerInfo[playerid][pMoney] >= HouseInfo[i][hValue])
- {
- PlayerInfo[playerid][pMoney] -= HouseInfo[i][hValue];
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- HouseInfo[i][hOwner] = GetPlayerNameEx(playerid);
- PlayerInfo[playerid][pHouse] = i;
- HouseInfo[i][hOwned] = 1;
- SendClientMessage(playerid, COLOR_GREEN, "You have purchased a home.");
- }
- }
- }
- if(listitem == 1)
- {
- if(PlayerInfo[playerid][pHouse] == 0 && PlayerInfo[playerid][pMoney] >= HouseInfo[i][hValue])
- {
- PlayerInfo[playerid][pHouse] = i;
- PlayerInfo[playerid][pMoney] -= HouseInfo[i][hRent];
- HouseInfo[i][hRevenue] += HouseInfo[i][hRent];
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- }
- }
- }
- }
- }
- if(dialogid == 32)
- {
- if(response)
- {
- for(new i = 0;i < sizeof(HouseInfo);i++)
- {
- new value[32] = "5748";
- if(isNumeric(value))
- {
- if(strval(inputtext) < 1 || strval(inputtext) > 1000)
- {
- SendClientMessage(playerid, COLOR_RED, "Invalid Rent Price");
- }
- else
- {
- HouseInfo[i][hRent] = inputtext[126];
- }
- }
- else
- {
- ShowPlayerDialog(playerid, 32, DIALOG_STYLE_INPUT, "House Information", "Set A Rent Price", "Set", "Cancle");
- }
- }
- }
- }
- if(dialogid == 33)
- {
- for(new i = 0;i < sizeof(HouseInfo);i++)
- {
- if(response)
- {
- PlayerInfo[playerid][pMoney] += HouseInfo[i][hRevenue];
- HouseInfo[i][hRevenue] = 0;
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- }
- }
- }
- if(dialogid == 34)
- {
- new INI:File = INI_Open(UserPath(playerid));
- if(!response)
- {
- RemovePlayerFromVehicle(playerid);
- }
- else
- {
- if(PlayerInfo[playerid][pJob] == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You should begin planting seeds, to start, type [/farm]");
- PlantingSeeds[playerid] = 0;
- INI_WriteInt(File,"Job",PlayerInfo[playerid][pJob] = 4);
- }
- }
- }
- if(dialogid == 35)
- {
- new INI:File = INI_Open(UserPath(playerid));
- if(!response)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Alright then, have a good day...");
- }
- else
- {
- if(PlayerInfo[playerid][pJob] == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "To begin logging, type [/logger] near one of the trees");
- INI_WriteInt(File,"Job",PlayerInfo[playerid][pJob] = 5);
- }
- }
- }
- return 1;
- }
- public LoginTimer(playerid)
- {
- SendClientMessage(playerid, COLOR_GREEN, "Your stats have been loaded to your account!");
- if(PlayerInfo[playerid][pRegistered] == 0)
- {
- INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
- TogglePlayerSpectating(playerid, false);
- TogglePlayerControllable(playerid, false);
- SetSpawnInfo(playerid, 0, 101, -12.9163, -358.9018, 383.2844, 263.2258, 0, 0, 0, 0, 0, 0);
- SpawnPlayer(playerid);
- SetPlayerInterior(playerid, 1);
- SetPlayerPos(playerid, -12.9163, -358.9018, 383.2844); //Jet Coords
- SetPlayerFacingAngle(playerid, 263.2258);
- RentedCarsTimer[playerid] = SetTimerEx("TrainRegister", 2500, 0, "i", playerid);
- SetCameraBehindPlayer(playerid);
- gPlayerLogged[playerid] = 1;
- }
- else
- {
- INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
- TogglePlayerSpectating(playerid, false);
- TogglePlayerControllable(playerid, true);
- SetPlayerInterior(playerid, 0);
- SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], -110.5563, 1285.1582, 19.3348, 130.3712, 0, 0, 0, 0, 0, 0);
- SpawnPlayer(playerid);
- SetCameraBehindPlayer(playerid);
- TogglePlayerSpectating(playerid, false);
- TogglePlayerControllable(playerid, true);
- SetTimerEx("DoubleCheck", 3000, 0, "i", playerid);
- gPlayerLogged[playerid] = 1;
- }
- return 1;
- }
- forward DoubleCheck(playerid);
- public DoubleCheck(playerid)
- {
- gPlayerLogged[playerid] = 1;
- TogglePlayerSpectating(playerid, false);
- TogglePlayerControllable(playerid, true);
- return 1;
- }
- public TrainRegister(playerid)
- {
- new string[256], playername[MAX_PLAYER_NAME];
- SendClientMessage(playerid, COLOR_WHITE, "[Train Conductor]: We are about to reach the destination in a few minutes, we hope you enjoyed your train ride!");
- GetPlayerName(playerid,playername,sizeof(playername));
- format(string,sizeof(string), "%s pickups up the immigration paper infront of them and begins filling it out with their information", playername);
- SendClientMessage(playerid, COLOR_PURPLE, string);
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "Gender Selection", "Are You A Male Or Female?\r\nMale\r\nFemale\r\n", "Continue", "");
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- public AfterRegistration(playerid)
- {
- new playername[MAX_PLAYER_NAME], INI:File = INI_Open(UserPath(playerid));
- new string[256];
- INI_WriteInt(File,"Registered",PlayerInfo[playerid][pRegistered] = 1);
- SendClientMessage(playerid, COLOR_GREEN, "[Train Conductor]: The train has arrived to the destination ladies and gentlemen, welcome to Fort Carson!");
- TogglePlayerControllable(playerid, true);
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, -110.5563, 1285.1582, 19.3348);
- SetPlayerFacingAngle(playerid, 12.9165);
- SetCameraBehindPlayer(playerid);
- GetPlayerName(playerid,playername,sizeof(playername));
- format(string,sizeof(string), "%s pickups up the immigration paper and heads towards the exit", playername);
- SendClientMessage(playerid, COLOR_PURPLE, string);
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement