#include <a_samp>
#include <a_sampdb>
#include <mysql>
#include <a_http>
#include <required/crashdetect>
#include <required/streamer>
#include <progress>
#include <required/zcmd>
#include <required/sscanf2>
#include <required/explode>
#include <required/fuckCleo>
#include <required/SII>
#include <required/formatex>
#include <required/uf>
#include <required/fixes>
#include <required/acuf>
#include <required/OPA>
#include <required/dldialog>
#include <required/anti_flood>
#include <cnr/cnr_defines>
#include <cnr/cnr_mysqlFunctions>
#include <required/cnr_mysqlresponse>
#include <cnr/cnr_robberyCheckpoints>
#include <cnr/cnr_anticheat>
#include <cnr/cnr_dynamiccps>
#include <cnr/cnr_textdraws>
#include <cnr/cnr_zones>
#include <cnr/cnr_functions>
#include <cnr/cnr_houses>
#include <cnr/cnr_admincommands>
#include <cnr/cnr_policecommands>
#include <cnr/cnr_commands>
#include <cnr/cnr_jail>
#include <cnr/cnr_businesses>
#include <cnr/cnr_animations>
#include <cnr/cnr_courier>
#include <cnr/cnr_courier>
#include <cnr/cnr_gangs>
#include <cnr/cnr_trucking>
#include <cnr/cnr_newMissions>
#include <cnr/cnr_toys>
#include <cnr/cnr_vehicles>
#include <cnr/cnr_dealership>
#include <cnr/vehicle_system>
#include <cnr/cnr_dialogresponse>
#include <cnr/cnr_explosives>
#include <cnr/cnr_moneybag>
#include <cnr/cnr_roadblocks>
#include <cnr/cnr_gates>
#include <cnr/cnr_factionzones>
#include <cnr/cnr_dmevent>
#include <cnr/cnr_medic>
#include <cnr/cnr_glassevent>
#include <cnr/cnr_profiles>
#include <cnr/cnr_vehicleAC>
main()
{
print("\n-----------------------------------");
print("CNRSF (v2.17) PinEvil Loaded");
print("------------------------------------\n");
}
public OnGameModeInit()
{
profileStuff();
connection = mysql_init(LOG_ONLY_ERRORS, 1);
mysql_connect("", "", "", "", connection, 1);
// Databases
//VEHICLEDB = db_open("dbs/Vehicles.db");
HOUSEDB = db_open("dbs/Houses.db");
GATESDB = db_open("dbs/Gates.db");
VEHICLESDB = db_open("dbs/newvehicles.db");
SetGameModeText("Cops and Robbers");
SendRconCommand("mapname San Fierro");
// Skydive Pickup
pickup_chute = CreatePickup(371, 1, -1813.0156, 576.6133, 234.8906, 0);
// Secret Service Pickup
pickup_ss = CreatePickup(371, 1, -1737.6863, 787.3431, 167.6535, 0);
// VIP Health Pickup (for all VIPs)
pickup_vhealth = CreatePickup(1240, 1, 1208.5283, -6.4214, 1001.3281, 80);
// VIP Armour Pickup (for crim/top VIPs)
pickup_varmour = CreatePickup(1242, 1, 1217.9944, -6.6420, 1001.3281, 80);
// Stop stunt rewards
EnableStuntBonusForAll(0);
// Use standard CJ anims
UsePlayerPedAnims();
// Disable the default interior yellow markers for enter/exit
DisableInteriorEnterExits();
// Place robbery checkpoints all around the map
placeAllCheckpoints();
// Place the class vehicles all around the map
placeAllClassCars();
placeExtraCars();
// Add the custom objects
addWorldObjects();
// Textdraws
buildTextDraws();
// Houses
load_houses();
// Gates
load_gates();
// Businesses
//load_businesses();
// Vehicles
//load_oVehicles();
Load_Vehicles();
// Zones
load_zones();
// Flush gangs
flushGangs();
// Flush explosives
flushExplosiveData();
// Set server weather
SetWeather(4);
// Timers
SetTimer("countMuteTime", 1000, true);
SetTimer("countRobTime", 1000, true);
SetTimer("highPing", 2000, true);
SetTimer("armourCheck", 5000, true); // also caters for DM arena checks
SetTimer("checkJetpack", 2000, true);
SetTimer("gameTip", 600000, true);
SetTimer("vipCheck", 300000, true);
SetTimer("Zones_Update", 1000, true);
SetTimer("classCheck", 10000, true);
SetTimer("autoMoneyBag", 1200000, true);
SetTimer("swapMOTD", 300000, true);
for(new i = 0; i < MAX_PLAYERS; i++)
{
Zones[i] = TextDrawCreate(86.000000, 320.000000, "_");
TextDrawBackgroundColor(Zones[i], 255);
TextDrawFont(Zones[i], 1);
TextDrawLetterSize(Zones[i], 0.300000, 1.200000);
TextDrawColor(Zones[i], -1);
TextDrawSetOutline(Zones[i], 0);
TextDrawSetProportional(Zones[i], 1);
TextDrawSetShadow(Zones[i], 1);
TextDrawUseBox(Zones[i], 0);
TextDrawAlignment(Zones[i], 2);
}
alog[1] = " ";
alog[2] = " ";
alog[3] = " ";
alog[4] = " ";
alog[5] = " ";
new
motd1[128] = "~y~Welcome to .:WCAR:.",
motd2[128] = "~y~If you need help use /ask!",
motd3[128] = "~y~Want benefits and much more? check out ~g~/vipfeatures!"
;
serverInfo[MOTD1] = motd1;
serverInfo[MOTD2] = motd2;
serverInfo[MOTD3] = motd3;
serverInfo[enableMOTD] = true;
SetTimer("swapMOTD", 10000, false);
drawGamemodeInitTextdraws();
serverInfo[maxPing] = 1024;
serverInfo[kickWarp] = 1;
N11 = 11 * 60;
gtime = N11 + 59;
serverInfo[jailblown] = 0;
serverInfo[moneybagid] = 1;
serverInfo[rfAnticheat] = 1;
serverInfo[abAnticheat] = 0;
serverInfo[carAnticheat] = 1;
serverInfo[cbAnticheat] = 0; // ANTICBUG DISABLED IF THIS IS SET TO 0
// Set up several player classes
AddPlayerClass(25, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 0 = Civilian
AddPlayerClass(124, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 1 = Civilian
AddPlayerClass(190, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 2 = Civilian
AddPlayerClass(191, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 3 = Civilian
AddPlayerClass(185, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 4 = Civilian
AddPlayerClass(13, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 5 = Civilian
AddPlayerClass(18, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 6 = Civilian
AddPlayerClass(45, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 7 = Civilian
AddPlayerClass(66, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 8 = Civilian
AddPlayerClass(106, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 9 = Civilian
AddPlayerClass(242, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 10 = Civilian
AddPlayerClass(261, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 11 = Civilian
AddPlayerClass(271, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 12 = Civilian
AddPlayerClass(293, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 13 = Civilian
AddPlayerClass(296, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 14 = Civilian
AddPlayerClass(12, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 15 = Civilian
AddPlayerClass(13, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 16 = Civilian
AddPlayerClass(31, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 17 = Civilian
AddPlayerClass(41, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 18 = Civilian
AddPlayerClass(92, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 19 = Civilian
AddPlayerClass(105, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 20 = Civilian
AddPlayerClass(106, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 21 = Civilian
AddPlayerClass(107, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 22 = Civilian
AddPlayerClass(108, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 23 = Civilian
|