Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Different Business Types:
- switch(BusinessInfo[id2][bType])
- {
- case 25: biztext = "Betting Shop";
- case 24: biztext = "Advertisement Center";
- case 23: biztext = "Furniture Shop";
- case 22: biztext = "Garage";
- case 21: biztext = "Apartment Complex";
- case 20: biztext = "Dealership";
- case 19: biztext = "Electronic Store";
- case 18: biztext = "Ammu-Nation";
- case 17: biztext = "Gym";
- case 16: biztext = "Hotel";
- case 15: biztext = "Motel";
- case 14: biztext = "Diner";
- case 13: biztext = "Tattoo Shop";
- case 12: biztext = "Barbershop";
- case 11: biztext = "Flower Store";
- case 10: biztext = "98 Cents";
- case 9: biztext = "69 Cents";
- case 8: biztext = "Liqour Store";
- case 7: biztext = "Restaurant";
- case 6: biztext = "Bank";
- case 5: biztext = "Hospital";
- case 4: biztext = "Police Station";
- case 3: biztext = "24/7";
- case 2: biztext = "Club";
- case 1: biztext = "Bar";
- case 0: biztext = "Clothes Shop";
- }
- Trucker Job:
- SCM(playerid, COLOR_GREY,"[Usage:] /trucker [order/info/orders/take_order/deliver/place/cancel].");
- Factories for truckers to order their products
- static const TruckingZones[][TruckInfo] = {
- /*Wood Producers*/
- {"Leafy Hollow Woods\n"COLORORANGE"Producing Wood\n"COL_WHITE"Use [/trucker order] to order wood from the factory and [/trucker info] to list information", {-1107.1235,-1620.4291,76.3672}, 1},
- {"Whetstone's Wood Forest\n"COLORORANGE"Producing Wood\n"COL_WHITE"Use [/trucker order] to order wood from the factory and [/trucker info] to list information", {-1422.5691,-1502.0198,101.6719}, 1},
- {"Woods of North Rock\n"COLORORANGE"Producing Wood\n"COL_WHITE"Use [/trucker order] to order wood from the factory and [/trucker info] to list information", {2354.8870,-648.6005,128.0397}, 1},
- /*Oilfields*/
- {"Verdant Meadows Oilfield\n"COLORYELLOW"Producing Oil\n"COL_WHITE"Use [/trucker order] to order oil from the factory and [/trucker info] to list information", {384.9622,2602.6160,16.4844}, 2},
- /*Mine Quarrys*/
- {"Whetstone Quarry\n"COL_BROWN"Producing Coal\n"COL_WHITE"Use [/trucker order] to order coal/ore from the factory and [/trucker info] to list information", {-1829.4500,-1634.9768,21.7500}, 3},
- {"Hunter Quarry\n"COL_BROWN"Producing Coal\n"COL_WHITE"Use [/trucker order] to order coal/ore from the factory and [/trucker info] to list information", {585.6367,871.5690,-42.4973}, 3},
- /*Steel Refinery*/
- {"Fallen Tree Steel Refinery\n"COLORGREY"Producing Steel\nRequiring Coal\n"COL_WHITE"Use [/trucker order] to order steel from the factory and [/trucker info] to list information", {-481.3151,-541.5077,25.5296}, 4, {3}},
- /*Plastic Factory*/
- {"Blueberry Plastics\n"COL_SILVER"Producing Plastic\nRequiring Oil, Wood\n"COL_WHITE"Use [/trucker order] to order plastic from the factory and [/trucker info] to list information", {-22.3179,-278.7772,5.4297}, 5, {1,2}},
- /*Chemical Factory*/
- {"Easter Bay Chemicals\n"DARKGREEN"Producing Chemicals\nRequiring Oil, Wood, Coal\n"COL_WHITE"Use [/trucker order] to order chemicals from the factory and [/trucker info] to list information", {-993.7693,-700.3590,32.0078}, 6, {1,2,3}},
- /*Weapon Parts*/
- {"Red County Weapon Parts\n"COLORORANGE"Producing Weapon Parts\nRequiring Steel, Wood\n"COL_WHITE"Use [/trucker order] to order weapon parts from the factory and [/trucker info] to list information", {1932.0310,147.2223,37.2813}, 7, {1,4}},
- /*Car Parts*/
- {"Ocean Docks Car Parts\n"COL_BROWN"Producing Car Parts\nRequiring Steel, Wood, Plastic\n"COL_WHITE"Use [/trucker order] to order car parts from the factory and [/trucker info] to list information", {2406.8755,-2477.0288,13.6312}, 8, {1,4,5}},
- /*Fuel Refineries*/
- {"Willowfield Fuel Refineries\n"DARKORANGE"Producing Petroleum\nRequiring Oil, Chemicals\n"COL_WHITE"Use [/trucker order] to order petroleum from the factory and [/trucker info] to list information", {2648.3835,-2098.4714,13.5469}, 9, {2,6}},
- /*Electricity Manufactures*/
- {"Mount Chiliad Electricity\n"COLORYELLOW"Producing Electronic Parts\nRequiring Steel, Plastic, Chemicals\n"COL_WHITE"Use [/trucker order] to order petroleum from the factory and [/trucker info] to list information", {-2324.4265,-1619.0321,485.2487}, 10, {4,5,6}},
- /*Weapon Factories*/
- {"Ammu-Nation Weapons\n"COLORGREY"Producing Weapons\nRequiring Weapon Parts\n"COL_WHITE"Use [/trucker order] to order petroleum from the factory and [/trucker info] to list information", {1420.0073,-1355.2379,13.5638}, 11, {7}},
- /*Vehicle Factories*/
- {"Rodeo's Vehicle Factories\n"COL_SILVER"Producing Vehicles\nRequiring Car Parts, Plastic, Electronic Parts\n"COL_WHITE"Use [/trucker order] to order petroleum from the factory and [/trucker info] to list information", {516.1822,-1301.2560,17.2422}, 12, {5,8,10}},
- /*Furniture Manufactures*/
- {"Blueberry Acres Furnitures\n"COL_BROWN"Producing Furnitures\nRequiring Wood, Steel, Plastic\n"COL_WHITE"Use [/trucker order] to order furniture from the factory and [/trucker info] to list information", {-90.0501,-10.0915,3.1094}, 13, {1,4,5}},
- /*Grocery Producers*/
- {"Inlet Groceries\n"COLORGREY"Producing Groceries\nRequiring Wood, Plastic, Chemicals\n"COL_WHITE"Use [/trucker order] to order groceries from the factory and [trucker info] to list information", {-287.9317,-2163.8730,28.6314}, 14, {1,5,6}}
- };
- Scripted Penal Code for the Government
- static const crimesList[][]=
- {
- "01. Crimes against the person",
- "02. Crimes against property and criminal profiteering",
- "03. Crimes against public decency",
- "04. Crimes against public justice",
- "05. Crimes against public peace",
- "06. Crimes against the public administration",
- "07. Crimes against the minors or animals",
- "08. Crimes related to vehicles",
- "09. Crimes against public health and safety",
- "10. Traffic Offenses"
- };
- static const crimesPerson[][] =
- {
- "01. Intimidation",
- "02. Physical Aggression",
- "03. Assault with a deadly weapon",
- "04. Injuries",
- "05. Fatal Injuries",
- "06. Attempted Murder",
- "07. Manslaughter",
- "08. Homicide",
- "09. Kidnapping",
- "10. Abduction",
- "11. Torture"
- };
- static const crimesProperty[][] =
- {
- "01. Arson",
- "02. Burglary",
- "03. Extortion",
- "04. False impersonation",
- "05. Counterfeiting",
- "06. Fraud",
- "07. Theft",
- "08. Vehicle Theft",
- "09. Firearm Theft",
- "10. Pickpocketing",
- "11. Possession of burglary tools",
- "12. Appropriation of stolen goods",
- "13. Robbery",
- "14. Armed robbery",
- "15. Domestic Violation",
- "16. Military perimeter violation",
- "17. Vandalism"
- };
- static const crimesPublicDecency[][] =
- {
- "01. Indecent attitude",
- "02. Obscene behavior in public",
- "03. Pimping / Prostitution",
- "04. Rape",
- "05. Sexual Aggression",
- "06. Sexual Outrage",
- "07. Stalking",
- "08. Vigilantism"
- };
- static const crimesPublicJustice[][] =
- {
- "01. Corruption",
- "02. Contempt of court",
- "03. Insulting a public official",
- "04. Deterrence",
- "05. Resisting arrest by a court",
- "06. Failure to pay a penalty",
- "07. False testimony",
- "08. Failure to comply",
- "09. Smuggling",
- "10. Abuse of the emergency line",
- "11. Resisting a public official ",
- "12. Obstruction",
- "13. Tampering with evidence",
- "14. Violation of the restrictive measure",
- "15. Not following the imposition of a court",
- "16. Election Fraud",
- "17. Bribery of a public official",
- "18. Bribery of a public office",
- "19. Aggravated abuse of an emergency line",
- "20. First Degree Evasion",
- "21. Second Degree Evasion",
- "21. False Copyright Claims & Harassment"
- };
- static const crimesPublicPeace[][] =
- {
- "01. Disturbing the peace",
- "02. Uprising hate",
- "03. Unauthorized Manifestations",
- "04. Incitement to vandalism"
- };
- static const crimesPublicAdministration[][] =
- {
- "01. Staying in a place for disturbance purposes",
- "02. Production of drugs",
- "03. Possession of drugs",
- "04. Distribution of drugs",
- "05. Terrorism"
- };
- static const crimesAgainstMinororAnimal[][] =
- {
- "01. Animal abuse / cruelty",
- "02. Child Abuse",
- "03. Irresponsible conduct against a child",
- "04. Distributions of drugs to a minor",
- "05. Use of alcohol by a minor"
- };
- static const crimesCarRelated[][] =
- {
- "01. Extraction of weapon fire from a vehicle",
- "02. Extraction of weapon fire in public",
- "03. Unlicensed Driving",
- "04. Resisting a public official",
- "05. Unlicensed Aircraft Hovering",
- "06. Accident with failure to rescue",
- "07. Accident with private rescue aid failure",
- "08. Dangerous driving with a plane",
- "09. Non-compliance with ATC protocols",
- "10. Resistance exploiting a plane"
- };
- static const crimesPublicSecurity[][] =
- {
- "01. Possession of an illegal knife",
- "02. Possession of a firearm without a license",
- "03. Production of firearm",
- "04. Possession of an illegal firearm",
- "05. Weapon Assault",
- "06. Possession of excessive ammunition",
- "07. Possession of explosive devices intended for sale",
- "08. Possession of explosive devices"
- };
- static const crimesTrafficOffenses[][] =
- {
- "01. Speeding",
- "02. Illegal parking",
- "03. Reckless driving",
- "04. Driving in the wrong lane",
- "05. Illegal Racing",
- "06. Violation of traffic rules",
- "07. Driving with vehicle objectionable material circulation",
- "08. Driving without seatbelt / light devices",
- "09. Vehicular Endangerment"
- };
- /damages system
- #define BODY_PART_TORSO 3
- #define BODY_PART_GROIN 4
- #define BODY_PART_RIGHT_ARM 5
- #define BODY_PART_LEFT_ARM 6
- #define BODY_PART_RIGHT_LEG 7
- #define BODY_PART_LEFT_LEG 8
- #define BODY_PART_HEAD 9
- Faction types system
- #define FACTION_TYPE_LAW (1) //LSPD
- #define FACTION_TYPE_MEDIC (2) //LSFMD
- #define FACTION_TYPE_NEWS (3) //SAN
- #define FACTION_TYPE_GOV (4) //SAGOV
- #define FACTION_TYPE_ILL (5) //Illegal Factions
- #define FACTION_TYPE_COMP (6) //Companies
- Custom passenger interiors
- #define AmbulanceInt 2003.3,2284.2,1011.1
- //#define AT400Int -2584.3625,1066.2448,2534.2139
- #define EnforcerInt 1384.0756,-2245.3730,3006.4163
- #define JourneyInt -1503.2544,2512.0527,3207.6506
- #define RaindanceInt -765.6840,1596.6407,3002.6099
- #define BusInt 2021.7991,2235.4919,2103.9536
- #define LimousineInt 2147.5132,-1515.0826,420.6283
- Multiple drugs with different effects
- CMD:takedrug(playerid, params[])
- {
- new
- give[24], amount, string[128];
- new hworld = GetPlayerVirtualWorld(playerid);
- new house = PlayerInfo[playerid][HouseID];
- if(sscanf(params, "s[24]d", give, amount)) return SendClientMessage(playerid, COLOR_GREY, "[SERVER:] /takedrug (lsd, marijuana, cocaine, meth, ecstasy) [amount]");
- if(house == 0) return SCM(playerid, COLOR_LIGHTRED, "You don't own any house.");
- for(new h = 1; h < sizeof(HouseInfo); h++)
- {
- if(hworld == HouseInfo[h][hInsideWorld])
- {
- if(house == HouseInfo[h][hInsideWorld])
- {
- if(!strcmp(give, "lsd", true))
- {
- if (amount > HouseInfo[h][hLSD]) return SendClientMessage(playerid, COLOR_LIGHTRED, "You do not have that much LSD in your house.");
- HouseInfo[h][hLSD] -= amount;
- PlayerInfo[playerid][dLSD] += amount;
- format(string, sizeof(string), "%s takes a baggie from the house vault.", GetName(playerid));
- ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- new string2[128];
- format(string2, sizeof(string2), "* %s takes a baggie from the house vault.", GetName(playerid));
- SetPlayerChatBubble(playerid, string2, COLOR_PURPLE, 100.0, 10000);
- format(string, sizeof(string), "You have taken %dg of LSD from your house.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else if(!strcmp(give, "marijuana", true))
- {
- if (amount > HouseInfo[h][hMarijuana]) return SendClientMessage(playerid, COLOR_LIGHTRED, "You do not have that much marijuana in your house.");
- HouseInfo[h][hMarijuana] -= amount;
- PlayerInfo[playerid][dMarijuana] += amount;
- format(string, sizeof(string), "%s takes a baggie from the house vault.", GetName(playerid));
- ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- new string2[128];
- format(string2, sizeof(string2), "* %s takes a baggie from the house vault.", GetName(playerid));
- SetPlayerChatBubble(playerid, string2, COLOR_PURPLE, 100.0, 10000);
- format(string, sizeof(string), "You have taken %dg of marijuana from your house.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else if(!strcmp(give, "cocaine", true))
- {
- if (amount > HouseInfo[h][hCocaine]) return SendClientMessage(playerid, COLOR_LIGHTRED, "You do not have that much cocaine in your house.");
- HouseInfo[h][hCocaine] -= amount;
- PlayerInfo[playerid][dCocaine] += amount;
- format(string, sizeof(string), "%s takes a baggie from the house vault.", GetName(playerid));
- ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- new string2[128];
- format(string2, sizeof(string2), "* %s takes a baggie from the house vault.", GetName(playerid));
- SetPlayerChatBubble(playerid, string2, COLOR_PURPLE, 100.0, 10000);
- format(string, sizeof(string), "You have taken %dg of cocaine from your house.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else if(!strcmp(give, "meth", true))
- {
- if (amount > HouseInfo[h][hMeth]) return SendClientMessage(playerid, COLOR_LIGHTRED, "You do not have that much meth in your house.");
- HouseInfo[h][hMeth] -= amount;
- PlayerInfo[playerid][dMeth] += amount;
- format(string, sizeof(string), "%s takes a baggie from the house vault.", GetName(playerid));
- ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- new string2[128];
- format(string2, sizeof(string2), "* %s takes a baggie from the house vault.", GetName(playerid));
- SetPlayerChatBubble(playerid, string2, COLOR_PURPLE, 100.0, 10000);
- format(string, sizeof(string), "You have taken %dg of meth from your house.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else if(!strcmp(give, "ecstasy", true))
- {
- if (amount > HouseInfo[h][hEcstasy]) return SendClientMessage(playerid, COLOR_LIGHTRED, "You do not have that much LSD in your house.");
- HouseInfo[h][hEcstasy] -= amount;
- PlayerInfo[playerid][dEcstasy] += amount;
- format(string, sizeof(string), "%s takes a baggie from the house vault.", GetName(playerid));
- ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- new string2[128];
- format(string2, sizeof(string2), "* %s takes a baggie from the house vault.", GetName(playerid));
- SetPlayerChatBubble(playerid, string2, COLOR_PURPLE, 100.0, 10000);
- format(string, sizeof(string), "You have taken %dg of ecstasy from your house.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else if(!strcmp(give, "heroin", true))
- {
- if (amount > HouseInfo[h][hHeroin]) return SendClientMessage(playerid, COLOR_LIGHTRED, "You do not have that much meth in your house.");
- HouseInfo[h][hHeroin] -= amount;
- PlayerInfo[playerid][dHeroin] += amount;
- format(string, sizeof(string), "%s takes syringes from the house vault.", GetName(playerid));
- ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- new string2[128];
- format(string2, sizeof(string2), "* %s takes syringes from the house vault.", GetName(playerid));
- SetPlayerChatBubble(playerid, string2, COLOR_PURPLE, 100.0, 10000);
- format(string, sizeof(string), "You have taken %dg of heroin from your house.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else if(!strcmp(give, "crack", true))
- {
- if (amount > HouseInfo[h][hCrack]) return SendClientMessage(playerid, COLOR_LIGHTRED, "You do not have that much LSD in your house.");
- HouseInfo[h][hCrack] -= amount;
- PlayerInfo[playerid][dCrack] += amount;
- format(string, sizeof(string), "%s takes a baggie from the house vault.", GetName(playerid));
- ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- new string2[128];
- format(string2, sizeof(string2), "* %s takes a baggie from the house vault.", GetName(playerid));
- SetPlayerChatBubble(playerid, string2, COLOR_PURPLE, 100.0, 10000);
- format(string, sizeof(string), "You have taken %dg of ecstasy from your house.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- }
- }
- return 1;
- }
- Holster System
- switch(oldweapontype)
- {
- case WEAPON_TYPE_LIGHT:
- SetPlayerAttachedObject(playerid, 0,modelid, 8,0.0,-0.1,0.15, -100.0, 0.0, 0.0);
- case WEAPON_TYPE_MELEE:
- SetPlayerAttachedObject(playerid, 0,modelid, 7,0.0,0.0,-0.18, 100.0, 45.0, 0.0);
- case WEAPON_TYPE_HEAVY:
- SetPlayerAttachedObject(playerid, 0,modelid, 1, 0.2,-0.125,-0.1,0.0,25.0,180.0);
- }
- Corpse System
- format(string, sizeof(string), "((Corpse: %s))", cActor[i][cName]);
- format(string2, sizeof(string2), ""COL_GREEN"Identification Card"COL_WHITE" %s\n", cActor[i][cName]);
- strcat(holder, string2, sizeof(holder));
- format(string2, sizeof(string2), ""COL_GREEN"Money:"COL_WHITE" $%d\n\n", cActor[i][cMoney]);
- strcat(holder, string2, sizeof(holder));
- format(string2, sizeof(string2), ""COL_GREEN"LSD:"COL_WHITE" %dg\n", cActor[i][cLSD]);
- strcat(holder, string2, sizeof(holder));
- format(string2, sizeof(string2), ""COL_GREEN"Cocaine:"COL_WHITE" %dg\n", cActor[i][cCocaine]);
- strcat(holder, string2, sizeof(holder));
- format(string2, sizeof(string2), ""COL_GREEN"Marijuana:"COL_WHITE" %dg\n", cActor[i][cMarijuana]);
- strcat(holder, string2, sizeof(holder));
- format(string2, sizeof(string2), ""COL_GREEN"Methamphetamine:"COL_WHITE" %dg\n", cActor[i][cMeth]);
- strcat(holder, string2, sizeof(holder));
- format(string2, sizeof(string2), ""COL_GREEN"Ecstasy:"COL_WHITE" %dg\n", cActor[i][cEcstasy]);
- strcat(holder, string2, sizeof(holder));
- format(string2, sizeof(string2), ""COL_GREEN"Heroin:"COL_WHITE" %dg\n", cActor[i][cHeroin]);
- strcat(holder, string2, sizeof(holder));
- format(string2, sizeof(string2), ""COL_GREEN"Crack:"COL_WHITE" %dg\n", cActor[i][cCrack]);
- strcat(holder, string2, sizeof(holder));
- Earthquake System
- CMD:startquake(playerid, params[])
- {
- if(quakemagnitude == 0.0) return SendClientMessage(playerid, COLOR_GREY, "Quake magnitude isn't set. Use /quakemagnitude to set it");
- new Float:Pos[3];
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
- PlayAudioStreamForPlayer(playerid, "http://k61.offliberty.com/6Wc7QH55qKU.mp3");
- SetPlayerDrunkLevel(playerid, 5001);
- playerPrevPos[playerid][0] = Pos[0];
- playerPrevPos[playerid][1] = Pos[1];
- playerPrevPos[playerid][2] = Pos[2];
- isQuaking = true;
- for(new i; i<MAX_PLAYERS; i++)
- {
- SetPlayerVelocity(i, 0.0, 0.0, 0.05);
- playerQuakeTimer[i] = SetTimerEx("EarthquakeEffect", 500, true, "i", i);
- playerSirenTimer[i] = SetTimerEx("SirenExpire", 45000, true, "i", i);
- playerFlipTimer[i] = SetTimerEx("FlipTimer", 5000, true, "i", i);
- }
- return 1;
- }
- Celebrity System
- CMD:sign(playerid, params[])
- {
- new giveplayerid, string[120];
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, -1, "/sign [playerid]");
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant use that command on yourself!");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not on foot!");
- return 1;
- }
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- /* if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, "You cant use this command on yourself!");
- return 1;
- }*/
- if (ProxDetectorS(5.0, playerid, giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pStarsP] <= 49)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isnt a celebrity!");
- return 1;
- }
- format(string, sizeof(string),"* {FFFFFF}Your request has been sent to {33CCFF}%s.",GetName(giveplayerid));
- SendClientMessage(playerid, COLOR_ORANGE, string);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, ":::::::::::::::::::::::::::::::::::::::::::::::");
- format(string, sizeof(string),"* {33CCFF}%s {FFFFFF}wants an autograph from you.",GetName(playerid));
- SendClientMessage(giveplayerid, COLOR_ORANGE, string);
- SendClientMessage(giveplayerid, COLOR_ORANGE, "{33CCFF}/signaccept{FFFFFF}to accept, otherwise {33CCFF}/signdeny");
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, ":::::::::::::::::::::::::::::::::::::::::::::::");
- pendingsign[giveplayerid] = playerid;
- SetTimerEx("Signoffertimer", 10000, false, "i", giveplayerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not close enough to the player");
- return 1;
- }
- }
- }
- return 1;
- }
- Drop gun system
- CMD:dropgun(playerid, params[])
- {
- new
- world = GetPlayerVirtualWorld(playerid), interior = GetPlayerInterior(playerid);
- if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return 1;
- new GunID = GetPlayerWeapon(playerid);
- new GunAmmo = GetPlayerAmmo(playerid);
- if(GunID > 0 && GunAmmo != 0)
- {
- new f = MAX_OBJ+1;
- for(new a = 0; a < MAX_OBJ; a++)
- {
- if(dGunData[a][ObjPos][0] == 0.0)
- {
- f = a;
- break;
- }
- }
- if(f > MAX_OBJ) return SendClientMessage(playerid, COLOR_LIGHTRED, "You can not drop your gun at the moment. (max limit exceeded)");
- RemovePlayerWeapon(playerid, GunID);
- dGunData[f][ObjData][0] = GunID;
- dGunData[f][ObjData][1] = GunAmmo;
- dGunData[f][ObjInt] = interior;
- dGunData[f][ObjWorld] = world;
- GetPlayerPos(playerid, dGunData[f][ObjPos][0], dGunData[f][ObjPos][1], dGunData[f][ObjPos][2]);
- dGunData[f][ObjID] = CreateDynamicObject(GunObjects[GunID], dGunData[f][ObjPos][0], dGunData[f][ObjPos][1], dGunData[f][ObjPos][2]-1, 93.7, 120.0, 120.0, world, interior, -1, 200.0, 0.0);
- new buffer[50];
- format(buffer, sizeof(buffer), "You threw your %s on the ground.", GunNames[dGunData[f][ObjData][0]]);
- SendClientMessage(playerid, -1, buffer);
- // Logging bans
- new dropgunstring[256];
- new Hour, Minute, Second;
- gettime(Hour, Minute, Second);
- format(dropgunstring, sizeof(dropgunstring), "[%d:%d:%d] %s threw his %s on the ground.", Hour, Minute, Second, GetName(playerid), GunNames[dGunData[f][ObjData][0]]);
- DropGunLog(dropgunstring);
- // -------------------------------------------------------
- }
- return 1;
- }
- Detective System
- CMD:attachwiretape(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] == Detective)
- {
- new id, string[360], Float:X, Float:Y, Float:Z;
- if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_GREY, "Usage: /attachwiretape [playerid/partofname]");
- if(id == playerid) {
- SendClientMessage(playerid, COLOR_GREY, "You can't use this command on yourself.");
- }
- else if(IsPlayerInRangeOfPoint(playerid, 5.0, X, Y, Z)) {
- SendClientMessage(playerid, COLOR_GREY, "Target is too far.");
- }
- else if(!IsPlayerConnected(id)) {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- else if(wiretapeattached[playerid] == 1) {
- SendClientMessage(playerid, COLOR_GREY, "You have already attached your maximum wiretapes on someone else");
- }
- else if(wiretapeattachedon[playerid] == id) {
- SendClientMessage(playerid, COLOR_GREY, "You already have a wiretape attached on the same person");
- }
- format(string, sizeof(string), "You have attached a wiretape on %s. You are now hearing everything they say.", GetName(id));
- SendClientMessage(playerid, COLOR_GRAD2, string);
- wiretapeattached[playerid] = 1;
- wiretapeattachedon[playerid] = id;
- haswiretapeattached[id] = 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, "You're not a detective.");
- }
- return 1;
- }
- CMD:rcvehicle(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] == Detective)
- {
- new vid, Float: fVehPos[4];
- if(sscanf(params, "i", vid)) return SendClientMessage(playerid, COLOR_GREY, "Usage: /rcvehicle [vehicle]");
- if(hasrcveh[playerid] == 1) {
- SendClientMessage(playerid, COLOR_GREY, "You have already spawned an RC vehicle. /controlrc to control it.");
- }
- if(vid == 441 || vid == 464 || vid == 465 || vid == 501 || vid == 564 || vid == 594)
- {
- hasrcveh[playerid] = 1;
- GetPlayerPos(playerid, fVehPos[0], fVehPos[1], fVehPos[2]);
- GetPlayerFacingAngle(playerid, fVehPos[3]);
- rcvid[playerid] = CreateVehicle(vid, fVehPos[0], fVehPos[1], fVehPos[2], fVehPos[3], 0, 0, -1, 1);
- SendClientMessage(playerid, COLOR_GREY, "You have spawned an RC vehicle.");
- }
- else return SendClientMessage(playerid, COLOR_GREY, "Vehicle must be a valid RC vehicle[441, 464, 465, 501, 564, 594]");
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, "You're not a detective.");
- }
- return 1;
- }
- Examine System (emotions, appearance, weight, height, sickness, etc)
- CMD:examine(playerid, params[])
- {
- new string[1024], szTitle[MAX_PLAYER_NAME+9], targetid, pemotion[64], pmakeup[64], peyecolor[64], pweight[64], pheight[64], phair[64], phaircolor[64], pclothes[64];
- if(sscanf(params, "u", targetid)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /examine [player]");
- if(!IsPlayerConnected(targetid)) return SendClientMessageEx(playerid, COLOR_GRAD1, "Invalid player specified.");
- if(!ProxDetectorS(8.0, playerid, targetid)) return SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- format(szTitle, sizeof(szTitle), "{FFD700}%s", GetPlayerNameEx(targetid));
- SendClientMessageEx(playerid, COLOR_WHITE, szTitle);
- format(pemotion,sizeof(pemotion),"Appears to be in a {FFD700}%s mood", PlayerLooks[targetid][pEmotion]);
- SendClientMessageEx(playerid, COLOR_WHITE, pemotion);
- format(pmakeup,sizeof(pmakeup),"Is wearing {FFD700}%s on them", PlayerLooks[targetid][pMakeup]);
- SendClientMessageEx(playerid, COLOR_WHITE, pmakeup);
- format(peyecolor,sizeof(peyecolor),"Their eyes appear to be {FFD700}%s", PlayerLooks[targetid][pEyeColor]);
- SendClientMessageEx(playerid, COLOR_WHITE, peyecolor);
- format(pheight, sizeof(pheight), "They're {FFD700}%s ft tall", PlayerLooks[targetid][pHeight]);
- SendClientMessageEx(playerid, COLOR_WHITE, pheight);
- format(phair,sizeof(phair),"Their hair is {FFD700}%s", PlayerLooks[targetid][pHair]);
- SendClientMessageEx(playerid, COLOR_WHITE, phair);
- format(phaircolor,sizeof(phaircolor),"The colour of their hair is {FFD700}%s", PlayerLooks[targetid][pHairColor]);
- SendClientMessageEx(playerid, COLOR_WHITE, phaircolor);
- format(pclothes,sizeof(pclothes),"They appear to be wearing {FFD700}%s", PlayerLooks[targetid][pCStyle]);
- SendClientMessageEx(playerid, COLOR_WHITE, pclothes);
- if(PlayerInfo[targetid][pDrunk] == 5)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "This player is also drunk!");
- }
- if(PlayerStoned[targetid] > 3)
- {
- SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "This player is also high!");
- }
- if(PlayerLooks[targetid][pWeight] > 40)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "This player is overweight!");
- }
- if(PlayerLooks[targetid][pWeight] < 40)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "This player is in normal shape!");
- }
- if(PlayerLooks[targetid][pWeight] == 40)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "This player is in normal shape!");
- }
- if(PlayerInfo[targetid][pMuscles] > 40)
- {
- SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "This player appears to be muscular");
- }
- if(PlayerInfo[targetid][pMuscles] == 40)
- {
- SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "This player appears to be muscular");
- }
- if(PlayerInfo[targetid][pMuscles] < 40)
- {
- SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "This player appears to be weak");
- }
- if(PlayerInfo[targetid][pHyge] > 50)
- {
- SendClientMessage(playerid, COLOR_WHITE, "This player smells good!");
- }
- if(PlayerInfo[targetid][pHyge] == 50)
- {
- SendClientMessage(playerid, COLOR_WHITE, "This player smells good!");
- }
- if(PlayerInfo[targetid][pHyge] < 50)
- {
- SendClientMessage(playerid, COLOR_WHITE, "This player smells bad!");
- }
- if(PlayerInfo[targetid][pHunger] == 20)
- {
- SendClientMessage(playerid, COLOR_RED, "This player is hungry!");
- }
- if(PlayerInfo[targetid][pHunger] < 20)
- {
- SendClientMessage(playerid, COLOR_RED, "This player is hungry!");
- }
- if(PlayerInfo[targetid][pCold] == 1)
- {
- SendClientMessage(playerid, COLOR_NG, "This player is sick!");
- }
- if(PlayerInfo[targetid][pPreg] > 0)
- {
- SendClientMessage(playerid, COLOR_PINK, "This player is pregnant!");
- }
- return 1;
- }
- Baby System
- pBabyPiss,
- pBabyDiperUsed,
- pBabyDiper,
- pBabyCrib,
- pBabyCare,
- pBabySleep,
- pBabyBladder,
- pChildSupport,
- pBabyHunger,
- pBBaby,
- pBabyCar,
- pBabySeat,
- pCarryBaby,
- pLaborDays,
- pBaby,
- Books System
- pDetectiveBook,
- pLawyerBook,
- pWhoreBook,
- pDrugDealerBook,
- pTruckerBook,
- pArmsDealerBook,
Advertisement
Add Comment
Please, Sign In to add comment