Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Credits:
- All credits for the include files are going to their respectful owners.
- Scripting: Me(ZackBoolaro)
- Mapping: Me(ZackBoolaro)
- Testing: Me(ZackBoolaro)
- */
- /*
- TESTED FOR BUGS
- BUG RESULTS: NO BUGS !!!
- */
- #include <a_samp>
- #include <zcmd>
- #include <streamer>
- #include <sscanf2>
- #include <YSI/y_ini>
- #include <foreach>
- #define version "v1.1.059" /* Change whenever you compile it !
- The last three numbers are the times that you have compiled the script) */
- #undef MAX_PLAYERS //Undefining the max players set in config.cfg so we can define them below
- #define MAX_PLAYERS 500 //Defining the max player able to login(play) to(on) the server
- //Variables for the spectating system
- new String[128], Float:SpecX[MAX_PLAYERS], Float:SpecY[MAX_PLAYERS], Float:SpecZ[MAX_PLAYERS], vWorld[MAX_PLAYERS], Inter[MAX_PLAYERS];
- new IsSpecing[MAX_PLAYERS], Name[MAX_PLAYER_NAME], IsBeingSpeced[MAX_PLAYERS],spectatorid[MAX_PLAYERS];
- //Spawn Protection
- forward SpawnProtection(playerid);
- //Textdraws
- new Text:Textdraw0;
- new Text:Textdraw1;
- new Text:Textdraw2;
- //Drive by system
- new uberhaxeddbweps[] =
- {24, 25, 26};
- new smgs[] =
- {29, 28, 32};
- //Register System Dialogs
- #define DIALOG_REGISTER 1
- #define DIALOG_LOGIN 2
- #define DIALOG_SUCCESS_1 3
- #define DIALOG_SUCCESS_2 4
- //Colors
- #define COL GREEN2 "{33CC00}"
- #define COL_WHITE "{FFFFFF}"
- #define COL_BLUE2 "{00AEFF}"
- #define COL_YELLOW "{FFF600}"
- #define COL_LIME "{BFFF00}"
- #define COL_KRED "{940000}"
- #define COL_GREEN2 "{33CC00}"
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_SYSTEM 0xEFEFF7AA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_BRIGHTRED 0xFF0000AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_PINK 0xFF66FFAA
- #define COLOR_BLUE 0x3A47DEFF
- #define COLOR_TAN 0xBDB76BAA
- #define COLOR_PURPLE 0x800080AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_INDIGO 0x4B00B0AA
- #define COLOR_BLACK 0x00000000
- #define COLOR_DARKGREY 0x696969FF
- #define COLOR_LIME 0x88AA62FF
- #define COLOR_FADE1 0xFFFFFFFF
- #define COLOR_FADE2 0xC8C8C8C8
- #define COLOR_FADE3 0xAAAAAAAA
- #define COLOR_FADE4 0x8C8C8C8C
- #define COLOR_FADE5 0x6E6E6E6E
- #define COLOR_GREY 0xB4B5B7FF
- new pTeam[MAX_PLAYERS];
- #define team_lspd 1
- #define team_balla 2
- #define team_groove 3
- #define team_civ 4
- #define team_aztecas 5
- #define team_vagos 6
- #define team_army 7
- #define team_mafia 8
- #define INI_Exists(%0) fexist(%0)
- #define DIALOG_REGISTER 1
- #define DIALOG_LOGIN 2
- #define USER_FILE "BigFlashGaming/Registered/%s.ini"
- //"Forwards"
- forward ScoreUpdate();
- forward PayDay(playerid);
- forward PlayerPlayMusic(playerid);
- forward StopMusic();
- forward GetVehicleModelIDFromName(vname[]);
- enum pInfo
- {
- pPassword[129],
- pKills,
- pDeaths,
- pAdmin,
- pMoney,
- pScore,
- pVIP,
- pOnline,
- pLevel,
- pExp,
- pAllowed_To_Use,
- pDM, //New DM arena system
- bool:pCanSpawnVehicle,
- pSpawnVehicle
- }
- new PlayerInfo[MAX_PLAYERS][pInfo];
- new Float:pX, Float:pY, Float:pZ, Float:pAngle;
- native WP_Hash(buffer[], len, const str[]);
- forward LoadUserData(playerid, name[], value[]);
- new ScoreOld;
- new levelexp = 1;
- new VehicleNames[212][] = {
- {"Landstalker"},{"Bravura"},{"Buffalo"},{"Linerunner"},{"Perrenial"},{"Sentinel"},{"Dumper"},
- {"Firetruck"},{"Trashmaster"},{"Stretch"},{"Manana"},{"Infernus"},{"Voodoo"},{"Pony"},{"Mule"},
- {"Cheetah"},{"Ambulance"},{"Leviathan"},{"Moonbeam"},{"Esperanto"},{"Taxi"},{"Washington"},
- {"Bobcat"},{"Mr Whoopee"},{"BF Injection"},{"Hunter"},{"Premier"},{"Enforcer"},{"Securicar"},
- {"Banshee"},{"Predator"},{"Bus"},{"Rhino"},{"Barracks"},{"Hotknife"},{"Trailer 1"},{"Previon"},
- {"Coach"},{"Cabbie"},{"Stallion"},{"Rumpo"},{"RC Bandit"},{"Romero"},{"Packer"},{"Monster"},
- {"Admiral"},{"Squalo"},{"Seasparrow"},{"Pizzaboy"},{"Tram"},{"Trailer 2"},{"Turismo"},
- {"Speeder"},{"Reefer"},{"Tropic"},{"Flatbed"},{"Yankee"},{"Caddy"},{"Solair"},{"Berkley's RC Van"},
- {"Skimmer"},{"PCJ-600"},{"Faggio"},{"Freeway"},{"RC Baron"},{"RC Raider"},{"Glendale"},{"Oceanic"},
- {"Sanchez"},{"Sparrow"},{"Patriot"},{"Quad"},{"Coastguard"},{"Dinghy"},{"Hermes"},{"Sabre"},
- {"Rustler"},{"ZR-350"},{"Walton"},{"Regina"},{"Comet"},{"BMX"},{"Burrito"},{"Camper"},{"Marquis"},
- {"Baggage"},{"Dozer"},{"Maverick"},{"News Chopper"},{"Rancher"},{"FBI Rancher"},{"Virgo"},{"Greenwood"},
- {"Jetmax"},{"Hotring"},{"Sandking"},{"Blista Compact"},{"Police Maverick"},{"Boxville"},{"Benson"},
- {"Mesa"},{"RC Goblin"},{"Hotring Racer A"},{"Hotring Racer B"},{"Bloodring Banger"},{"Rancher"},
- {"Super GT"},{"Elegant"},{"Journey"},{"Bike"},{"Mountain Bike"},{"Beagle"},{"Cropdust"},{"Stunt"},
- {"Tanker"}, {"Roadtrain"},{"Nebula"},{"Majestic"},{"Buccaneer"},{"Shamal"},{"Hydra"},{"FCR-900"},
- {"NRG-500"},{"HPV1000"},{"Cement Truck"},{"Tow Truck"},{"Fortune"},{"Cadrona"},{"FBI Truck"},
- {"Willard"},{"Forklift"},{"Tractor"},{"Combine"},{"Feltzer"},{"Remington"},{"Slamvan"},
- {"Blade"},{"Freight"},{"Streak"},{"Vortex"},{"Vincent"},{"Bullet"},{"Clover"},{"Sadler"},
- {"Firetruck LA"},{"Hustler"},{"Intruder"},{"Primo"},{"Cargobob"},{"Tampa"},{"Sunrise"},{"Merit"},
- {"Utility"},{"Nevada"},{"Yosemite"},{"Windsor"},{"Monster A"},{"Monster B"},{"Uranus"},{"Jester"},
- {"Sultan"},{"Stratum"},{"Elegy"},{"Raindance"},{"RC Tiger"},{"Flash"},{"Tahoma"},{"Savanna"},
- {"Bandito"},{"Freight Flat"},{"Streak Carriage"},{"Kart"},{"Mower"},{"Duneride"},{"Sweeper"},
- {"Broadway"},{"Tornado"},{"AT-400"},{"DFT-30"},{"Huntley"},{"Stafford"},{"BF-400"},{"Newsvan"},
- {"Tug"},{"Trailer 3"},{"Emperor"},{"Wayfarer"},{"Euros"},{"Hotdog"},{"Club"},{"Freight Carriage"},
- {"Trailer 3"},{"Andromada"},{"Dodo"},{"RC Cam"},{"Launch"},{"Police Car (LSPD)"},{"Police Car (SFPD)"},
- {"Police Car (LVPD)"},{"Police Ranger"},{"Picador"},{"S.W.A.T. Van"},{"Alpha"},{"Phoenix"},{"Glendale"},
- {"Sadler"},{"Luggage Trailer A"},{"Luggage Trailer B"},{"Stair Trailer"},{"Boxville"},{"Farm Plow"},
- {"Utility Trailer"}};
- public LoadUserData(playerid, name[], value[])
- {
- INI_String("Password", PlayerInfo[playerid][pPassword], 129);
- INI_Int("Admin", PlayerInfo[playerid][pAdmin]);
- INI_Int("VIP", PlayerInfo[playerid][pVIP]);
- INI_Int("Money", PlayerInfo[playerid][pMoney]);
- INI_Int("Score", PlayerInfo[playerid][pScore]);
- INI_Int("Kills", PlayerInfo[playerid][pKills]);
- INI_Int("Deaths", PlayerInfo[playerid][pDeaths]);
- INI_Int("Online", PlayerInfo[playerid][pOnline]);
- INI_Int("Level",PlayerInfo[playerid][pLevel]);
- INI_Int("Exp",PlayerInfo[playerid][pExp]);
- INI_Int("WRestricted",PlayerInfo[playerid][pAllowed_To_Use]);
- INI_Int("IsInDMArena",PlayerInfo[playerid][pDM]);
- INI_Int("SpawnVehicle",PlayerInfo[playerid][pSpawnVehicle]);
- return 1;
- }
- OnPlayerRegister(playerid, password[])
- {
- new
- hashPassword[129],
- uFile[35];
- format(uFile, 35, USER_FILE, GetName(playerid));
- new
- INI:playerFile = INI_Open(uFile);
- WP_Hash(hashPassword, 129, password);
- INI_WriteString(playerFile, "Password", hashPassword);
- INI_WriteInt(playerFile, "Admin", 0);
- INI_WriteInt(playerFile, "VIP", 0);
- INI_WriteInt(playerFile, "Money", 2000);
- INI_WriteInt(playerFile, "Score", 0);
- INI_WriteInt(playerFile, "Kills", 0);
- INI_WriteInt(playerFile, "Deaths", 0);
- INI_WriteInt(playerFile, "Online", 0);
- INI_WriteInt(playerFile, "Level", 0);
- INI_WriteInt(playerFile, "Exp", 0);
- INI_WriteInt(playerFile, "WRestricted", 0);
- INI_WriteInt(playerFile, "IsInDMArena", 0);
- INI_WriteInt(playerFile, "SpawnVehicle", 0);
- INI_Close(playerFile);
- SetPVarInt(playerid, "Registered", 1);
- SetPVarInt(playerid, "Logged", 1);
- return 1;
- }
- OnPlayerLogin(playerid, password[])
- {
- new
- hashPassword[129],
- uFile[35];
- format(uFile, 35, USER_FILE, GetName(playerid));
- INI_ParseFile(uFile, "LoadUserData", .bExtra = true, .extra = playerid);
- WP_Hash(hashPassword, 129, password);
- if(strcmp(PlayerInfo[playerid][pPassword], hashPassword, true))
- {
- SetPVarInt(playerid, "Logged", 1);
- }
- return 1;
- }
- OnPlayerLogout(playerid)
- {
- new
- uFile[35];
- format(uFile, 35, USER_FILE, GetName(playerid));
- new
- INI:playerFile = INI_Open(uFile);
- INI_WriteInt(playerFile, "Admin", PlayerInfo[playerid][pAdmin]);
- INI_WriteInt(playerFile,"VIP", PlayerInfo[playerid][pVIP]);
- INI_WriteInt(playerFile,"Money", GetPlayerMoney(playerid));
- INI_WriteInt(playerFile,"Score", GetPlayerScore(playerid));
- INI_WriteInt(playerFile,"Kills", PlayerInfo[playerid][pKills]);
- INI_WriteInt(playerFile,"Deaths", PlayerInfo[playerid][pDeaths]);
- INI_WriteInt(playerFile,"Online", PlayerInfo[playerid][pOnline]);
- INI_WriteInt(playerFile,"Level",PlayerInfo[playerid][pLevel]);
- INI_WriteInt(playerFile,"Exp",PlayerInfo[playerid][pExp]);
- INI_WriteInt(playerFile,"WRestricted",PlayerInfo[playerid][pAllowed_To_Use]);
- INI_WriteInt(playerFile,"IsInDMArena",PlayerInfo[playerid][pDM]);
- INI_WriteInt(playerFile,"SpawnVehicle",PlayerInfo[playerid][pSpawnVehicle]);
- INI_Close(playerFile);
- return 1;
- }
- forward Online();
- public Online()
- {
- foreach (Player, i)
- {
- PlayerInfo[i][pOnline] += 1;
- }
- return 1;
- }
- stock GetName(playerid)
- {
- new
- pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
- return pName;
- }
- main()
- {
- print("\n----------------------------------");
- print("______ Team Wars by ZackBoolaro(Zack_Martines) ______");
- print("----------------------------------\n");
- }
- public OnGameModeInit()
- {
- SetGameModeText("TeamWars V1");
- UsePlayerPedAnims();
- AddPlayerClass(188,2342.3667,-1410.1563,23.8190,356.0515,27,10000,0,0,0,0);
- AddStaticVehicle(412,2708.3896,-1078.7310,69.2530,269.9885,29,8); // aztecas car 1
- AddStaticVehicle(412,2700.3889,-1078.7593,69.1932,270.1381,37,8); // aztecas car 2
- AddStaticVehicle(412,2692.4985,-1078.8114,69.1412,270.3337,10,8); // aztecas car 3
- AddStaticVehicle(412,2684.4832,-1078.7067,69.1333,270.3390,25,8); // aztecas car 4
- AddStaticVehicle(412,2676.5527,-1078.8163,69.1358,270.4381,29,8); // aztecas car 5
- AddStaticVehicle(412,2668.6731,-1078.6996,69.2390,269.4294,37,8); // aztecas car 6
- AddStaticVehicle(412,2660.8250,-1078.6937,69.3908,270.4018,10,8); // aztecas car 7
- AddStaticVehicle(492,2508.0024,-1671.7793,13.1602,167.7555,24,55); // groove car 1
- AddStaticVehicle(492,2502.8662,-1680.0143,13.1579,129.3550,49,59); // groove car 2
- AddStaticVehicle(492,2492.1992,-1682.8428,13.1192,89.7918,71,107); // groove car 3
- AddStaticVehicle(492,2480.9858,-1682.2529,13.1136,78.4462,77,26); // groove car 4
- AddStaticVehicle(492,2479.6367,-1655.2382,13.1008,270.0910,24,55); // groove car 5
- AddStaticVehicle(492,2498.2615,-1655.6814,13.1767,258.8107,49,59); // groove car 6
- AddStaticVehicle(517,2348.2312,-1398.9740,23.7538,359.7301,51,72); // balla car 1
- AddStaticVehicle(517,2348.2405,-1406.7755,23.7559,359.7607,55,84); // balla car 2
- AddStaticVehicle(517,2348.0752,-1414.5280,23.7611,358.5140,36,36); // balla car 3
- AddStaticVehicle(517,2348.0347,-1421.9746,23.7646,359.1602,43,41); // balla car 4
- AddStaticVehicle(517,2348.1343,-1429.8129,23.7647,0.4395,51,72); // balla car 5
- AddStaticVehicle(517,2348.1306,-1437.8583,23.7647,359.1113,55,84); // balla car 6
- AddStaticVehicle(576,2359.2971,-1162.4626,27.1860,269.6276,75,96); // vagos car 1
- AddStaticVehicle(576,2352.4233,-1162.3909,27.0320,269.3164,79,1); // vagos car 2
- AddStaticVehicle(576,2345.7139,-1162.3087,26.8795,269.3735,67,1); // vagos car 3
- AddStaticVehicle(576,2339.2646,-1162.3069,26.7320,269.5419,72,1); // vagos car 4
- AddStaticVehicle(576,2332.5952,-1162.3176,26.6006,269.4251,75,96); // vagos car 5
- AddStaticVehicle(576,2325.9224,-1162.0173,26.5887,264.3307,79,1); // vagos car 6
- AddStaticVehicle(596,1536.3380,-1678.5457,13.1041,359.3814,0,1); // cop car 1
- AddStaticVehicle(596,1536.3397,-1672.6353,13.1068,359.6864,0,1); // cop car 2
- AddStaticVehicle(596,1536.3688,-1666.5757,13.1032,359.6729,0,1); // cop car 3
- AddStaticVehicle(596,1523.7937,-1684.2811,13.1828,359.7524,0,1); // cop car 4
- AddStaticVehicle(596,1523.7949,-1671.0313,13.1815,1.6419,0,1); // cop car 5
- AddStaticVehicle(596,1523.8750,-1677.5562,13.1910,359.5335,0,1); // cop car 6
- CreateObject(12814,586.90002441,-3097.80004883,53.50000000,0.00000000,0.00000000,0.00000000); //object(cuntyeland04) (1)
- CreateObject(987,601.70001221,-3073.10009766,53.50000000,0.00000000,0.00000000,180.00000000); //object(elecfence_bar) (2)
- CreateObject(987,589.70001221,-3073.00000000,53.50000000,0.00000000,0.00000000,179.99450684); //object(elecfence_bar) (3)
- CreateObject(987,583.90002441,-3073.00000000,53.50000000,0.00000000,0.00000000,179.99450684); //object(elecfence_bar) (4)
- CreateObject(987,572.09997559,-3072.80004883,53.50000000,0.00000000,0.00000000,270.00000000); //object(elecfence_bar) (5)
- CreateObject(987,572.09997559,-3084.80004883,53.50000000,0.00000000,0.00000000,269.99450684); //object(elecfence_bar) (6)
- CreateObject(987,572.09997559,-3096.80004883,53.50000000,0.00000000,0.00000000,269.99450684); //object(elecfence_bar) (7)
- CreateObject(987,572.20001221,-3108.80004883,53.50000000,0.00000000,0.00000000,269.99450684); //object(elecfence_bar) (8)
- CreateObject(987,572.20001221,-3110.80004883,53.50000000,0.00000000,0.00000000,269.99450684); //object(elecfence_bar) (9)
- CreateObject(987,601.59997559,-3085.10009766,53.50000000,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (10)
- CreateObject(987,601.50000000,-3096.89990234,53.50000000,0.00000000,0.00000000,89.99450684); //object(elecfence_bar) (11)
- CreateObject(987,601.59997559,-3108.89990234,53.50000000,0.00000000,0.00000000,89.99450684); //object(elecfence_bar) (12)
- CreateObject(987,601.59997559,-3120.80004883,53.50000000,0.00000000,0.00000000,89.99450684); //object(elecfence_bar) (13)
- CreateObject(987,601.79998779,-3122.80004883,53.50000000,0.00000000,0.00000000,89.99450684); //object(elecfence_bar) (14)
- CreateObject(987,589.90002441,-3122.50000000,53.50000000,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (15)
- CreateObject(987,577.90002441,-3122.50000000,53.50000000,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (16)
- CreateObject(987,571.90002441,-3122.50000000,53.50000000,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (17)
- CreateObject(1685,593.09997559,-3082.10009766,54.29999924,0.00000000,0.00000000,0.00000000); //object(blockpallet) (1)
- CreateObject(1685,583.40002441,-3102.39990234,54.29999924,0.00000000,0.00000000,0.00000000); //object(blockpallet) (2)
- CreateObject(1685,576.59997559,-3090.80004883,54.29999924,0.00000000,0.00000000,0.00000000); //object(blockpallet) (3)
- CreateObject(1685,598.59997559,-3098.69995117,54.29999924,0.00000000,0.00000000,0.00000000); //object(blockpallet) (4)
- CreateObject(1685,593.29998779,-3114.89990234,54.29999924,0.00000000,0.00000000,0.00000000); //object(blockpallet) (5)
- CreateObject(1685,576.09997559,-3113.60009766,54.29999924,0.00000000,0.00000000,0.00000000); //object(blockpallet) (6)
- CreateObject(1685,577.70001221,-3079.30004883,54.29999924,0.00000000,0.00000000,0.00000000); //object(blockpallet) (7)
- AddStaticVehicleEx(413,1063.40002441,-1775.50000000,13.50000000,90.00000000,-1,-1,15); //Pony
- AddStaticVehicleEx(422,1077.69995117,-1766.69995117,13.39999962,90.00000000,-1,-1,15); //Bobcat
- AddStaticVehicleEx(554,1062.90002441,-1755.00000000,13.60000038,90.00000000,-1,-1,15); //Yosemite
- AddStaticVehicleEx(506,1097.80004883,-1752.50000000,13.19999981,90.00000000,-1,-1,15); //Super GT
- AddStaticVehicleEx(541,1097.90002441,-1772.40002441,13.10000038,90.00000000,-1,-1,15); //Bullet
- AddStaticVehicleEx(522,1098.80004883,-1763.90002441,13.00000000,90.00000000,-1,-1,15); //NRG-500
- AddStaticVehicleEx(522,1085.69995117,-1760.90002441,13.00000000,90.00000000,-1,-1,15); //NRG-500
- AddStaticVehicleEx(522,1063.19995117,-1766.50000000,13.00000000,90.00000000,-1,-1,15); //NRG-500
- AddStaticVehicleEx(522,1078.69995117,-1774.80004883,13.00000000,90.00000000,-1,-1,15); //NRG-500
- AddStaticVehicleEx(521,1062.90002441,-1749.59997559,13.00000000,90.00000000,-1,-1,15); //FCR-900
- AddStaticVehicleEx(521,1085.19995117,-1769.09997559,13.00000000,90.00000000,-1,-1,15); //FCR-900
- AddStaticVehicleEx(586,1099.00000000,-1755.30004883,13.00000000,90.00000000,-1,-1,15); //Wayfarer
- AddStaticVehicleEx(586,1064.09997559,-1737.80004883,13.00000000,90.00000000,-1,-1,15); //Wayfarer
- CreateObject(984,1065.69995117,-1777.09997559,13.00000000,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (1)
- CreateObject(984,1078.40002441,-1777.09997559,13.00000000,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (2)
- CreateObject(984,1091.19995117,-1777.09997559,13.00000000,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (3)
- CreateObject(984,1095.50000000,-1777.09997559,13.00000000,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (4)
- CreateObject(984,1101.90002441,-1770.70007324,13.00000000,0.00000000,0.00000000,0.00000000); //object(fenceshit2) (5)
- CreateObject(984,1101.90002441,-1758.00000000,13.00000000,0.00000000,0.00000000,0.00000000); //object(fenceshit2) (6)
- CreateObject(984,1059.29992676,-1770.65991211,13.00000000,0.00000000,0.00000000,0.00000000); //object(fenceshit2) (7)
- CreateObject(984,1059.29992676,-1757.90002441,13.00000000,0.00000000,0.00000000,0.00000000); //object(fenceshit2) (8)
- CreateObject(984,1059.29992676,-1745.09997559,13.00000000,0.00000000,0.00000000,0.00000000); //object(fenceshit2) (9)
- CreateObject(984,1059.30004883,-1742.30004883,13.00000000,0.00000000,0.00000000,0.00000000); //object(fenceshit2) (10)
- CreateObject(984,1065.69006348,-1735.90002441,13.00000000,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (11)
- CreateObject(984,1078.40002441,-1735.90002441,13.00000000,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (12)
- CreateObject(984,1091.19995117,-1735.90002441,13.00000000,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (13)
- CreateObject(984,1095.19995117,-1735.90002441,13.00000000,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (14)
- CreateObject(966,1101.69995117,-1736.09997559,12.60000038,0.00000000,0.00000000,92.00000000); //object(bar_gatebar01) (1)
- CreateObject(984,1101.90002441,-1749.48999023,13.00000000,0.00000000,0.00000000,0.00000000); //object(fenceshit2) (15)
- CreateObject(968,1101.70007324,-1736.00000000,13.60000038,0.00000000,0.00000000,270.00000000); //object(barrierturn) (1)
- AddStaticVehicle(415,1574.9547,-1877.7562,13.2327,270.1637,0,0); // mafia car 1
- AddStaticVehicle(415,1568.8975,-1877.8414,13.2330,269.1317,0,0); // mafia car 2
- AddStaticVehicle(415,1562.9204,-1877.8121,13.2333,269.4261,0,0); // mafia car 3
- AddStaticVehicle(415,1557.1274,-1877.8124,13.2330,268.8275,0,0); // mafia car 4
- AddStaticVehicle(470,2753.9539,-2429.8955,13.6364,358.9632,43,0); // army car 1
- AddStaticVehicle(470,2753.8162,-2436.0510,13.6404,358.0538,43,0); // army car 2
- AddStaticVehicle(470,2753.6538,-2442.0452,13.6377,358.6379,43,0); // army car 3
- AddStaticVehicle(470,2753.5771,-2448.3992,13.6376,359.8399,43,0); // army car 4
- AddStaticVehicle(470,2753.5642,-2454.8157,13.6349,359.6396,43,0); // army car 5
- AddStaticVehicle(470,2753.4824,-2460.7576,13.6347,359.6992,43,0); // army car 6
- AddStaticVehicle(470,2753.4666,-2466.8186,13.6425,359.2469,43,0); // army car 7
- AddStaticVehicle(470,2753.3992,-2472.9429,13.6414,0.4665,43,0); // army car 8
- AddStaticVehicle(425,2753.3333,-2393.4395,14.2326,236.6077,43,0); // army heli
- AddStaticVehicleEx(420,1731.90002441,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
- AddStaticVehicleEx(420,1739.09997559,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
- AddStaticVehicleEx(420,1746.09997559,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
- AddStaticVehicleEx(420,1752.80004883,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
- AddStaticVehicleEx(420,1759.59997559,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
- AddStaticVehicleEx(420,1766.09997559,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
- AddStaticVehicleEx(420,1773.09997559,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
- AddStaticVehicleEx(420,1779.80004883,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
- AddStaticVehicleEx(420,1786.50000000,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
- AddStaticVehicleEx(420,1793.30004883,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
- AddStaticVehicleEx(420,1800.00000000,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
- AddStaticVehicleEx(420,1807.00000000,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
- AddStaticVehicleEx(437,1735.09997559,-1852.40002441,13.69999981,90.00000000,-1,-1,15); //Coach
- AddStaticVehicleEx(437,1748.59997559,-1852.40002441,13.69999981,90.00000000,-1,-1,15); //Coach
- AddStaticVehicleEx(437,1761.19995117,-1852.40002441,13.69999981,90.00000000,-1,-1,15); //Coach
- AddStaticVehicleEx(437,1774.69995117,-1852.40002441,13.69999981,90.00000000,-1,-1,15); //Coach
- AddStaticVehicleEx(437,1787.50000000,-1852.40002441,13.69999981,90.00000000,-1,-1,15); //Coach
- AddStaticVehicleEx(437,1800.00000000,-1852.40002441,13.69999981,90.00000000,-1,-1,15); //Coach
- AddStaticVehicleEx(409,1492.09997559,-1737.80004883,13.30000019,90.00000000,-1,-1,15); //Stretch
- AddStaticVehicleEx(409,1480.69995117,-1737.80004883,13.30000019,90.00000000,-1,-1,15); //Stretch
- AddStaticVehicleEx(409,1469.69995117,-1737.80004883,13.30000019,90.00000000,-1,-1,15); //Stretch
- AddStaticVehicleEx(425,1978.00000000,-2458.30004883,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1964.59997559,-2457.80004883,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1950.59997559,-2457.19995117,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1935.90002441,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1922.09997559,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1908.09997559,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1893.59997559,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1879.30004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1866.00000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1852.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1839.30004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1825.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1811.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1798.00000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1783.80004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1770.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1757.00000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1743.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1729.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1716.80004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1704.00000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1689.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1675.00000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1661.00000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1647.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1634.00000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1620.80004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1607.30004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1593.80004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1580.00000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1565.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1551.30004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1537.80004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1523.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1508.80004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1495.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1481.80004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1467.80004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1453.30004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1439.30004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1425.30004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1411.80004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(425,1398.00000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(520,2065.89990234,-2619.50000000,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,2053.39990234,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,2041.40002441,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,2029.90002441,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,2018.09997559,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,2006.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1994.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1982.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1970.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1959.00000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1947.00000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1935.00000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1922.80004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1911.00000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1899.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1887.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1875.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1863.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1851.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1839.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1827.80004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1815.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1803.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1791.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1779.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1767.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1755.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1743.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1731.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1718.80004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1706.80004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1694.80004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1682.59997559,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1670.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1658.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1646.00000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1633.80004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1621.80004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1609.00000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1597.00000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1584.80004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1572.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1560.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1548.09997559,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1536.09997559,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1523.80004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1511.00000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1499.00000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1486.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1473.80004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1461.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1449.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1437.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1425.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1413.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(520,1401.00000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(596,1601.09997559,-1684.30004883,5.69999981,90.00000000,-1,1,15); //Police Car (LSPD)
- AddStaticVehicleEx(596,1601.09997559,-1688.00000000,5.69999981,90.00000000,-1,1,15); //Police Car (LSPD)
- AddStaticVehicleEx(596,1601.09997559,-1692.00000000,5.69999981,90.00000000,-1,1,15); //Police Car (LSPD)
- AddStaticVehicleEx(596,1601.09997559,-1696.30004883,5.69999981,90.00000000,-1,1,15); //Police Car (LSPD)
- AddStaticVehicleEx(596,1601.09997559,-1700.30004883,5.69999981,90.00000000,-1,1,15); //Police Car (LSPD)
- AddStaticVehicleEx(596,1601.09997559,-1704.30004883,5.69999981,90.00000000,-1,1,15); //Police Car (LSPD)
- AddStaticVehicleEx(596,1595.30004883,-1710.80004883,5.69999981,0.00000000,-1,1,15); //Police Car (LSPD)
- AddStaticVehicleEx(596,1591.30004883,-1710.69995117,5.69999981,0.00000000,-1,1,15); //Police Car (LSPD)
- AddStaticVehicleEx(596,1587.30004883,-1710.59997559,5.69999981,0.00000000,-1,1,15); //Police Car (LSPD)
- AddStaticVehicleEx(596,1583.09997559,-1710.50000000,5.69999981,0.00000000,-1,1,15); //Police Car (LSPD)
- AddStaticVehicleEx(596,1578.40002441,-1710.40002441,5.69999981,0.00000000,-1,1,15); //Police Car (LSPD)
- AddStaticVehicleEx(596,1574.19995117,-1710.30004883,5.69999981,0.00000000,-1,1,15); //Police Car (LSPD)
- AddStaticVehicleEx(596,1570.00000000,-1710.19995117,5.69999981,0.00000000,-1,1,15); //Police Car (LSPD)
- AddStaticVehicleEx(596,1559.00000000,-1709.90002441,5.69999981,0.00000000,-1,1,15); //Police Car (LSPD)
- AddStaticVehicleEx(432,1564.59997559,-1710.30004883,6.00000000,0.00000000,-1,-1,15); //Rhino
- AddStaticVehicleEx(432,2782.60009766,-2418.00000000,13.69999981,90.00000000,-1,-1,15); //Rhino
- AddStaticVehicleEx(432,2783.30004883,-2456.69995117,13.69999981,90.00000000,-1,-1,15); //Rhino
- AddStaticVehicleEx(432,2783.69995117,-2493.89990234,13.69999981,90.00000000,-1,-1,15); //Rhino
- CreateObject(984,1706.19995117,-1860.00000000,13.19999981,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (1)
- CreateObject(984,1718.90002441,-1860.00000000,13.19999981,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (2)
- CreateObject(984,1731.59997559,-1860.00000000,13.19999981,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (3)
- CreateObject(984,1744.30004883,-1860.00000000,13.19999981,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (4)
- CreateObject(984,1757.00000000,-1860.00000000,13.19999981,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (5)
- CreateObject(984,1769.80004883,-1860.00000000,13.19999981,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (6)
- CreateObject(984,1782.50000000,-1860.00000000,13.19999981,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (7)
- CreateObject(984,1795.30004883,-1860.00000000,13.19999981,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (8)
- CreateObject(984,1804.80004883,-1860.00000000,13.19999981,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (9)
- SetTimer("Online",60*1000*60,1);
- SetTimer("PayDay",360000,1);
- SetTimer("ScoreUpdate", 1000, 1);
- // Creating the textdraws:
- Textdraw0 = TextDrawCreate(3.000000, 435.000000, "www.bigflashgaming.net");
- TextDrawBackgroundColor(Textdraw0, 255);
- TextDrawFont(Textdraw0, 1);
- TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
- TextDrawColor(Textdraw0, 16777215);
- TextDrawSetOutline(Textdraw0, 0);
- TextDrawSetProportional(Textdraw0, 1);
- TextDrawSetShadow(Textdraw0, 0);
- Textdraw1 = TextDrawCreate(347.000000, 433.000000, "/tp <--- Choose where you wanna go");
- TextDrawBackgroundColor(Textdraw1, 255);
- TextDrawFont(Textdraw1, 1);
- TextDrawLetterSize(Textdraw1, 0.330000, 1.200000);
- TextDrawColor(Textdraw1, -1);
- TextDrawSetOutline(Textdraw1, 0);
- TextDrawSetProportional(Textdraw1, 1);
- TextDrawSetShadow(Textdraw1, 1);
- Textdraw2 = TextDrawCreate(480.000000, 99.000000, "Creator(SAMP Forums): ZackBoolaro");
- TextDrawBackgroundColor(Textdraw2, 255);
- TextDrawFont(Textdraw2, 1);
- TextDrawLetterSize(Textdraw2, 0.250000, 0.699999);
- TextDrawColor(Textdraw2, 255);
- TextDrawSetOutline(Textdraw2, 0);
- TextDrawSetProportional(Textdraw2, 1);
- TextDrawSetShadow(Textdraw2, 0);
- for(new i; i < MAX_PLAYERS; i ++)
- {
- if(IsPlayerConnected(i))
- {
- TextDrawShowForPlayer(i, Textdraw0);
- TextDrawShowForPlayer(i, Textdraw1);
- TextDrawShowForPlayer(i, Textdraw2);
- }
- }
- return 1;
- }
- public OnGameModeExit()
- {
- print("\n----------------------------------");
- print("______Thank you for using Team Wars by ZackBoolaro(Zack_Martines) ______");
- print("----------------------------------\n");
- TextDrawHideForAll(Textdraw0);
- TextDrawDestroy(Textdraw0);
- TextDrawHideForAll(Textdraw1);
- TextDrawDestroy(Textdraw1);
- TextDrawHideForAll(Textdraw2);
- TextDrawDestroy(Textdraw2);
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPVarInt(playerid, "Joinned", 1);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, sizeof(pname));
- format(string, sizeof(string), "%s has joined the server", pname);
- SendClientMessageToAll(COLOR_YELLOW, string);
- new naslov2[128], text[128], strText[104];
- format(strText, 35, USER_FILE, GetName(playerid));
- if(!INI_Exists(strText))
- {
- format(naslov2, sizeof(naslov2), ""COL_BLUE2" Welcome"COL_WHITE" %s!", GetName(playerid)); //formating our title, some text, colors balabalbal
- format(text, sizeof(text), ""COL_WHITE"______________________________\n\n"COL_BLUE2"Name"COL_WHITE" %s"COL_BLUE2" isn't registered!\n\nPlease register!", GetName(playerid)); //formating our text
- ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, naslov2, text, "Register", "Exit"); //showing player dialog for registering
- }
- else
- {
- format(naslov2, sizeof(naslov2), ""COL_GREEN2" Welcome"COL_WHITE" %s!", GetName(playerid)); //formating our title, some text, colors...
- format(text, sizeof(text),""COL_WHITE"______________________________\n\n"COL_GREEN2"Name"COL_WHITE" %s"COL_GREEN2" is registered!\n\nPlease login!", GetName(playerid)); //formating our text in dialog
- ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, naslov2, text, "Login", "Exit"); //showing player dialog for login
- }
- SetPVarInt(playerid, "Joinned", 1);
- PlayerInfo[playerid][pLevel] = 1;
- PlayerInfo[playerid][pExp] = 0;
- SendClientMessage(playerid, COLOR_BRIGHTRED , "Welcome to Big Flash Gaming, you have been auto setted to Civilian !");
- SendClientMessage(playerid, COLOR_BRIGHTRED , "If you want to change your team use these commands /lspd, /groove, /balla, /civilian /vagos /aztecas /army /mafia !");
- SendClientMessage(playerid, COLOR_BRIGHTRED , "Be sure to read /rules so you don't end up BANNED !");
- TextDrawShowForPlayer(playerid, Textdraw0);
- TextDrawShowForPlayer(playerid, Textdraw1);
- TextDrawShowForPlayer(playerid, Textdraw2);
- PlayerInfo[playerid][pCanSpawnVehicle] = true;
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- OnPlayerLogout(playerid);
- if(IsBeingSpeced[playerid] == 1)
- {
- foreach(Player,i)
- {
- if(spectatorid[i] == playerid)
- {
- TogglePlayerSpectating(i,false);
- }
- }
- }
- new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, sizeof(pname));
- switch(reason)
- {
- case 0: format(string, sizeof(string), "%s has left the server. (Lost Connection/Crashed)", pname);
- case 1: format(string, sizeof(string), "%s has left the server. (Leaving)", pname);
- case 2: format(string, sizeof(string), "%s has left the server. (Kicked)", pname);
- }
- SendClientMessageToAll(COLOR_YELLOW, string);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- SetPlayerHealth(playerid,99999);
- SetTimerEx("SpawnProtection",5000,0,"i",playerid);
- if(IsSpecing[playerid] == 1)
- {
- SetPlayerPos(playerid,SpecX[playerid],SpecY[playerid],SpecZ[playerid]);
- SetPlayerInterior(playerid,Inter[playerid]);
- SetPlayerVirtualWorld(playerid,vWorld[playerid]);
- IsSpecing[playerid] = 0;
- IsBeingSpeced[spectatorid[playerid]] = 0;
- }
- if(GetPVarInt(playerid, "Joinned") == 1)
- {
- GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]); //setting player money from file
- SetPlayerScore(playerid, PlayerInfo[playerid][pScore]); //setting player score from file
- SetPVarInt(playerid, "Joinned", 0);
- }
- pTeam[playerid] = team_civ;
- if (PlayerInfo[playerid][pDM] == 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can't tp out of DM arena, YOU SHALL DIE !!");
- SetPlayerPos(playerid,596.09997559,-3090.10009766,57.29999924);
- } else {
- // nothing here
- }
- return 1;
- }
- public SpawnProtection(playerid)
- {
- SetPlayerHealth(playerid,100.0);
- SendClientMessage(playerid,COLOR_YELLOW,"Spawn Protection Over!");
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- SendDeathMessage(killerid, playerid, reason);
- StopAudioStreamForPlayer(playerid);
- PlayerInfo[killerid][pKills]++;
- PlayerInfo[playerid][pDeaths]++;
- if(IsBeingSpeced[playerid] == 1)
- {
- foreach(Player,i)
- {
- if(spectatorid[i] == playerid)
- {
- TogglePlayerSpectating(i,false);
- }
- }
- }
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- //Level System Update
- public ScoreUpdate()
- {
- new Score;
- new name[MAX_PLAYER_NAME];
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if (IsPlayerConnected(i))
- {
- GetPlayerName(i, name, sizeof(name));
- Score = PlayerInfo[i][pLevel];
- SetPlayerScore(i, Score);
- if (Score > ScoreOld)
- {
- ScoreOld = Score;
- }
- }
- }
- }
- public PayDay(playerid)
- {
- for (new i; i < MAX_PLAYERS; i++)
- {
- if (IsPlayerConnected(i))
- {
- new nxtlevel = PlayerInfo[playerid][pLevel];
- new payday = nxtlevel*0;
- GivePlayerMoney(i,payday);
- PlayerInfo[playerid][pExp]++;
- GameTextForPlayer(i," ~p~ LevelPay",6,5000);
- PlayerPlayMusic(playerid);
- }
- }
- }
- public PlayerPlayMusic(playerid)
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- SetTimer("StopMusic", 5000, 0);
- PlayerPlaySound(i, 1068, 0.0, 0.0, 0.0);
- }
- }
- }
- public StopMusic()
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- PlayerPlaySound(i, 1069, 0.0, 0.0, 0.0);
- }
- }
- }
- //Level System Update End
- //Msessage to Admins function
- forward SendAdminMessage(color, string[]);
- public SendAdminMessage(color, string[])
- {
- foreach(Player, i)
- {
- if(PlayerInfo[i][pAdmin] >= 1)
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- CMD:report(playerid,params[])
- {
- if(isnull(params)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /report [message]");
- new string[256];
- format(string,sizeof(string),"%s has reported: %s",GetPlayerNameEx(playerid),params);
- SendAdminMessage(COLOR_YELLOW,string);
- SendClientMessage(playerid,COLOR_YELLOW,"You're report has been sent.");
- return 1;
- }
- CMD:reportbug(playerid, params[])
- {
- new text[512], name[MAX_PLAYER_NAME], bugstring[512], Float:x, Float:y, Float:z, File:Bugs;
- if(sscanf(params, "s[512]", text)) return SendClientMessage(playerid, COLOR_RED, " Incorrect fomat. Use /reportbug [description]");
- if(strlen(text) > 512) return SendClientMessage(playerid, COLOR_RED," Description is too long (Max. 512 letters)");
- GetPlayerName(playerid, name, sizeof(name));
- GetPlayerPos(playerid, x, y, z);
- format(bugstring, sizeof(bugstring), "%s reported a bug. Description : %s, on coordinates : X:%f, Y:%f, Z:%f\r\n", name, text, x, y, z);
- Bugs = fopen("BigFlashGaming/Bugs/Reports.txt", io_append);
- fwrite(Bugs, bugstring);
- fclose(Bugs);
- SendClientMessage(playerid, COLOR_YELLOW, " Thank you. You successfully reported a bug.");
- return 1;
- }
- CMD:levelup(playerid,params[])
- {
- new string[30];
- if(IsPlayerConnected(playerid) == 1)
- {
- new points[248];
- new nxtlevel = PlayerInfo[playerid][pLevel]+1;
- new expamount = nxtlevel*levelexp;
- if(PlayerInfo[playerid][pExp] < expamount)
- {
- format(points,sizeof(points)," You need [%d] Exp Points in order to level up, You currently have [%d]",expamount,PlayerInfo[playerid][pExp]); // Format, This is pretty obvious.
- SendClientMessage(playerid,COLOR_LIME,points);
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pExp] = 0;
- PlayerInfo[playerid][pLevel]++;
- format(string,sizeof(string),"~g~Your now level:[%d]",PlayerInfo[playerid][pLevel]);
- GameTextForPlayer(playerid,string,6000,1);
- return 1;
- }
- }
- return 1;
- }
- CMD:kill(playerid, params[])
- {
- SetPlayerHealth(playerid, 0);
- PlayerInfo[playerid][pDM] = 0;
- return 1;
- }
- CMD:help(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- SendClientMessage(playerid, COLOR_GREY , "[SYSTEM] This is Team Wars by ZackBoolaro(Zack_Martines)");
- SendClientMessage(playerid, COLOR_GREY , "[GUNS] /kill /getm4 /getmp5 /getak47 /getss /getshotgun");
- SendClientMessage(playerid, COLOR_GREY , "[GENERAL] /report /levelup /report /reportbug /radio");
- SendClientMessage(playerid, COLOR_GREY , "[GENERAL] /vehicle /radiooff /teams /tp /rules");
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "[MODERATOR] /kick /ban /spec /specoff /ann");
- }
- if (PlayerInfo[playerid][pAdmin] >= 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "[ADMINISTRATOR] /goto /gethere /rpw /dmradio /freeze /unfreeze");
- }
- if (PlayerInfo[playerid][pAdmin] >= 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "[OWNER] /makeadmin /akill");
- }
- return 1;
- }
- CMD:dmradio(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that cmd!");
- return 1;
- }
- SendClientMessageToAll(COLOR_YELLOW, "DM Arena Radio is On !");
- new Float:Pos[3];
- GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(IsPlayerInRangeOfPoint(i,100,Pos[0],Pos[1],Pos[2]))
- {
- StopAudioStreamForPlayer(i);
- PlayAudioStreamForPlayer(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=118452");
- }
- }
- }
- return 1;
- }
- CMD:makeadmin(playerid, params[])
- {
- if (IsPlayerAdmin(playerid))
- {
- new Value, TargetID;
- if(sscanf(params, "ui", TargetID, Value)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /makeadmin [playerid] [level]"); }
- PlayerInfo[TargetID][pAdmin] = Value;
- } else {
- SendClientMessage(playerid, 0xE60000FF, "You are not a lead admin!");
- }
- return 1;
- }
- CMD:rpw( playerid, params[ ] )
- {
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that cmd!");
- return 1;
- }
- new Value, TargetID;
- if(sscanf(params, "ui", TargetID, Value)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /rpw [playerid] [0 or 1]"); }
- if( !IsPlayerConnected( TargetID ) && TargetID == INVALID_PLAYER_ID ) return SendClientMessage( playerid, -1, "Invalid player ID!" );
- PlayerInfo[TargetID][pAllowed_To_Use] = Value;
- return 1;
- }
- CMD:goto(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that cmd!");
- return 1;
- }
- if (PlayerInfo[playerid][pDM] == 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can't tp out of DM arena, YOU SHALL DIE !!");
- SetPlayerPos(playerid,596.09997559,-3090.10009766,57.29999924);
- } else {
- new id;
- if(sscanf(params, "u", id)) SendClientMessage(playerid, 0xFF0000FF, "USAGE: /goto [id]");
- else if(!IsPlayerConnected(id) || id == playerid) return SendClientMessage(playerid, COLOR_GREY, "This player is offline or it is yourself");
- else
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(id, x, y, z);
- SetPlayerPos(playerid, x+1, y+1, z);
- }
- }
- return 1;
- }
- CMD:gethere(playerid,params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that cmd!");
- return 1;
- }
- new targetid, Float:x, Float:y, Float:z;
- if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /gethere [id]");
- if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_GREY, "That player is not connected");
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(targetid, x, y+0.5, z+0.5);
- return 1;
- }
- CMD:freeze(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that cmd!");
- return 1;
- }
- new giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /freeze [playerid/name]");
- if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, COLOR_GREY, "Invalid username/ID");
- TogglePlayerControllable(giveplayerid, 0);
- SendClientMessage(playerid, COLOR_GREY, "You have frozen %s");
- return 1;
- }
- CMD:akill(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that cmd!");
- return 1;
- }
- new giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /akill [playerid/name]");
- if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, COLOR_GREY, "Invalid username/ID");
- new string[128];
- SetPlayerHealth(giveplayerid, 0);
- format(string, sizeof(string), "Admin %s killed %s with admin command!", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- SendClientMessageToAll(COLOR_YELLOW, string);
- return 1;
- }
- CMD:unfreeze(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that cmd!");
- return 1;
- }
- new giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /unfreeze [playerid/name]");
- if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, COLOR_GREY, "Invalid username/ID");
- TogglePlayerControllable(giveplayerid, 1);
- return 1;
- }
- CMD:ann(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that cmd!");
- return 1;
- }
- if(isnull(params)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /ann [message]");
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that cmd!");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- new string[128];
- format(string, sizeof(string), " {00FFFF}Server Mod{FFFFFF} %s: %s ", GetPlayerNameEx(playerid), params);
- SendClientMessageToAll(COLOR_WHITE, string);
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] == 2)
- {
- new string[128];
- format(string, sizeof(string), " {00FFFF}Server Admin{FFFFFF} %s: %s ", GetPlayerNameEx(playerid), params);
- SendClientMessageToAll(COLOR_WHITE, string);
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] == 3)
- {
- new string[128];
- format(string, sizeof(string), " {00FFFF}Server Owner{FFFFFF} %s: %s ", GetPlayerNameEx(playerid), params);
- SendClientMessageToAll(COLOR_WHITE, string);
- return 1;
- }
- new sendername[MAX_PLAYER_NAME], string[128];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), " %s: %s ", sendername, params);
- SendClientMessageToAll(COLOR_WHITE, string);
- return 1;
- }
- CMD:spec(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that cmd!");
- return 1;
- }
- if (PlayerInfo[playerid][pDM] == 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can't tp out of DM arena, YOU SHALL DIE !!");
- SetPlayerPos(playerid,596.09997559,-3090.10009766,57.29999924);
- TogglePlayerSpectating(playerid, 0);
- } else {
- new id;
- if(sscanf(params,"u", id))return SendClientMessage(playerid, COLOR_GREY, "Usage: /spec [id]");
- if(id == playerid)return SendClientMessage(playerid,COLOR_GREY,"You cannot spec yourself.");
- if(id == INVALID_PLAYER_ID)return SendClientMessage(playerid, COLOR_GREY, "Player not found!");
- if(IsSpecing[playerid] == 1)return SendClientMessage(playerid,COLOR_GREY,"You are already specing someone.");
- GetPlayerPos(playerid,SpecX[playerid],SpecY[playerid],SpecZ[playerid]);
- Inter[playerid] = GetPlayerInterior(playerid);
- vWorld[playerid] = GetPlayerVirtualWorld(playerid);
- TogglePlayerSpectating(playerid, true);
- if(IsPlayerInAnyVehicle(id))
- {
- if(GetPlayerInterior(id) > 0)
- {
- SetPlayerInterior(playerid,GetPlayerInterior(id));
- }
- if(GetPlayerVirtualWorld(id) > 0)
- {
- SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(id));
- }
- PlayerSpectateVehicle(playerid,GetPlayerVehicleID(id));
- }
- else
- {
- if(GetPlayerInterior(id) > 0)
- {
- SetPlayerInterior(playerid,GetPlayerInterior(id));
- }
- if(GetPlayerVirtualWorld(id) > 0)
- {
- SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(id));
- }
- PlayerSpectatePlayer(playerid,id);
- }
- GetPlayerName(id, Name, sizeof(Name));
- format(String, sizeof(String),"You have started to spectate %s.",Name);
- SendClientMessage(playerid,0x0080C0FF,String);
- IsSpecing[playerid] = 1;
- IsBeingSpeced[id] = 1;
- spectatorid[playerid] = id;
- }
- return 1;
- }
- CMD:specoff(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that cmd!");
- return 1;
- }
- if(IsSpecing[playerid] == 0)return SendClientMessage(playerid,COLOR_GREY,"You are not spectating anyone.");
- TogglePlayerSpectating(playerid, 0);
- return 1;
- }
- CMD:getm4(playerid, params[])
- {
- if(PlayerInfo[playerid][pAllowed_To_Use] == 1) return SendClientMessage(playerid, -1, "Weapon commands are disabled for you!");
- GivePlayerWeapon(playerid, 31, 1000);
- SendClientMessage(playerid, COLOR_GREEN , "You have given yourself a M4");
- return 1;
- }
- CMD:getmp5(playerid, params[])
- {
- if(PlayerInfo[playerid][pAllowed_To_Use] == 1) return SendClientMessage(playerid, -1, "Weapon commands are disabled for you!");
- GivePlayerWeapon(playerid, 29, 1000);
- SendClientMessage(playerid, COLOR_GREEN , "You have given yourself a MP5");
- return 1;
- }
- CMD:getak47(playerid, params[])
- {
- if(PlayerInfo[playerid][pAllowed_To_Use] == 1) return SendClientMessage(playerid, -1, "Weapon commands are disabled for you!");
- GivePlayerWeapon(playerid, 30, 1000);
- SendClientMessage(playerid, COLOR_GREEN , "You have given yourself a AK47");
- return 1;
- }
- CMD:getss(playerid, params[])
- {
- if(PlayerInfo[playerid][pAllowed_To_Use] == 1) return SendClientMessage(playerid, -1, "Weapon commands are disabled for you!");
- GivePlayerWeapon(playerid, 26, 1000);
- SendClientMessage(playerid, COLOR_GREEN , "You have given yourself a Sawn-off Shotgun");
- return 1;
- }
- CMD:getshotgun(playerid, params[])
- {
- if(PlayerInfo[playerid][pAllowed_To_Use] == 1) return SendClientMessage(playerid, -1, "Weapon commands are disabled for you!");
- GivePlayerWeapon(playerid, 25, 1000);
- SendClientMessage(playerid, COLOR_GREEN , "You have given yourself a Shotgun");
- return 1;
- }
- CMD:radio(playerid, params[])
- {
- ShowPlayerDialog(playerid, 9998, DIALOG_STYLE_LIST, "Radio Stations", "TheVoice (Country: Bulgaria, HipHop and RnB) \nCity (Country: Bulgaria, HipHop and RnB)\nMassive Dubstep (Country: Unknown, Dubstep)\nTangra Mega Rock (Country: Bulgaria, Rock)\nVeronika (Country: Bulgaria, Pop-Folk)\nOfficial Radio", "Listen", "Close");
- return 1;
- }
- CMD:teams(playerid, params[])
- {
- ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "Teams", "LSPD \nArmy\nBalla\nGroove\nVagos\nAztecas\nMafia\nCivil", "Choose", "Close");
- return 1;
- }
- CMD:tp(playerid, params[])
- {
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "Locations", "DM Zone \nHydras Zone\nHunters Zone", "Teleport to..", "Close");
- return 1;
- }
- CMD:rules(playerid, params[])
- {
- ShowPlayerDialog(playerid, 12, DIALOG_STYLE_MSGBOX, "Rules of [BigFlashGaming] Team Wars", "NO Hacking\nNO Spawn Killing\nNO reports abuse\nNO Disrespect\nNO Server Advertising\nNO Heliblading", "Agree", "");
- return 1;
- }
- CMD:radiooff(playerid, params[])
- {
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
- //Function that gets the vehicle name from the ID of the specified vehicle
- public GetVehicleModelIDFromName(vname[])
- {
- for(new i = 0; i < 211; i++)
- {
- if ( strfind(VehicleNames[i], vname, true) != -1 )
- return i + 400;
- }
- return -1;
- }
- CMD:vehicle(playerid, params[])
- {
- new Vehicle[32], VehicleID, ColorOne, ColorTwo;
- PlayerInfo[playerid][pCanSpawnVehicle] = true;
- if(sscanf(params, "s[32]D(1)D(1)", Vehicle, ColorOne, ColorTwo))
- {
- PlayerInfo[playerid][pCanSpawnVehicle] = true;
- SendClientMessage(playerid, COLOR_GREY, "[USAGE]: /vehicle[Vehname/Vehicleid] [Color 1 (opt)] [Color 2 (opt)]");
- return 1;
- }
- if(PlayerInfo[playerid][pCanSpawnVehicle])
- {
- VehicleID = GetVehicleModelIDFromName(Vehicle);
- if(VehicleID != 425 && VehicleID != 432 && VehicleID != 447 &&
- VehicleID != 430 && VehicleID != 417 && VehicleID != 435 &&
- VehicleID != 446 && VehicleID != 449 && VehicleID != 450 &&
- VehicleID != 452 && VehicleID != 453 && VehicleID != 454 &&
- VehicleID != 460 && VehicleID != 464 && VehicleID != 465 &&
- VehicleID != 469 && VehicleID != 472 && VehicleID != 473 &&
- VehicleID != 476 && VehicleID != 484 && VehicleID != 487 &&
- VehicleID != 488 && VehicleID != 493 && VehicleID != 497 &&
- VehicleID != 501 && VehicleID != 511 && VehicleID != 512 &&
- VehicleID != 513 && VehicleID != 519 && VehicleID != 520 &&
- VehicleID != 537 && VehicleID != 538 && VehicleID != 548 &&
- VehicleID != 553 && VehicleID != 563 && VehicleID != 564 &&
- VehicleID != 569 && VehicleID != 570 && VehicleID != 577 &&
- VehicleID != 584 && VehicleID != 590 && VehicleID != 591 &&
- VehicleID != 592 && VehicleID != 593 && VehicleID != 594 &&
- VehicleID != 595 && VehicleID != 606 && VehicleID != 607 &&
- VehicleID != 608 && VehicleID != 610 && VehicleID != 611) {
- if(VehicleID == -1 )
- {
- VehicleID = strval(Vehicle);
- if(VehicleID < 400 || VehicleID > 611 )
- {
- return SendClientMessage(playerid, COLOR_GREY, "You entered an invalid vehiclename!");
- }
- }
- GetPlayerPos(playerid, pX, pY, pZ);
- GetPlayerFacingAngle(playerid, pAngle);
- DestroyVehicle(PlayerInfo[playerid][pSpawnVehicle]);
- PlayerInfo[playerid][pSpawnVehicle] = CreateVehicle(VehicleID, pX, pY, pZ+2.0, pAngle, ColorOne, ColorTwo, -1);
- LinkVehicleToInterior(PlayerInfo[playerid][pSpawnVehicle], GetPlayerInterior(playerid));
- PutPlayerInVehicle(playerid, PlayerInfo[playerid][pSpawnVehicle], 0);
- SendClientMessage(playerid, COLOR_GREY, "You succesfully spawned this vehicle!");
- } else {
- SendClientMessage(playerid, COLOR_GREY, "You are not allowed to spawn this vehicle!!");
- }
- } else {
- SendClientMessage(playerid, COLOR_GREY, "You can not spawn vehicles in this zone!");
- }
- return 1;
- }
- stock PlayerName(playerid) {
- new name[255];
- GetPlayerName(playerid, name, 255);
- return name;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can listen to your vehicle radio with /radio");
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- new pname[MAX_PLAYER_NAME], str[128];
- GetPlayerName(playerid, pname, sizeof(pname));
- format(str, sizeof(str), "%s says: %s", pname, text);
- ProxDetector(30.0, playerid, str, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
- return 0;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if(newstate == PLAYER_STATE_PASSENGER) {
- for(new i = 0; i < sizeof(uberhaxeddbweps); i++) {
- if(GetPlayerWeapon(playerid) == uberhaxeddbweps[i]) SetPlayerArmedWeapon(playerid, 1);
- else
- {
- SetPlayerArmedWeapon(playerid, smgs[i]);
- }
- }
- }
- if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
- {
- if(IsBeingSpeced[playerid] == 1)
- {
- foreach(Player,i)
- {
- if(spectatorid[i] == playerid)
- {
- PlayerSpectateVehicle(i, GetPlayerVehicleID(playerid));
- }
- }
- }
- }
- if(newstate == PLAYER_STATE_ONFOOT)
- {
- if(IsBeingSpeced[playerid] == 1)
- {
- foreach(Player,i)
- {
- if(spectatorid[i] == playerid)
- {
- PlayerSpectatePlayer(i, playerid);
- }
- }
- }
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- 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 OnPlayerPickUpPickup(playerid, pickupid)
- {
- 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)
- {
- if(IsBeingSpeced[playerid] == 1)
- {
- foreach(Player,i)
- {
- if(spectatorid[i] == playerid)
- {
- SetPlayerInterior(i,GetPlayerInterior(playerid));
- SetPlayerVirtualWorld(i,GetPlayerVirtualWorld(playerid));
- }
- }
- }
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- 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[])
- {
- switch(dialogid)
- {
- case 11:
- {
- if(!response) return SendClientMessage(playerid, 0xFF330000, "You did not select a location!");
- switch(listitem)
- {
- case 0:
- {
- if (PlayerInfo[playerid][pDM] == 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can't tp out of DM arena, YOU SHALL DIE !!");
- SetPlayerPos(playerid,596.09997559,-3090.10009766,57.29999924);
- } else {
- SendClientMessage(playerid, COLOR_YELLOW, "You are now in dm arena, only way to getout is /kill !!");
- SetPlayerPos(playerid,596.09997559,-3090.10009766,57.29999924);
- PlayerInfo[playerid][pDM] = 1;
- }
- return 1;
- }
- case 1:
- {
- if (PlayerInfo[playerid][pDM] == 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can't tp out of DM arena, YOU SHALL DIE !!");
- SetPlayerPos(playerid,596.09997559,-3090.10009766,57.29999924);
- } else {
- SendClientMessage(playerid, COLOR_YELLOW , "You have been teleported to the hydras zone!");
- SetPlayerPos(playerid, 1954.0288,-2608.4131,13.5469);
- }
- return 1;
- }
- case 2:
- {
- if (PlayerInfo[playerid][pDM] == 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can't tp out of DM arena, YOU SHALL DIE !!");
- SetPlayerPos(playerid,596.09997559,-3090.10009766,57.29999924);
- } else {
- SendClientMessage(playerid, COLOR_YELLOW , "You have been teleported to the hunters zone!");
- SetPlayerPos(playerid, 1917.6460,-2435.8284,13.5391);
- }
- return 1;
- }
- }
- }
- }
- switch(dialogid)
- {
- case 10:
- {
- switch(listitem)
- {
- case 0:
- {
- if (PlayerInfo[playerid][pDM] == 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can't tp out of DM arena, YOU SHALL DIE !!");
- SetPlayerPos(playerid,596.09997559,-3090.10009766,57.29999924);
- } else {
- SendClientMessage(playerid, COLOR_YELLOW , "You are now playing in as Police Officer Army Are Allys With You");
- pTeam[playerid] = team_lspd;
- SetPlayerSkin(playerid, 280);
- SetPlayerPos(playerid, 1536.9590,-1676.0010,13.3828);
- GameTextForPlayer(playerid, "~g~Welcome to the Police, Army Are Allys With You", 3000, 5);
- }
- return 1;
- }
- case 1:
- {
- if (PlayerInfo[playerid][pDM] == 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can't tp out of DM arena, YOU SHALL DIE !!");
- SetPlayerPos(playerid,596.09997559,-3090.10009766,57.29999924);
- } else {
- SendClientMessage(playerid, COLOR_YELLOW , "You are playing in as a Army Guard, Cops Are Allys With You!");
- pTeam[playerid] = team_army;
- SetPlayerSkin(playerid, 287);
- SetPlayerPos(playerid, 2747.4990,-2431.9531,13.6432);
- GameTextForPlayer(playerid, "~g~Welcome to the Army, Cops Are Allys With You", 3000, 5);
- }
- return 1;
- }
- case 2:
- {
- if (PlayerInfo[playerid][pDM] == 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can't tp out of DM arena, YOU SHALL DIE !!");
- SetPlayerPos(playerid,596.09997559,-3090.10009766,57.29999924);
- } else {
- SendClientMessage(playerid, COLOR_YELLOW , "You are now playing in as a Balla Gangster!");
- pTeam[playerid] = team_balla;
- SetPlayerPos(playerid, 2342.3667,-1410.1563,23.8190);
- SetPlayerSkin(playerid, 104);
- GameTextForPlayer(playerid, "~g~Welcome to the Ballas", 3000, 5);
- }
- return 1;
- }
- case 3:
- {
- if (PlayerInfo[playerid][pDM] == 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can't tp out of DM arena, YOU SHALL DIE !!");
- SetPlayerPos(playerid,596.09997559,-3090.10009766,57.29999924);
- } else {
- SendClientMessage(playerid, COLOR_YELLOW , "You are playing in as a Groove Street Gangster !");
- pTeam[playerid] = team_groove;
- SetPlayerSkin(playerid, 107);
- SetPlayerPos(playerid, 2488.4053,-1669.9097,13.3359);
- GameTextForPlayer(playerid, "~g~Welcome to the Groove St. Families", 3000, 5);
- }
- return 1;
- }
- case 4:
- {
- if (PlayerInfo[playerid][pDM] == 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can't tp out of DM arena, YOU SHALL DIE !!");
- SetPlayerPos(playerid,596.09997559,-3090.10009766,57.29999924);
- } else {
- SendClientMessage(playerid, COLOR_YELLOW , "You are playing in as a Vagos Gangster !");
- pTeam[playerid] = team_vagos;
- SetPlayerSkin(playerid, 108);
- SetPlayerPos(playerid, 2352.0803,-1166.7577,27.5005);
- GameTextForPlayer(playerid, "~g~Welcome to the Vagos", 3000, 5);
- }
- return 1;
- }
- case 5:
- {
- if (PlayerInfo[playerid][pDM] == 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can't tp out of DM arena, YOU SHALL DIE !!");
- SetPlayerPos(playerid,596.09997559,-3090.10009766,57.29999924);
- } else {
- SendClientMessage(playerid, COLOR_YELLOW , "You are playing in as a Aztecas Gangster !");
- pTeam[playerid] = team_aztecas;
- SetPlayerSkin(playerid, 115);
- SetPlayerPos(playerid, 2661.9253,-1092.7109,69.4967);
- GameTextForPlayer(playerid, "~g~Welcome to the Aztecas", 3000, 5);
- }
- return 1;
- }
- case 6:
- {
- if (PlayerInfo[playerid][pDM] == 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can't tp out of DM arena, YOU SHALL DIE !!");
- SetPlayerPos(playerid,596.09997559,-3090.10009766,57.29999924);
- } else {
- SendClientMessage(playerid, COLOR_YELLOW , "You are playing in as a Mafia !");
- pTeam[playerid] = team_mafia;
- SetPlayerSkin(playerid, 126);
- SetPlayerPos(playerid, 1567.7882,-1891.3816,13.5593);
- GameTextForPlayer(playerid, "~g~Welcome to the Chinese Mafia", 3000, 5);
- }
- return 1;
- }
- case 7:
- {
- if (PlayerInfo[playerid][pDM] == 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can't tp out of DM arena, YOU SHALL DIE !!");
- SetPlayerPos(playerid,596.09997559,-3090.10009766,57.29999924);
- } else {
- SendClientMessage(playerid, COLOR_YELLOW , "You are now playing in as Civilian !");
- pTeam[playerid] = team_civ;
- SetPlayerSkin(playerid, 188);
- SetPlayerPos(playerid, 1536.9590,-1676.0010,13.3828);
- GameTextForPlayer(playerid, "~g~Welcome to the Civilians", 3000, 5);
- }
- return 1;
- }
- }
- }
- }
- //Dialog for Radio System
- switch(dialogid)
- {
- case 9998:
- {
- if(!response) return SendClientMessage(playerid, 0xFF330000, "You did not select a station!");
- switch(listitem)
- {
- case 0:
- {
- new vehid = GetPlayerVehicleID(playerid);
- for(new i = 0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerInVehicle(i, vehid))
- {
- PlayAudioStreamForPlayer(i, "http://193.108.24.18:8000/thevoice.m3u");
- SendClientMessage(i, 0xFF330000, "Now Playing: Radio The Voice");
- }
- }
- return 1;
- }
- case 1:
- {
- new vehid = GetPlayerVehicleID(playerid);
- for(new i = 0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerInVehicle(i, vehid))
- {
- PlayAudioStreamForPlayer(i, "http://radioreklama.bg/live_mp3.pls");
- SendClientMessage(i, 0xFF330000, "Now Playing: Radio City");
- }
- }
- return 1;
- }
- case 2:
- {
- new vehid = GetPlayerVehicleID(playerid);
- for(new i = 0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerInVehicle(i, vehid))
- {
- PlayAudioStreamForPlayer(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=118452");
- SendClientMessage(i, 0xFF330000, "Now Playing: Radio Massive Dubstep");
- }
- }
- return 1;
- }
- case 3:
- {
- new vehid = GetPlayerVehicleID(playerid);
- for(new i = 0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerInVehicle(i, vehid))
- {
- PlayAudioStreamForPlayer(i, "http://stream-02.radiotangra.com/Tangra-high.m3u");
- SendClientMessage(i, 0xFF330000, "Now Playing: Radio Tangra Mega Rock");
- }
- }
- return 1;
- }
- case 4:
- {
- new vehid = GetPlayerVehicleID(playerid);
- for(new i = 0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerInVehicle(i, vehid))
- {
- PlayAudioStreamForPlayer(i, "http://www.radioveronika.bg/veronika.m3u");
- SendClientMessage(i, 0xFF330000, "Now Playing: Radio Veronika");
- }
- }
- return 1;
- }
- case 5:
- {
- new vehid = GetPlayerVehicleID(playerid);
- for(new i = 0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerInVehicle(i, vehid))
- {
- PlayAudioStreamForPlayer(i, "http://allstyleradio.cloudspeaker.fm/allstyleradio.pls");
- SendClientMessage(i, 0xFF330000, "Now Playing: Server's Offical Radio");
- }
- }
- return 1;
- }
- }
- }
- }
- switch(dialogid) //switching to dialogid
- { //opening barrel
- case DIALOG_REGISTER: //for registering
- { //opening barrel
- if(response)
- { //opening barrel
- new
- strText[179], naslov2[128]; //some variables for text that player type and title
- if(strlen(inputtext) >= 4 && strlen(inputtext) <= 35) //if player type password more than 4 and less than 35 characters he will get this
- { //opening barrel
- OnPlayerRegister(playerid, inputtext); //Loading stats
- format(strText, 125, "You have registered with name {FFFFFF}'%s' {FFFF00}and password {FFFFFF}'%s'{FFFF00}, you are automatic logged in!", GetName(playerid), inputtext); //formating our text
- SendClientMessage(playerid, COLOR_YELLOW, strText); //send client message
- } //closing barrel
- else // else if je type less than 4 or more than 35 characters he will get this
- { //opening barrel
- format(naslov2, sizeof(naslov2), ""COL_GREEN2" Welcome"COL_WHITE" %s!", GetName(playerid)); //formating our title
- format(strText, 179, ""COL_WHITE"______________________________\n\n"COL_GREEN2"Name"COL_WHITE" %s"COL_GREEN2" isn't registered!\n\n{F81414}Password must be between 4 and 35 characters!", GetName(playerid)); //formating our text
- ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, naslov2, strText, "Register", "Exit"); //show player again dialog for registering
- } //closing barrel
- } //closing barrel
- else Kick(playerid); //if player choose Exit button, server will kick him, this is for response :D
- } //closing barrel
- case DIALOG_LOGIN: //for loging
- { //opening barrel
- if(response)
- { //opening barrel
- new
- strText[179], naslov2[128]; //some variables for text that player type and title
- if(strlen(inputtext) >= 4 && strlen(inputtext) <= 35) //if player type password more than 4 or less than 35 characters he will get this
- { //opening barrel
- OnPlayerLogin(playerid, inputtext); //loading stats
- } //closing barrel
- else //but if he type less than 4 or more than 35 characters he will get this
- { //opening barrel
- format(naslov2, sizeof(naslov2), ""COL_GREEN2" Welcome"COL_WHITE" %s!", GetName(playerid)); //formating our title
- format(strText, 179, ""COL_WHITE"______________________________\n\n"COL_GREEN2"Name"COL_WHITE" %s"COL_GREEN2" is registered!\n\n{F81414}You typed wrong password!", GetName(playerid)); //formating our text
- ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, naslov2, strText, "Login", "Exit"); //showing palyer again dialog for login
- } //closing barrel
- } //closing barrel
- else Kick(playerid);
- }
- }
- return 1;
- }
- stock 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;
- }
- ProxDetector(Float:radi, playerid, string[], col1, col2, col3, col4, col5)
- {
- new Float:pPositionX[3], Float:oPositionX[3];
- GetPlayerPos(playerid, pPositionX[0], pPositionX[1], pPositionX[2]);
- foreach(Player, i)
- {
- GetPlayerPos(i, oPositionX[0], oPositionX[1], oPositionX[2]);
- if(IsPlayerInRangeOfPoint(i, radi / 16, pPositionX[0], pPositionX[1], pPositionX[2])) { SendClientMessage(i, col1, string); }
- else if(IsPlayerInRangeOfPoint(i, radi / 8, pPositionX[0], pPositionX[1], pPositionX[2])) { SendClientMessage(i, col2, string); }
- else if(IsPlayerInRangeOfPoint(i, radi / 4, pPositionX[0], pPositionX[1], pPositionX[2])) { SendClientMessage(i, col3, string); }
- else if(IsPlayerInRangeOfPoint(i, radi / 2, pPositionX[0], pPositionX[1], pPositionX[2])) { SendClientMessage(i, col4, string); }
- else if(IsPlayerInRangeOfPoint(i, radi, pPositionX[0], pPositionX[1], pPositionX[2])) { SendClientMessage(i, col5, string); }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement