Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- All Credits to Anthony (Anthony Heins) and Nick.
- */
- #include <a_samp> // Regular.
- #include <foreach> // For the Mass CMD's.
- #include <ZCMD> // Easier CMD Inc.
- #include <sscanf2> // Created by Y_Less.
- #include <streamer> // Objects.
- #include <YSI\y_ini> // Registration & Login.
- #include <dutils>
- #pragma unused ret_memcpy
- // |-----------------[ Colors ]-----------------|
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_PINK 0xFF66FFAA
- #define COLOR_BLUE 0x0000BBAA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_DARKRED 0x660000AA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_BRIGHTRED 0xFF0000AA
- #define COLOR_INDIGO 0x4B00B0AA
- #define COLOR_VIOLET 0x9955DEEE
- #define COLOR_LIGHTRED 0xFF0000AA
- #define COLOR_SEAGREEN 0x00EEADDF
- #define COLOR_GRAYWHITE 0xEEEEFFC4
- #define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
- #define COLOR_GREENISHGOLD 0xCCFFDD56
- #define COLOR_LIGHTBLUEGREEN 0x0FFDD349
- #define COLOR_NEUTRALBLUE 0xABCDEF01
- #define COLOR_LIGHTCYAN 0xAAFFCC33
- #define COLOR_LEMON 0xDDDD2357
- #define COLOR_MEDIUMBLUE 0x63AFF00A
- #define COLOR_NEUTRAL 0xABCDEF97
- #define COLOR_BLACK 0x00000000
- #define COLOR_NEUTRALGREEN 0x81CFAB00
- #define COLOR_DARKGREEN 0x12900BBF
- #define COLOR_LIGHTGREEN 0x24FF0AB9
- #define COLOR_DARKBLUE 0x300FFAAB
- #define COLOR_BLUEGREEN 0x46BBAA00
- #define COLOR_PINK 0xFF66FFAA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_DARKRED 0x660000AA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_PURPLE 0xC2A2DAAA
- #define COLOR_GRAD1 0xB4B5B7FF
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_RED1 0xFF0000AA
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_BROWN 0x993300AA
- #define COLOR_CYAN 0x99FFFFAA
- #define COLOR_TAN 0xFFFFCCAA
- #define COLOR_PINK 0xFF66FFAA
- #define COLOR_KHAKI 0x999900AA
- #define COLOR_LIME 0x99FF00AA
- #define COLOR_SYSTEM 0xEFEFF7AA
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_GRAD4 0xD8D8D8FF
- #define COLOR_GRAD6 0xF0F0F0FF
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_GRAD3 0xCBCCCEFF
- #define COLOR_GRAD5 0xE3E3E3FF
- #define COLOR_GRAD1 0xB4B5B7FF
- // |-----------------[ Weapon Defines ]-----------------|
- #define WEAPON_BRASSKNUCKLE (1)
- #define WEAPON_GOLFCLUB (2)
- #define WEAPON_NITESTICK (3)
- #define WEAPON_KNIFE (4)
- #define WEAPON_BAT (5)
- #define WEAPON_SHOVEL (6)
- #define WEAPON_POOLSTICK (7)
- #define WEAPON_KATANA (8)
- #define WEAPON_CHAINSAW (9)
- #define WEAPON_DILDO (10)
- #define WEAPON_DILDO2 (11)
- #define WEAPON_VIBRATOR (12)
- #define WEAPON_VIBRATOR2 (13)
- #define WEAPON_FLOWER (14)
- #define WEAPON_CANE (15)
- #define WEAPON_GRENADE (16)
- #define WEAPON_TEARGAS (17)
- #define WEAPON_MOLTOV (18)
- #define WEAPON_COLT45 (22)
- #define WEAPON_SILENCED (23)
- #define WEAPON_DEAGLE (24)
- #define WEAPON_SHOTGUN (25)
- #define WEAPON_SAWEDOFF (26)
- #define WEAPON_SHOTGSPA (27)
- #define WEAPON_UZI (28)
- #define WEAPON_MP5 (29)
- #define WEAPON_AK47 (30)
- #define WEAPON_M4 (31)
- #define WEAPON_TEC9 (32)
- #define WEAPON_RIFLE (33)
- #define WEAPON_SNIPER (34)
- #define WEAPON_ROCKETLAUNCHER (35)
- #define WEAPON_HEATSEEKER (36)
- #define WEAPON_FLAMETHROWER (37)
- #define WEAPON_MINIGUN (38)
- #define WEAPON_SATCHEL (39)
- #define WEAPON_BOMB (40)
- #define WEAPON_SPRAYCAN (41)
- #define WEAPON_FIREEXTINGUISHER (42)
- #define WEAPON_CAMERA (43)
- #define WEAPON_PARACHUTE (46)
- #define DIALOG_PASSWORD 1
- // Dialog Colors
- #define COL_WHITE "{FFFFFF}"
- #define COL_RED "{F81414}"
- #define COL_GREEN "{00FF22}"
- #define COL_LIGHTBLUE "{00CED1}"
- #define AccPath "Users/%s.ini"
- #define ADMINOVERRIDE_PASS "chcisagoodscripter"
- #define SERVER_GM_TEXT "WC-DM v0.2 RC6"// Gamemode text.
- // |-----------------[ Forward's ]-----------------|
- forward PayDay();
- forward ABroadCast(color,const string[],level);
- forward SendAdminMessage(color, string[]);
- forward OnPlayerOfflineSave(playername[]);
- forward SpeedoUpdate();
- // |-----------------[ New's]-----------------|
- new GodMode[MAX_PLAYERS];
- new AntiCheat = 1;
- new NoGodMode = 1;
- new Float:X, Float:Y, Float:Z, Float:Angle, pInt;
- new AdminDuty[MAX_PLAYERS];
- new Text:TextDraw0;
- new Float:TeleportDest[MAX_PLAYERS][3];
- new TeleportDestInt[MAX_PLAYERS];
- new OverideTries[MAX_PLAYERS];
- new Gate1,Gate2,Gate3,
- bool:Open1,bool:Open2,bool:Open3;
- #define JSPEEDO_TIMER_UPDATE 800 //time in MS that the timer updates.
- new PlayerText:ptdSpeedo[MAX_PLAYERS];
- new bool:pSpeedo_Shown[MAX_PLAYERS];
- stock GetVehicleSpeed(vehicleid, bool:kmph=false)
- {
- new Float:x, Float:y, Float:z;GetVehicleVelocity(vehicleid, x, y, z);
- if(kmph) return floatround(floatsqroot(x*x + y*y + z*z) * 180); // RETURN kmph
- return floatround( floatsqroot(x*x + y*y + z*z) * 180 / 1.609344); //RETURN mph
- }
- public SpeedoUpdate()
- {
- new vehicleid;
- new str[12];
- new playerid;
- for(playerid = 0;playerid<MAX_PLAYERS;playerid++) //if you use for each then replace this line.
- {
- vehicleid = GetPlayerVehicleID(playerid);
- if((vehicleid > 0) && (GetPlayerState(playerid) == PLAYER_STATE_DRIVER))
- {
- #if !defined JSPEEDO_KMPH
- format(str, 12, "%i", GetVehicleSpeed(vehicleid));
- #else
- format(str, 12, "%i", GetVehicleSpeed(vehicleid,true));
- #endif
- PlayerTextDrawSetString(playerid,ptdSpeedo[playerid],str);
- if (!pSpeedo_Shown[playerid])
- {
- PlayerTextDrawShow(playerid,ptdSpeedo[playerid]);
- pSpeedo_Shown[playerid]=true;
- }
- }
- else
- {
- if (pSpeedo_Shown[playerid])
- {
- PlayerTextDrawSetString(playerid,ptdSpeedo[playerid]," ");
- PlayerTextDrawHide(playerid,ptdSpeedo[playerid]);
- pSpeedo_Shown[playerid] = false;
- }
- }
- }
- return 1;
- }
- //For more info on ALS Hooking check
- //http://forum.sa-mp.com/showthread.php?t=85907
- static gSpeedo_HasCB[2];
- main()
- {
- return 1;
- }
- public OnGameModeInit()
- {
- SetTimer("SpeedoUpdate",true,JSPEEDO_TIMER_UPDATE);
- gSpeedo_HasCB[0] = funcidx("Speedo_OnPlayerConnect") != -1;
- gSpeedo_HasCB[1] = funcidx("Speedo_OnPlayerDisconnect") != -1;
- if (funcidx("Speedo_OnGameModeInit") != -1) CallLocalFunction("Speedo_OnGameModeInit", "");
- Create3DTextLabel("Use /Gate to Open/Cose this gate.", COLOR_GREEN, 2482.30004883,-1688.80004883,14.50000000, 25, 0, 1);
- Create3DTextLabel("Use /Gate to Open/Cose this gate.", COLOR_GREEN, 2464.50000000,-1658.69921875,14.50000000, 25, 0, 1);
- Create3DTextLabel("Use /Gate to Open/Cose this gate.", COLOR_BLUE, 1544.69995117,-1627.50000000,14.50000000, 25, 0, 1);
- SetTimer("PayDay", 300000, true);
- new string[128];
- format(string, sizeof(string), "gamemodetext %s", SERVER_GM_TEXT);
- SendRconCommand(string);
- UsePlayerPedAnims();
- TextDraw0 = TextDrawCreate(34.000000,426.000000,"WC-DM.Cu.Cc");
- TextDrawAlignment(TextDraw0,0);
- TextDrawBackgroundColor(TextDraw0,0x000000ff);
- TextDrawFont(TextDraw0,3);
- TextDrawLetterSize(TextDraw0,0.499999,1.500000);
- TextDrawColor(TextDraw0,0xff0000ff);
- TextDrawSetOutline(TextDraw0,1);
- TextDrawSetProportional(TextDraw0,1);
- TextDrawSetShadow(TextDraw0,4);
- Gate1 = CreateObject(976,2482.30004883,-1688.80004883,14.00000000,0.00000000,0.00000000,174.00000000); // Grove Gate 1
- CreateObject(7212,2439.30004883,-1670.09997559,14.10000038,0.00000000,182.00000000,92.00000000); //object(pol_comp_gate) (3)
- CreateObject(976,2463.80004883,-1667.30004883,14.19999981,0.00000000,0.00000000,259.99597168); //object(pol_comp_gate) (2)
- Gate2 = CreateObject(976,2464.50000000,-1658.69921875,14.00000000,0.00000000,0.00000000,267.99499512); // Grove Gate 2
- CreateObject(976,2465.10009766,-1650.19995117,14.19999981,0.00000000,0.00000000,267.99499512); //object(pol_comp_gate) (4)
- CreateObject(973,2521.00000000,-1722.50000000,13.39999962,0.00000000,0.00000000,180.00000000); //object(sub_roadbarrier) (1)
- CreateObject(973,2540.60009766,-1713.00000000,13.30000019,0.00000000,0.00000000,270.99450684); //object(sub_roadbarrier) (2)
- CreateObject(10841,2469.69995117,-1680.09997559,20.39999962,0.00000000,0.00000000,310.00000000); //object(drydock1_sfse01) (1)
- CreateObject(10841,2451.60009766,-1669.80004883,20.39999962,0.00000000,0.00000000,0.00000000); //object(drydock1_sfse01) (2)
- CreateObject(10841,2429.50000000,-1669.69995117,20.50000000,0.00000000,0.00000000,0.00000000); //object(drydock1_sfse01) (3)
- CreateObject(10841,2426.50000000,-1668.80004883,20.70000076,0.00000000,0.00000000,0.00000000); //object(drydock1_sfse01) (4)
- CreateObject(10841,2529.89990234,-1627.19995117,24.70000076,0.00000000,0.00000000,0.00000000); //object(drydock1_sfse01) (5)
- CreateObject(10841,2508.39990234,-1627.19995117,24.50000000,0.00000000,0.00000000,0.00000000); //object(drydock1_sfse01) (6)
- CreateObject(10841,2487.00000000,-1627.69995117,23.60000038,0.00000000,0.00000000,0.00000000); //object(drydock1_sfse01) (7)
- CreateObject(10841,2465.60009766,-1628.30004883,22.70000076,0.00000000,0.00000000,0.00000000); //object(drydock1_sfse01) (8)
- CreateObject(10841,2443.80004883,-1627.19995117,21.29999924,0.00000000,0.00000000,0.00000000); //object(drydock1_sfse01) (9)
- CreateObject(10841,2424.50000000,-1627.80004883,20.20000076,0.00000000,0.00000000,0.00000000); //object(drydock1_sfse01) (10)
- Gate3 = CreateObject(976,1544.69995117,-1627.50000000,14.00000000,0.00000000,0.00000000,270.00000000); // LSPD Gate
- CreateObject(10828,1557.19995117,-1612.69995117,24.70000076,0.00000000,0.00000000,224.00000000); //object(drydock1_sfse) (2)
- CreateObject(10828,1558.00000000,-1637.80004883,24.89999962,0.00000000,6.00000000,342.00000000); //object(drydock1_sfse) (3)
- CreateObject(2933,1544.69995117,-1627.59997559,17.50000000,0.00000000,0.00000000,269.99450684); //object(pol_comp_gate) (6)
- AddStaticVehicleEx(411,430.00000000,2500.60009766,16.29999924,88.00000000,-1,-1,15); //Infernus
- AddStaticVehicleEx(411,429.69921875,2485.09960938,16.29999924,87.99499512,-1,-1,15); //Infernus
- AddStaticVehicleEx(411,429.79980469,2492.69921875,16.29999924,87.99499512,-1,-1,15); //Infernus
- AddStaticVehicleEx(411,430.00000000,2506.30004883,16.29999924,87.99499512,-1,-1,15); //Infernus
- AddStaticVehicleEx(411,429.79998779,2512.19995117,16.29999924,87.99499512,-1,-1,15); //Infernus
- AddStaticVehicleEx(411,429.89999390,2520.89990234,16.29999924,87.99499512,-1,-1,15); //Infernus
- AddStaticVehicleEx(522,348.00000000,2479.00000000,16.10000038,90.00000000,-1,-1,15); //NRG-500
- AddStaticVehicleEx(522,344.59960938,2479.09960938,16.10000038,90.00000000,-1,-1,15); //NRG-500
- AddStaticVehicleEx(522,351.79998779,2479.19995117,16.10000038,90.00000000,-1,-1,15); //NRG-500
- AddStaticVehicleEx(522,-1293.09997559,-133.30000305,13.80000019,0.00000000,-1,-1,15); //NRG-500
- AddStaticVehicleEx(522,-1278.19921875,-124.39941406,13.80000019,0.00000000,-1,-1,15); //NRG-500
- AddStaticVehicleEx(522,-1282.09960938,-127.09960938,13.80000019,0.00000000,-1,-1,15); //NRG-500
- AddStaticVehicleEx(522,-1286.89941406,-129.89941406,13.80000019,0.00000000,-1,-1,15); //NRG-500
- AddStaticVehicleEx(411,-1264.40002441,-80.90000153,13.89999962,0.00000000,-1,-1,15); //Infernus
- AddStaticVehicleEx(411,-1291.50000000,-92.50000000,13.89999962,0.00000000,-1,-1,15); //Infernus
- AddStaticVehicleEx(411,-1272.09960938,-83.79980469,13.89999962,0.00000000,-1,-1,15); //Infernus
- AddStaticVehicleEx(411,-1281.29980469,-88.00000000,13.89999962,0.00000000,-1,-1,15); //Infernus
- CreateObject(13645,367.00000000,2505.69995117,16.20000076,0.00000000,0.00000000,92.00000000); //object(kickramp06) (1)
- CreateObject(13645,367.79998779,2487.10009766,16.20000076,0.00000000,0.00000000,91.99951172); //object(kickramp06) (2)
- CreateObject(13645,367.19921875,2502.89941406,16.20000076,0.00000000,0.00000000,91.99951172); //object(kickramp06) (3)
- CreateObject(13645,367.29980469,2500.09960938,16.20000076,0.00000000,0.00000000,91.99951172); //object(kickramp06) (4)
- CreateObject(13645,367.29998779,2497.60009766,16.20000076,0.00000000,0.00000000,91.99951172); //object(kickramp06) (5)
- CreateObject(13645,367.50000000,2495.09960938,16.20000076,0.00000000,0.00000000,91.99951172); //object(kickramp06) (6)
- CreateObject(13645,367.50000000,2492.29980469,16.20000076,0.00000000,0.00000000,91.99951172); //object(kickramp06) (7)
- CreateObject(13645,367.59960938,2489.69921875,16.20000076,0.00000000,0.00000000,91.99951172); //object(kickramp06) (8)
- CreateObject(13645,359.60000610,2515.80004883,16.39999962,0.00000000,0.00000000,273.99957275); //object(kickramp06) (9)
- CreateObject(13645,366.89941406,2508.50000000,16.29999924,0.00000000,0.00000000,91.99951172); //object(kickramp06) (10)
- CreateObject(13645,366.69921875,2511.29980469,16.29999924,0.00000000,0.00000000,91.99951172); //object(kickramp06) (11)
- CreateObject(13645,366.50000000,2514.09960938,16.29999924,0.00000000,0.00000000,91.99951172); //object(kickramp06) (12)
- CreateObject(1632,323.20001221,2522.10009766,17.00000000,0.00000000,0.00000000,88.00000000); //object(waterjump1) (1)
- CreateObject(1632,323.00000000,2484.10009766,16.79999924,0.00000000,0.00000000,87.99499512); //object(waterjump1) (2)
- CreateObject(1632,321.89999390,2502.89990234,16.79999924,0.00000000,0.00000000,87.99499512); //object(waterjump1) (3)
- CreateObject(1655,264.50000000,2494.80004883,16.89999962,0.00000000,0.00000000,90.00000000); //object(waterjumpx2) (1)
- CreateObject(1655,264.29980469,2503.89941406,16.70000076,0.00000000,0.00000000,90.00000000); //object(waterjumpx2) (2)
- CreateObject(1655,264.70001221,2512.69995117,17.00000000,0.00000000,0.00000000,90.00000000); //object(waterjumpx2) (3)
- CreateObject(13645,366.39941406,2516.79980469,16.29999924,0.00000000,0.00000000,91.99951172); //object(kickramp06) (13)
- CreateObject(13645,359.89999390,2513.30004883,16.29999924,0.00000000,0.00000000,273.99902344); //object(kickramp06) (14)
- CreateObject(13645,360.20001221,2510.60009766,16.29999924,0.00000000,0.00000000,273.99902344); //object(kickramp06) (15)
- CreateObject(13645,360.39999390,2507.89990234,16.20000076,0.00000000,0.00000000,273.99902344); //object(kickramp06) (16)
- CreateObject(13645,360.70001221,2505.30004883,16.20000076,0.00000000,0.00000000,273.99902344); //object(kickramp06) (17)
- CreateObject(13645,361.00000000,2502.60009766,16.20000076,0.00000000,0.00000000,273.99902344); //object(kickramp06) (18)
- CreateObject(13645,361.29998779,2500.10009766,16.20000076,0.00000000,0.00000000,273.99902344); //object(kickramp06) (19)
- CreateObject(13645,361.60000610,2497.30004883,16.20000076,0.00000000,0.00000000,273.99902344); //object(kickramp06) (20)
- CreateObject(13645,361.79998779,2494.50000000,16.20000076,0.00000000,0.00000000,273.99902344); //object(kickramp06) (21)
- CreateObject(13645,362.00000000,2491.89990234,16.20000076,0.00000000,0.00000000,273.99902344); //object(kickramp06) (22)
- CreateObject(13645,362.29998779,2489.19995117,16.20000076,0.00000000,0.00000000,273.99902344); //object(kickramp06) (23)
- CreateObject(13645,362.60000610,2486.60009766,16.20000076,0.00000000,0.00000000,273.99902344); //object(kickramp06) (24)
- AddStaticVehicle(411,1997.9850,-2263.2759,13.2739,88.0868,255,15); // Airport Infernus 1
- AddStaticVehicle(411,1994.4342,-2255.7090,13.2740,87.5867,255,15); // Airport Infernus 2
- AddStaticVehicle(411,1996.4342,-2245.3882,13.2740,92.4516,255,15); // Airport Infernus 3
- AddStaticVehicle(589,1697.00000000,-2315.10009766,13.10000038,90.00000000,-1,15); //Club
- AddStaticVehicle(458,1631.80004883,-2315.39990234,13.39999962,90.00000000,-1,15); //Solair
- AddStaticVehicle(521,1636.59997559,-2324.10009766,13.00000000,90.00000000,-1,15); //FCR-900
- AddStaticVehicle(411,1768.00000000,-1860.40002441,13.39999962,270.00000000,-1,15); //Infernus
- AddStaticVehicle(560,1760.30004883,-1860.40002441,13.39999962,268.00000000,-1,15); //Sultan
- CreateObject(976,2363.00000000,-2088.60009766,20.20000076,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (1)
- CreateObject(976,2354.10009766,-2088.50000000,20.20000076,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (2)
- CreateObject(976,2345.39990234,-2088.50000000,20.20000076,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (3)
- CreateObject(976,2345.39990234,-2088.39990234,20.20000076,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (4)
- CreateObject(976,2363.00000000,-2088.50000000,23.29999924,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (5)
- CreateObject(976,2354.19995117,-2088.39990234,23.29999924,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (6)
- CreateObject(976,2345.39990234,-2088.30004883,23.20000076,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (7)
- CreateObject(976,2345.39990234,-2088.19995117,23.29999924,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (8)
- CreateObject(976,2345.69995117,-2079.69995117,20.20000076,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (9)
- CreateObject(976,2345.69995117,-2079.69995117,23.50000000,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (10)
- CreateObject(976,2346.00000000,-2070.89990234,20.20000076,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (11)
- CreateObject(976,2346.00000000,-2071.00000000,23.50000000,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (12)
- CreateObject(976,2346.50000000,-2062.19995117,20.20000076,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (13)
- CreateObject(976,2355.30004883,-2062.19995117,20.20000076,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (14)
- CreateObject(976,2361.60009766,-2062.10009766,20.20000076,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (15)
- CreateObject(976,2370.00000000,-2070.60009766,20.20000076,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (16)
- CreateObject(976,2369.69995117,-2079.19995117,20.20000076,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (17)
- CreateObject(976,2346.60009766,-2062.19995117,23.39999962,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (18)
- CreateObject(976,2355.30004883,-2062.10009766,23.39999962,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (19)
- CreateObject(976,2361.60009766,-2062.00000000,23.39999962,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (20)
- CreateObject(976,2369.39990234,-2087.89990234,20.20000076,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (21)
- CreateObject(976,2369.80004883,-2088.50000000,20.50000000,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (22)
- CreateObject(976,2369.89990234,-2088.39990234,23.39999962,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (23)
- CreateObject(976,2370.19995117,-2079.80004883,23.50000000,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (24)
- CreateObject(976,2370.00000000,-2070.89990234,23.10000038,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (25)
- CreateObject(973,1752.80004883,-1849.80004883,13.39999962,0.00000000,0.00000000,0.00000000); //object(sub_roadbarrier) (1)
- CreateObject(973,1762.09997559,-1849.80004883,13.39999962,0.00000000,0.00000000,0.00000000); //object(sub_roadbarrier) (2)
- CreateObject(973,1771.19995117,-1849.80004883,13.39999962,0.00000000,0.00000000,0.00000000); //object(sub_roadbarrier) (3)
- CreateObject(973,1780.19995117,-1849.80004883,13.39999962,0.00000000,0.00000000,0.00000000); //object(sub_roadbarrier) (4)
- CreateObject(973,1789.30004883,-1849.80004883,13.39999962,0.00000000,0.00000000,0.00000000); //object(sub_roadbarrier) (5)
- CreateObject(973,1798.50000000,-1849.80004883,13.39999962,0.00000000,0.00000000,0.00000000); //object(sub_roadbarrier) (6)
- CreateObject(973,1806.50000000,-1849.80004883,13.39999962,0.00000000,0.00000000,0.00000000); //object(sub_roadbarrier) (7)
- CreateObject(973,1700.00000000,-1838.40002441,13.39999962,0.00000000,0.00000000,92.00000000); //object(sub_roadbarrier) (8)
- CreateObject(973,1700.50000000,-1847.19995117,13.39999962,0.00000000,0.00000000,92.00000000); //object(sub_roadbarrier) (9)
- CreateObject(973,1700.69995117,-1865.50000000,13.39999962,0.00000000,0.00000000,92.00000000); //object(sub_roadbarrier) (10)
- CreateObject(974,1842.69995117,-1855.59997559,14.00000000,0.00000000,0.00000000,92.00000000); //object(tall_fence) (1)
- CreateObject(11245,1751.19995117,-1867.09997559,25.79999924,0.00000000,0.00000000,0.00000000); //object(sfsefirehseflag) (1)
- CreateObject(11245,1751.19995117,-1865.90002441,25.70000076,0.00000000,0.00000000,0.00000000); //object(sfsefirehseflag) (2)
- CreateObject(11245,1751.19995117,-1864.80004883,25.70000076,0.00000000,0.00000000,0.00000000); //object(sfsefirehseflag) (3)
- CreateObject(11470,2348.39990234,-2083.10009766,25.29999924,0.00000000,0.00000000,0.00000000); //object(des_bigbull) (1)
- CreateObject(14629,2363.10009766,-2068.00000000,29.89999962,0.00000000,0.00000000,0.00000000); //object(mafcas_chande) (1)
- CreateObject(18813, -1361.72, -13.94, 341.55, 0.00, 0.00, 0.00);
- CreateObject(18820, -1361.18, -14.96, 199.74, 0.00, 0.00, 0.00);
- CreateObject(18818, -1311.27, -14.56, 191.87, 0.00, 0.00, 1.40);
- CreateObject(18811, -1311.26, -14.52, 161.41, 0.00, 0.00, 0.00);
- CreateObject(18813, -1310.53, -26.32, 111.95, 0.00, 0.00, 0.00);
- CreateObject(18824, -1393.97, -14.22, 176.20, 0.00, 0.00, 354.40);
- CreateObject(18809, -1361.29, -15.31, 151.31, 0.00, 0.00, 0.00);
- CreateObject(18824, -1277.65, -13.17, 175.92, 0.00, 0.00, 181.36);
- CreateObject(16305, -1324.81, -113.25, 18.04, 0.00, 0.00, 0.00);
- CreateObject(16305, -1312.40, -10.11, 18.04, 0.00, 0.00, 0.00);
- CreateObject(18784, -1408.51, -262.59, 26.11, 0.00, 0.00, 139.57);
- CreateObject(13641, -1351.36, -87.69, 14.02, 0.00, 0.00, 308.86);
- CreateObject(13641, -1369.27, -294.17, 25.41, 0.00, 0.00, 35.11);
- CreateObject(18784, -1261.47, -106.92, 15.48, 0.00, 0.00, 44.09);
- CreateObject(18801, -1287.96, -82.45, 33.80, 0.00, 0.00, 321.35);
- CreateObject(18801, -1200.77, -57.28, 48.01, 0.00, 0.00, 51.47);
- CreateObject(18784, -1628.22, -294.08, 13.63, 0.00, 0.00, 222.56);
- CreateObject(16305, -1644.38, -310.63, 18.13, 0.00, 0.00, 0.00);
- CreateObject(18784, -1663.61, -326.95, 13.63, 0.00, 0.00, 41.04);
- CreateObject(10464, -1258.50, -180.90, 39.49, 0.00, 0.00, 221.85);
- CreateObject(18769, -1549.30, -412.15, 112.92, 0.00, 0.00, 310.41);
- CreateObject(18769, -1521.45, -414.33, 112.92, 0.00, 0.00, 310.41);
- CreateObject(18769, -1534.27, -399.73, 112.92, 0.00, 0.00, 310.41);
- CreateObject(18769, -1509.19, -429.52, 112.92, 0.00, 0.00, 310.41);
- CreateObject(18769, -1523.79, -442.22, 112.92, 0.00, 0.00, 310.41);
- CreateObject(18769, -1536.52, -427.12, 112.92, 0.00, 0.00, 310.41);
- CreateObject(10464, -1453.58, -354.45, 100.24, 0.00, 0.00, 221.39);
- CreateObject(10464, -1381.90, -290.68, 79.01, 0.00, 0.00, 222.00);
- CreateObject(10464, -1320.31, -235.72, 60.39, 0.00, 0.00, 221.41);
- CreateObject(18780, -1185.66, -123.77, 36.02, 0.00, 0.00, 40.70);
- CreateObject(18780, -1192.11, -116.18, 36.02, 0.00, 0.00, 40.70);
- CreateObject(18780, -1519.69, -183.10, 21.81, 0.00, 0.00, 344.18);
- CreateObject(13637, -1361.83, -556.50, 14.93, 0.00, 0.00, 352.24);
- CreateObject(13643, -1264.39, -487.33, 14.35, 0.00, 0.00, 315.67);
- CreateObject(13643, -1302.95, -447.86, 14.35, 0.00, 0.00, 315.67);
- CreateObject(13643, -1284.24, -466.41, 14.35, 0.00, 0.00, 315.67);
- CreateObject(13636, -1250.36, -511.91, 14.96, 0.00, 0.00, 223.07);
- CreateObject(13593, -1282.49, -476.17, 13.62, 0.00, 0.00, 312.86);
- CreateObject(13604, -1295.24, -569.76, 14.70, 0.00, 0.00, 0.00);
- CreateObject(18780, -1205.25, -437.56, 16.49, 0.00, 0.00, 319.88);
- CreateObject(18801, -1193.94, -436.61, 35.34, 0.00, 0.00, 315.27);
- CreateObject(13641, -1500.77, -542.94, 13.89, 0.00, 0.00, 113.76);
- CreateObject(18780, -1651.29, -453.19, 26.29, 0.00, 0.00, 314.70);
- CreateObject(18780, -1556.92, -547.78, 26.29, 0.00, 0.00, 134.45);
- CreateObject(18813, -1583.79, -609.38, 7.05, 0.00, 0.00, 0.00);
- CreateObject(19005, -1501.80, -587.31, 16.13, 0.00, 0.00, 104.27);
- CreateObject(19005, -1503.39, -450.58, 115.87, 0.00, 0.00, 221.92);
- CreateObject(19005, -1551.93, -388.31, 115.87, 0.00, 0.00, 38.19);
- CreateVehicle(481, -1520.3252, -417.7644, 119.5629, 352.6050, -1, -1, 100);
- CreateVehicle(411, -1364.3021, -216.0992, 13.6834, 0.0000, -1, -1, 100);
- CreateVehicle(522, -1348.8464, -105.4205, 13.8155, 0.0000, -1, -1, 100);
- AddStaticVehicle(411,2507.0330,-1677.0601,13.1873,147.6152,34,98); // Grove Infernus 1
- AddStaticVehicle(411,2492.4329,-1684.7371,13.1481,90.5563,34,98); // Grove Infernus 2
- AddStaticVehicle(411,2479.0793,-1653.2080,13.1201,90.0176,34,98); // Grove Infernus 3
- AddStaticVehicle(411,2061.4048,-1169.8909,23.4757,0.2064,34,98); // Ballas Infernus 1
- AddStaticVehicle(411,2077.3059,-1170.7280,23.4728,180.5606,34,98); // Ballas Infernus 2
- AddStaticVehicle(411,2077.3286,-1203.4354,23.5648,182.8079,34,98); // Ballas Infernus 3
- AddStaticVehicle(596,1591.5428,-1710.4375,5.6177,178.5503,34,98); // PD Car 1
- AddStaticVehicle(596,1583.5043,-1709.9331,5.6177,178.4619,34,98); // PD Car 2
- AddStaticVehicle(596,1574.2031,-1709.2150,5.6177,182.1631,34,98); // PD Car 3
- AddStaticVehicle(596,1564.5828,-1710.1979,5.6177,178.8155,34,98); // PD Car 4
- printf("|_________Mapping Loaded!__________|");
- // Unity Classes
- AddPlayerClass(115, 1766.5635,-1847.7111,13.5781,183.4783, 24, 70,0,0,0,0); // Unity Class 1
- AddPlayerClass(33, 1766.5635,-1847.7111,13.5781,183.4783, 24, 70,0,0,0,0); // Unity Class 2
- AddPlayerClass(53, 1766.5635,-1847.7111,13.5781,183.4783, 24, 70,0,0,0,0); // Unity Class 3
- // Grove Classes
- AddPlayerClass(105,2504.0347,-1652.5273,13.5938,140.7401, 24, 70,0,0,0,0); // Grove Class 1
- AddPlayerClass(106,2512.7522,-1675.1533,13.5483,80.8929, 24, 70,0,0,0,0); // Grove Class 2
- AddPlayerClass(107,2504.1245,-1685.8965,13.5469,44.8592, 24, 70,0,0,0,0); // Grove Class 3
- // Ballas Classes
- AddPlayerClass(102,2055.9773,-1192.9594,23.7984,267.8276, 24, 70,0,0,0,0); // Ballas Class 1
- AddPlayerClass(103,2055.5042,-1167.6951,23.7719,270.9610, 24, 70,0,0,0,0); // Ballas Class 2
- AddPlayerClass(104,2055.7559,-1151.1599,23.7852,270.9610, 24, 70,0,0,0,0); // Ballas Class 3
- // PD Classes
- AddPlayerClass(280,1578.6930,-1694.5786,6.2188,186.0260, 24, 70,0,0,0,0); // PD Class 1
- AddPlayerClass(283,1572.8768,-1694.2316,6.2188,172.5525, 24, 70,0,0,0,0); // PD Class 2
- AddPlayerClass(288,1566.6099,-1693.9060,5.8906,171.6125, 24, 70,0,0,0,0); // PD Class 3
- AddPlayerClass(285,1561.4171,-1693.9485,5.8906,177.2525, 24, 70,0,0,0,0); // PD Class 4
- return 1;
- }
- static const VehicleName[212][] = {
- "Landstalker","Bravura","Buffalo","Linerunner","Perennial","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","Previon","Coach","Cabbie","Stallion","Rumpo","RC Bandit", "Romero",
- "Packer","Monster","Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer","Turismo","Speeder","Reefer","Tropic","Flatbed",
- "Yankee","Caddy","Solair","Berkley's RC Van","Skimmer","PCJ-600","Faggio","Freeway","RC Baron","RC Raider",
- "Glendale","Oceanic","Sanchez","Sparrow","Patriot","Quad","Coastguard","Dinghy","Hermes","Sabre","Rustler",
- "ZR-350","Walton","Regina","Comet","BMX","Burrito","Camper","Marquis","Baggage","Dozer","Maverick","News Chopper",
- "Rancher","FBI Rancher","Virgo","Greenwood","Jetmax","Hotring Racer","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","Cropduster","Stuntplane","Tanker","Road Train","Nebula","Majestic",
- "Buccaneer","Shamal","Hydra","FCR-900","NRG-500","HPV-1000","Cement Truck","Tow Truck","Fortune","Cadrona","FBI Truck",
- "Willard","Forklift","Tractor","Combine","Feltzer","Remington","Slamvan","Blade","Freight","Streak","Vortex","Vincent",
- "Bullet","Clover","Sadler","Firetruck","Hustler","Intruder","Primo","Cargobob","Tampa","Sunrise","Merit","Utility",
- "Nevada","Yosemite","Windsor","Monster A","Monster B","Uranus","Jester","Sultan","Stratum","Elegy","Raindance","RC Tiger",
- "Flash","Tahoma","Savanna","Bandito","Freight","Trailer","Kart","Mower","Duneride","Sweeper","Broadway",
- "Tornado","AT-400","DFT-30","Huntley","Stafford","BF-400","Newsvan","Tug","Trailer","Emperor","Wayfarer",
- "Euros","Hotdog","Club","Trailer","Trailer","Andromada","Dodo","RCCam","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"
- };
- stock SendReportToQue(reportfrom, report[])
- {
- new bool:breakingloop = false, newid = INVALID_REPORT_ID;
- for(new i=0;i<MAX_REPORTS;i++)
- {
- if(!breakingloop)
- {
- if(Reports[i][HasBeenUsed] == 0)
- {
- breakingloop = true;
- newid = i;
- }
- }
- }
- if(newid != INVALID_REPORT_ID)
- {
- strmid(Reports[newid][Report], report, 0, strlen(report), 128);
- Reports[newid][ReportFrom] = reportfrom;
- Reports[newid][TimeToExpire] = 5;
- Reports[newid][HasBeenUsed] = 1;
- Reports[newid][BeingUsed] = 1;
- Reports[newid][ReportExpireTimer] = SetTimerEx("ReportTimer", 60000, 0, "d", newid);
- new string[128];
- format(string, sizeof(string), "Report from [%i] %s (RID: %i): %s", reportfrom, GetPlayerNameEx(reportfrom), newid, (report));
- ABroadCast(COLOR_REPORT,string,1);
- }
- }
- stock GetPlayerNameEx(playerid)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- return name;
- }
- stock fcreate(filename[])
- {
- if (fexist(filename)) return false;
- new File:fhnd;
- fhnd=fopen(filename,io_write);
- if (fhnd)
- {
- fclose(fhnd);
- return true;
- }
- return false;
- }
- stock PlayerName(playerid)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, MAX_PLAYER_NAME);
- return name;
- }
- doesAccountExist(account_name[])
- {
- new sz_accStr[MAX_PLAYER_NAME + 12];
- format(sz_accStr, sizeof(sz_accStr), "Users/%s.ini", account_name);
- if(fexist(sz_accStr))
- {
- new File: f_Handle = fopen(sz_accStr, io_read);
- if(flength(f_Handle) > 0)
- {
- fclose(f_Handle);
- return 1;
- }
- fclose(f_Handle);
- }
- return 0;
- }
- SendClientMessageEx(playerid, color, string[])
- {
- SendClientMessage(playerid, color, string);
- return 1;
- }
- SendClientMessageToAllEx(color, string[])
- {
- foreach(Player, i)
- {
- SendClientMessage(i, color, string);
- }
- return 1;
- }
- /*
- Log(sz_fileName[], sz_input[])
- {
- new sz_logEntry[156], i_dateTime[2][3], File: fileHandle = fopen(sz_fileName, io_append);
- gettime(i_dateTime[0][0], i_dateTime[0][1], i_dateTime[0][2]);
- getdate(i_dateTime[1][0], i_dateTime[1][1], i_dateTime[1][2]);
- format(sz_logEntry, sizeof(sz_logEntry), "[%i/%i/%i - %i:%i:%i] %s\r\n", i_dateTime[1][0], i_dateTime[1][1], i_dateTime[1][2], i_dateTime[0][0], i_dateTime[0][1], i_dateTime[0][2], sz_input);
- fwrite(fileHandle, sz_logEntry);
- return fclose(fileHandle);
- }*/
- CheckBan(ip[])
- {
- new string[20];
- new File: file = fopen("Ban.cfg", io_read);
- while(fread(file, string))
- {
- if (strcmp(ip, string, true, strlen(ip)) == 0)
- {
- fclose(file);
- return 1;
- }
- }
- fclose(file);
- return 0;
- }
- AddBan(ip[])
- {
- if (CheckBan(ip) == 0)
- {
- new File: file = fopen("Ban.cfg", io_append);
- new string[20];
- format(string, sizeof(string), "\n%s", ip);
- fwrite(file, string);
- fclose(file);
- foreach(Player, playerid)
- {
- new playerIP[16];
- GetPlayerIp(playerid, playerIP, sizeof(playerIP));
- if (strcmp(playerIP, ip) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "SERVER: You are banned from this server.");
- Kick(playerid);
- }
- }
- return 1;
- }
- return 0;
- }
- RemoveBan(ip[])
- {
- if (CheckBan(ip) == 1)
- {
- new string[20];
- new File: file = fopen("Ban.cfg", io_read);
- fcreate("tempBan.cfg");
- new File: file2 = fopen("tempBan.cfg", io_append);
- while(fread(file, string))
- {
- if (strcmp(ip, string, true, strlen(ip)) != 0 && strcmp("\n", string) != 0)
- {
- fwrite(file2, string);
- }
- }
- fclose(file);
- fclose(file2);
- file = fopen("Ban.cfg", io_write);
- file2 = fopen("tempBan.cfg", io_read);
- while(fread(file2, string))
- {
- fwrite(file, string);
- }
- fclose(file);
- fclose(file2);
- fremove("tempBan.cfg");
- return 1;
- }
- return 0;
- }
- enum pInfo
- {
- pPass,
- pCash,
- pAdmin,
- pKills,
- pDeaths,
- pMuted,
- pBanned,
- pReportBanned,
- pConnectedTime,
- }
- /*
- INI_Int("Muted",PlayerInfo[playerid][pMuted]);
- INI_Int("Banned",PlayerInfo[playerid][pBanned]);
- INI_Int("ReportBanned",PlayerInfo[playerid][pReportBanned]);
- INI_Int("PlayingHours",PlayerInfo[playerid][pConnectedTime]);*/
- new PlayerInfo[MAX_PLAYERS+1][pInfo];
- forward LoadUser_data(playerid,name[],value[]);
- public LoadUser_data(playerid,name[],value[])
- {
- INI_Int("Password",PlayerInfo[playerid][pPass]);
- INI_Int("Cash",PlayerInfo[playerid][pCash]);
- INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
- INI_Int("Kills",PlayerInfo[playerid][pKills]);
- INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
- INI_Int("Muted",PlayerInfo[playerid][pMuted]);
- INI_Int("Banned",PlayerInfo[playerid][pBanned]);
- INI_Int("ReportBanned",PlayerInfo[playerid][pReportBanned]);
- INI_Int("PlayingHours",PlayerInfo[playerid][pConnectedTime]);
- return 1;
- }
- UnbanPlayer(playername[])
- {
- new string[32];
- format(string, sizeof(string), "Users/%s.ini", playername);
- PlayerInfo[MAX_PLAYERS][pBanned] = 0;
- return 1;
- }
- stock UserPath(playerid)
- {
- new string[128],playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid,playername,sizeof(playername));
- format(string,sizeof(string),AccPath,playername);
- return string;
- }
- stock udb_hash(buf[])
- {
- new length=strlen(buf);
- new s1 = 1;
- new s2 = 0;
- new n;
- for (n=0; n<length; n++)
- {
- s1 = (s1 + buf[n]) % 65521;
- s2 = (s2 + s1) % 65521;
- }
- return (s2 << 16) + s1;
- }
- CheckText(text[])
- {
- new dotcount, numbercount;
- for(new s, l = strlen(text); s < l; s++)
- {
- if (text[s] == ':' && dotcount == 3 && numbercount >= 8)
- {
- return 0;
- }
- if (text[s] == '.' && dotcount < 3) dotcount ++;
- //if (IsNumeric(text[s])) numbercount++;
- if ('0' <= text[s] <= '9') numbercount ++;
- }
- return 1;
- }
- ShowStats(playerid, targetid)
- {
- new coordsstring[128];
- #pragma unused targetid
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW,"|__________Stats__________|");
- format(coordsstring, sizeof(coordsstring),"Name: %s - Admin Level = [%d] - Kills = [%d] - Deaths = [%d] - Playing Hours = [%d]",PlayerName(playerid), PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths],PlayerInfo[playerid][pConnectedTime]);
- SendClientMessage(playerid, COLOR_LIGHTGREEN,coordsstring);
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW,"|__________Stats__________|");
- format(coordsstring, sizeof(coordsstring),"Name: %s - Kills = [%d] - Deaths = [%d] - Playing Hours = [%d]",PlayerName(playerid),PlayerInfo[playerid][pKills],PlayerInfo[playerid][pDeaths],PlayerInfo[playerid][pConnectedTime]);
- SendClientMessage(playerid, COLOR_LIGHTGREEN,coordsstring);
- }
- return 1;
- }
- //new PlayerInfo[MAX_PLAYERS+1][pInfo];
- public ABroadCast(color,const string[],level)
- {
- //FuncLog("ABroadCast");
- foreach(Player, i)
- {
- if (PlayerInfo[i][pAdmin] >= level)
- {
- SendClientMessage(i, color, string);
- }
- }
- print(string);
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- if(PlayerInfo[playerid][pMuted] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot speak, you have been silenced!");
- return 0;
- }
- else return 1;
- }
- public SendAdminMessage(color, string[])
- {
- foreach(Player, i)
- {
- if(PlayerInfo[i][pAdmin] >= 1)
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- public OnPlayerConnect(playerid)
- {
- if(PlayerInfo[playerid][pBanned] >= 2)
- {
- new string[128];
- format(string, sizeof(string), "<A> %s has just attempted to login. (A Banned Player.)",PlayerName(playerid));
- SendAdminMessage(COLOR_YELLOW, string);
- SendClientMessage(playerid, COLOR_BRIGHTRED,"You are banned from this server!");
- Kick(playerid);
- return 1;
- }
- else
- {
- SetPlayerScore(playerid, PlayerInfo[playerid][pKills]);
- SetPlayerMoney(playerid, PlayerInfo[playerid][pCash]);
- new string[128];
- format(string, sizeof(string), "<A> %s has joined the server.",PlayerName(playerid));
- SendAdminMessage(COLOR_YELLOW,string);
- if(fexist(UserPath(playerid)))
- {
- INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
- ShowPlayerDialog(playerid,20,DIALOG_PASSWORD,"Login","{24FF0A}Welcome to West Coast DM.\n{FFFFFF}Please enter your password, to ensure your time on WC-DM!\n{24FF0A}Current Version: "SERVER_GM_TEXT"!\n{FF9900}Enjoy your stay!","Login","Exit");
- }
- else
- {
- ShowPlayerDialog(playerid,19,DIALOG_PASSWORD,"Registration","{24FF0A}Welcome to West Coast DM.\n{FFFFFF}Account not found, please register now,\n{24FF0A}Current Version: "SERVER_GM_TEXT"!\n{FF9900}Enjoy your stay!","Register","Exit");
- }
- }
- ptdSpeedo[playerid] =
- CreatePlayerTextDraw (playerid, 630.000000, 370.000000, " ");
- PlayerTextDrawAlignment (playerid, ptdSpeedo[playerid], 3);
- PlayerTextDrawBackgroundColor (playerid, ptdSpeedo[playerid], 255);
- PlayerTextDrawFont (playerid, ptdSpeedo[playerid], 3);
- PlayerTextDrawLetterSize (playerid, ptdSpeedo[playerid], 0.800000, 4.000000);
- PlayerTextDrawColor (playerid, ptdSpeedo[playerid], 16711935);
- PlayerTextDrawSetOutline (playerid, ptdSpeedo[playerid], 1);
- PlayerTextDrawSetProportional (playerid, ptdSpeedo[playerid], 1);
- if (gSpeedo_HasCB[0]) CallLocalFunction("Speedo_OnPlayerConnect", "i", playerid);
- return 1;
- }
- #if defined _ALS_OnPlayerConnect
- #undef OnPlayerConnect
- #else
- #define _ALS_OnPlayerConnect
- #endif
- #define OnPlayerConnect Speedo_OnPlayerConnect
- forward Speedo_OnPlayerConnect(playerid);
- public OnPlayerOfflineSave(playername[])
- {
- new string[32];
- //GetPlayerName(MAX_PLAYERS, playername, MAX_PLAYER_NAME);
- format(string, sizeof(string), "Users/%s.ini", playername);
- new INI:File = INI_Open(string);
- if(fexist(playername))
- {
- new var[156];
- INI_SetTag(File,"data");
- format(var, sizeof(var), "Cash");
- INI_WriteInt(File, var, 5000);
- format(var, sizeof(var), "Admin");
- INI_WriteInt(File, var, PlayerInfo[MAX_PLAYERS][pAdmin]);
- format(var, sizeof(var), "Kills");
- INI_WriteInt(File, var, PlayerInfo[MAX_PLAYERS][pKills]);
- format(var, sizeof(var), "Deaths");
- INI_WriteInt(File, var, PlayerInfo[MAX_PLAYERS][pDeaths]);
- format(var, sizeof(var), "Muted");
- INI_WriteInt(File, var, PlayerInfo[MAX_PLAYERS][pMuted]);
- format(var, sizeof(var), "Banned");
- INI_WriteInt(File, var, PlayerInfo[MAX_PLAYERS][pBanned]);
- format(var, sizeof(var), "ReportBanned");
- INI_WriteInt(File, var, PlayerInfo[MAX_PLAYERS][pReportBanned]);
- format(var, sizeof(var), "PlayingHours");
- INI_WriteInt(File, var, PlayerInfo[MAX_PLAYERS][pConnectedTime]);
- INI_Close(File);
- }
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new string[128];
- format(string, sizeof(string), "<A> %s has left the server.",PlayerName(playerid));
- SendAdminMessage(COLOR_YELLOW,string);
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
- INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
- INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
- INI_WriteInt(File,"Muted",PlayerInfo[playerid][pMuted]);
- INI_WriteInt(File,"Banned",PlayerInfo[playerid][pBanned]);
- INI_WriteInt(File,"ReportBanned",PlayerInfo[playerid][pReportBanned]);
- INI_WriteInt(File,"PlayingHours",PlayerInfo[playerid][pConnectedTime]);
- INI_Close(File);
- AdminDuty[playerid] = 0;
- GodMode[playerid] = 0;
- PlayerTextDrawDestroy(playerid, ptdSpeedo[playerid]);
- if (gSpeedo_HasCB[1]) CallLocalFunction("Speedo_OnPlayerDisconnect", "ii", playerid, reason);
- return 1;
- }
- #if defined _ALS_OnPlayerDisconnect
- #undef OnPlayerDisconnect
- #else
- #define _ALS_OnPlayerDisconnect
- #endif
- #define OnPlayerDisconnect Speedo_OnPlayerDisconnect
- forward Speedo_OnPlayerDisconnect(playerid, reason);
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 2098.8676, 2166.8967, 17.7591);
- SetPlayerInterior(playerid, 0);
- SetPlayerFacingAngle(playerid, 42.8644);
- SetPlayerCameraPos(playerid, 2095.3676, 2170.8967, 19.2591);
- SetPlayerCameraLookAt(playerid, 2098.8676, 2166.8967, 17.7591);
- if(classid == 0)
- {
- GameTextForPlayer(playerid,"~R~ Unity Crew",10000,4);
- }
- if(classid == 4)
- {
- GameTextForPlayer(playerid,"~G~ Grove Crew",10000,4);
- }
- if(classid == 7)
- {
- GameTextForPlayer(playerid,"~P~ Ballas Crew",10000,4);
- }
- if(classid == 10)
- {
- GameTextForPlayer(playerid,"~B~ Police Crew",10000,4);
- }
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- GivePlayerMoney(playerid, -500);
- GivePlayerMoney(killerid, 1000);
- PlayerInfo[playerid][pDeaths] += 1;
- PlayerInfo[killerid][pKills] += 1;
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
- SendClientMessage(playerid, COLOR_ORANGE,"For dying, you have lost $500.");
- SendClientMessage(killerid, COLOR_ORANGE,"For killing someone, you have received $1000.");
- return 1;
- }
- public OnPlayerCommandPerformed(playerid, cmdtext[], success)
- {
- if(!success) SendClientMessage(playerid, COLOR_WHITE, "SERVER: The Command you just entered was unknown, please use /Help.");
- return 1;
- }
- public OnPlayerCommandReceived(playerid, cmdtext[])
- {
- printf("[ZCMD] [%s]: %s", PlayerName(playerid), cmdtext);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- 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)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- if(AntiCheat == 1)
- {
- new Float:Armour;
- GetPlayerArmour(playerid, Armour);
- if(Armour > 99 || Armour == 100)
- {
- new string[128],log[128];
- format(string, sizeof(string), "Notice: %s was Auto-Banned by the System, Reason: Armor Hacks.",PlayerName(playerid));
- SendClientMessageToAll(COLOR_BRIGHTRED, string);
- format(log, sizeof(log), "%s was Auto-Banned for Armour Hacks.",PlayerName(playerid));
- printf(log);
- PlayerInfo[playerid][pBanned] = 1;
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- }
- }
- else
- {
- return 1;
- }
- 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;
- }
- /*
- AddBan(ip[])
- {
- if (CheckBan(ip) == 0)
- {
- new File: file = fopen("ban.cfg", io_append);
- new string[20];
- format(string, sizeof(string), "\n%s", ip);
- fwrite(file, string);
- fclose(file);
- foreach(Player, playerid)
- {
- new playerIP[16];
- GetPlayerIp(playerid, playerIP, sizeof(playerIP));
- if (strcmp(playerIP, ip) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "SERVER: You are banned from this server.");
- Kick(playerid);
- }
- }
- return 1;
- }
- return 0;
- }*/
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Angle);
- pInt = GetPlayerInterior(playerid);
- if(dialogid == 1)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0: // Planes
- { // Shamal, Skimmer, Rustler, Stunt Plane
- ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Airplanes", "1. Andromeda \n2. Dodo \n3. Hydra \n4. Shamal \n5. Skimmer \n6. Rustler \n7. Stunt Plane ", "Spawn", "Cancel");
- return 1;
- }
- case 1: // Sports Cars
- {
- ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Sports Cars", "1. Sultan \n2. Infernus \n3. Bullet \n4. Turismo \n5. Banshee ", "Spawn", "Cancel");
- return 1;
- }
- case 2: // Motor Cycles
- {
- ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Motorcycles", "1. NRG-500 \n2. FCR-900 \n3. BF-400 \n4. Faggio \n5. Police Bike \n6. Sanchez ", "Spawn", "Cancel");
- return 1;
- }
- case 3: // Helicoptors
- {
- ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Helicoptors", "1. Maverick \n2. Hunter \n3. Sea-Sparrow \n4. Raindance", "Spawn", "Cancel");
- return 1;
- }
- }
- }
- return 1;
- }
- if(dialogid == 6)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- SendClientMessage(playerid,COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"|_____Teleport Help_____|");
- SendClientMessage(playerid,COLOR_YELLOW,"/Gotols - Teleports you to Los Santos.");
- SendClientMessage(playerid,COLOR_YELLOW,"/Gotosf - Teleports you to San Fierro.");
- SendClientMessage(playerid,COLOR_YELLOW,"/Gotolv - Teleports you to Las Venturas.");
- SendClientMessage(playerid,COLOR_YELLOW,"/Cage - Teleports you to the Cage!");
- SendClientMessage(playerid,COLOR_YELLOW,"/Stunt - Teleports you to the Stunt Area.");
- SendClientMessage(playerid,COLOR_YELLOW,"/Stunt2 - Teleports you to the Second Stunt Area.");
- SendClientMessage(playerid,COLOR_YELLOW,"/Tpmenu - Brings up a selection of teleports.");
- return 1;
- }
- case 1:
- {
- ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Weapon Menu", "Deagle ($1k)\nSpaz-12 ($5k)\nSniper ($4k)\nMP5 ($1.5k)\nAK-47 ($2k)\nM4 ($3k)", "Next", "Cancel");
- return 1;
- }
- case 2:
- {
- SendClientMessage(playerid,COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"|_____General Help_____|");
- SendClientMessage(playerid,COLOR_YELLOW,"To see the Updates, use /Help, then click Updates.");
- SendClientMessage(playerid,COLOR_YELLOW,"Earning Money: Kill someone to earn Money.");
- SendClientMessage(playerid,COLOR_YELLOW,"Current Version: "SERVER_GM_TEXT"");
- SendClientMessage(playerid,COLOR_YELLOW,"To kill yourself use /Kill.");
- return 1;
- }
- case 3:
- {
- SendClientMessage(playerid,COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"|_____Other Commands_____|");
- SendClientMessage(playerid,COLOR_YELLOW,"/CHC /Zacklarson /Diablo /Goto /Armor /Heal");
- return 1;
- }
- case 4:
- {
- SendClientMessage(playerid,COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"|_____"SERVER_GM_TEXT" Updates_____|");
- SendClientMessage(playerid,COLOR_YELLOW,"* Updates: /Gate - Useable at Grove Street, and LSPD.");
- SendClientMessage(playerid,COLOR_YELLOW,"* Bug Fixes: Fixed AdminCommand: (/FixCars).");
- return 1;
- }
- case 5:
- {
- SendClientMessage(playerid,COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"|_____Car Help_____|");
- SendClientMessage(playerid,COLOR_YELLOW,"/FixCar /Nitro /CarMenu");
- return 1;
- }
- case 6:
- {
- return cmd_wcrp(playerid);
- }
- }
- }
- return 1;
- }
- if(dialogid == 2)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0: // Sultan
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Sultan!");
- CreateVehicle(560, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- case 1: // Infernus
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Infernus!");
- CreateVehicle(411, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- case 2: // Bullet
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Bullet!");
- CreateVehicle(541, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- case 3: // Turismo
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Turismo!");
- CreateVehicle(451, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- case 4: // Banshee
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Banshee!");
- CreateVehicle(429, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- }
- }
- return 1;
- }
- if(dialogid == 3)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0: // Andromeda
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Andromeda!");
- CreateVehicle(592, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- case 1: // Dodo
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Dodo!");
- CreateVehicle(593, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- case 2: // Hydra
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Hydra!");
- CreateVehicle(520, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- case 3: // Shamal
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Shamal!");
- CreateVehicle(519, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- case 4: // Skimmer
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Skimmer!");
- CreateVehicle(460, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- case 5: // Rustler
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Rustler!");
- CreateVehicle(476, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- case 6: // Stunt Plane
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Stunt Plane!");
- CreateVehicle(513, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- }
- }
- return 1;
- }
- if(dialogid == 4)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0: // NRG-500
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a NRG-500!");
- CreateVehicle(522, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- case 1: // FCR-600
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a FCR-900!");
- CreateVehicle(521, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- case 2: // BF-400
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a BF-400!");
- CreateVehicle(581, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- case 3: // Faggio
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Faggio!");
- CreateVehicle(462, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- case 4: // Police Bike
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Police Bike!");
- CreateVehicle(523, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- case 5: // Sanchez
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Sanchez!");
- CreateVehicle(468, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- }
- }
- return 1;
- }
- if(dialogid == 5)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0: // Maverick
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Maverick!");
- CreateVehicle(487, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- case 1: // Hunter
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Hunter!");
- CreateVehicle(425, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- case 2: // Sea-Sparrow
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Sea-Sparrow!");
- CreateVehicle(447, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- case 3: // Raindance
- {
- SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Raindance!");
- CreateVehicle(563, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- return 1;
- }
- }
- }
- return 1;
- }
- if(dialogid == 7)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0: // Deagle
- {
- if(GetPlayerMoney(playerid) > 999)
- {
- GivePlayerWeapon(playerid, 24, 70);
- SendClientMessage(playerid, COLOR_WHITE,"You have bought a Deagle!");
- GivePlayerMoney(playerid, -999);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE,"You don't have enough money to buy a Deagle!");
- }
- return 1;
- }
- case 1: // Spas-12
- {
- if(GetPlayerMoney(playerid) > 4999)
- {
- GivePlayerWeapon(playerid, 27, 120);
- SendClientMessage(playerid, COLOR_WHITE,"You have bought a Spas12!");
- GivePlayerMoney(playerid, -5000);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE,"You don't have enough money to buy a Spaz12!");
- }
- return 1;
- }
- case 2: // Sniper
- {
- if(GetPlayerMoney(playerid) > 3999)
- {
- GivePlayerWeapon(playerid, 34, 120);
- SendClientMessage(playerid, COLOR_WHITE,"You have bought a Sniper!");
- GivePlayerMoney(playerid, -4000);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE,"You don't have enough money to buy a Sniper!");
- }
- return 1;
- }
- case 3: // MP5
- {
- if(GetPlayerMoney(playerid) > 1499)
- {
- GivePlayerWeapon(playerid, 29, 250);
- SendClientMessage(playerid, COLOR_WHITE,"You have bought an MP5!");
- GivePlayerMoney(playerid, -1500);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE,"You don't have enough money to buy a MP5!");
- }
- return 1;
- }
- case 4: // AK-47
- {
- if(GetPlayerMoney(playerid) > 1999)
- {
- GivePlayerWeapon(playerid, 30, 300);
- SendClientMessage(playerid, COLOR_WHITE,"You have bought an AK-47!");
- GivePlayerMoney(playerid, -2000);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE,"You don't have enough money to buy an AK-47!");
- }
- return 1;
- }
- case 5: // M4
- {
- if(GetPlayerMoney(playerid) > 2999)
- {
- GivePlayerWeapon(playerid, 31, 300);
- SendClientMessage(playerid, COLOR_WHITE,"You have bought an M4");
- GivePlayerMoney(playerid, -3000);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE,"You don't have enough money to buy an M4!");
- }
- return 1;
- }
- case 6: // Health and Armor.
- {
- if(GetPlayerMoney(playerid) > 2999)
- {
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 99);
- SendClientMessage(playerid, COLOR_WHITE,"You have bought full Health and Armor.");
- GivePlayerMoney(playerid, -3000);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE,"You don't have enough money to buy Health and Armor!");
- }
- return 1;
- }
- }
- }
- return 1;
- }
- if(dialogid == 8)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0: // Los Santos
- {
- SetPlayerPos(playerid,1766.5635,-1847.7111,13.5781);
- new string[128];
- format(string, sizeof(string), "%s has just gone to LS.", PlayerName(playerid));
- SendClientMessageToAllEx(COLOR_WHITE, string);
- return 1;
- }
- case 1: // San Fierro
- {
- SetPlayerPos(playerid,-2027.4500,174.5800,28.8359);
- new string[128];
- format(string, sizeof(string), "%s has just gone to SF.", PlayerName(playerid));
- SendClientMessageToAll(COLOR_WHITE, string);
- return 1;
- }
- case 2: // Las Venturas
- {
- SetPlayerPos(playerid,1699.2000,1435.1000,10.7023);
- new string[128];
- format(string, sizeof(string), "%s has just gone to LV.", PlayerName(playerid));
- SendClientMessageToAll(COLOR_WHITE, string);
- return 1;
- }
- case 3: // The Cage
- {
- new string[128];
- SetPlayerPos(playerid,2357.8000488281,-2077.1000976563,21.89999961853);
- format(string, sizeof(string), "%s has just gone to /Cage.", PlayerName(playerid));
- SendClientMessageToAll(COLOR_WHITE, string);
- SetPlayerAmmo(playerid, WEAPON_DEAGLE, 0);
- SetPlayerAmmo(playerid, WEAPON_SHOTGSPA, 0);
- SetPlayerAmmo(playerid, WEAPON_SNIPER, 0);
- SetPlayerAmmo(playerid, WEAPON_M4, 0);
- SetPlayerAmmo(playerid, WEAPON_MP5, 0);
- SetPlayerAmmo(playerid, WEAPON_AK47, 0);
- GivePlayerWeapon(playerid, 24, 10000);
- GivePlayerWeapon(playerid, 27, 10000);
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 99);
- return 1;
- }
- case 4: // Airfield Stunt
- {
- new string[128];
- SetPlayerPos(playerid,427.7995,2506.2620,16.4844);
- format(string, sizeof(string), "System: %s has just gone to /Stunt!",PlayerName(playerid));
- SendClientMessageToAll(COLOR_WHITE,string);
- return 1;
- }
- case 5: // San Fierro Stunt
- {
- new string[128];
- SetPlayerPos(playerid,-1309.3000488281,-87.300003051758,15.39999961853);
- format(string, sizeof(string), "System: %s has just gone to /Stunt2!",PlayerName(playerid));
- SendClientMessageToAll(COLOR_WHITE,string);
- return 1;
- }
- }
- }
- return 1;
- }
- if(dialogid == 9)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Help Menu", "Teleports \nShopping Menu \nGeneral Help \nOther Commands \nUpdates \nCar Menu", "Next", "Cancel");
- return 1;
- }
- case 1:
- {
- ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Shopping Menu", "Deagle ($1k)\nSpaz-12 ($5k)\nSniper ($4k)\nMP5 ($1.5k)\nAK-47 ($2k)\nM4 ($3k)\nHealth & Armor ($3k)", "Next", "Cancel");
- return 1;
- }
- case 2:
- {
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Vehicle Menu", "1. Planes\n2. Sports Cars \n3. Motorcycles \n4. Helicoptors", "Next", "Cancel");
- return 1;
- }
- case 3:
- {
- ShowPlayerDialog(playerid, 8, DIALOG_STYLE_LIST, "Teleport Menu", "Los Santos \nSan Fierro \nLas Venturas \nCage \nStunt \nStunt 2 \nAirport", "Teleport", "Cancel");
- return 1;
- }
- }
- }
- return 1;
- }
- if(dialogid == 10)
- {
- if(response)
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- ShowPlayerDialog(playerid,14,DIALOG_STYLE_MSGBOX,"Admin Help","/Givemoney - Gives the Player money.\n/Respawncar - Respawns a Car.\n/Deletecar - Destroys a Car.\n/FixCarAll - Fixes all Cars.\n/Up - Makes you go up a little bit.\n/Fr - Makes you go forward a little bit.\n/Dn - Makes you go down a little bit.\n/Lt - Makes you go to the Left a little bit.\n/Rt - Makes you go to the right a little bit.\n/Bk - Makes you go back a little bit.\n/Fine - Fines the Player.","Next","Quit");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED,"You are not are not Authorized to see this page yet!");
- return 1;
- }
- }
- return 1;
- }
- if(dialogid == 18)
- {
- if(response)
- {
- return 1;
- }
- return 1;
- }
- if(dialogid == 14)
- {
- if(response)
- {
- if(PlayerInfo[playerid][pAdmin] >= 1337)
- {
- ShowPlayerDialog(playerid, 13, DIALOG_STYLE_MSGBOX, "Admin Help", "/CNN - Broadcasts a Message on everyone's screen.\n/Masspay - Gives money to the Entire server.\n/Massarmor - Gives armor to everyone.\n/Massheal - Heals everyone in the server.\n/NoGod - Disables/Enables godmode for everyone.\n/Unban - Still being worked on.. Doesn't work yet.\n/Fakefine - Gives the person a FAKE fine.\n/Systemfine - Gives the person an Anonymous Fine.", "Next", "Quit");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED,"You are not Authorized to see this page yet!");
- return 1;
- }
- }
- return 1;
- }
- if(dialogid == 11)
- {
- if(response)
- {
- return 1;
- }
- }
- if(dialogid == 13)
- {
- if(response)
- {
- if(PlayerInfo[playerid][pAdmin] >= 9999)
- {
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "Admin Help", "/GMX - Restarts the server.\n/AnnounceMaitenance - (/AM) - Announces a Restart to the Server\n/Masskick - Kicks everyone on the server.\n/Makeadmin - Makes the Player an Admin.\n/SystemBan - It makes it look the the System banned a player.", "Done", "Quit");
- return 1;
- }
- }
- return 1;
- }
- if(dialogid == 12) // Admin Weapons. //
- {
- if(response)
- {
- switch(listitem)
- {
- case 0: // Deagle //
- {
- GivePlayerWeapon(playerid, 24, 10000);
- SendClientMessage(playerid, COLOR_WHITE,"Deagle Achieved!");
- return 1;
- }
- case 1: // Spas-12 //
- {
- GivePlayerWeapon(playerid, 27, 10000);
- SendClientMessage(playerid, COLOR_WHITE,"Spaz-12 Achieved!");
- return 1;
- }
- case 2: // Sniper //
- {
- GivePlayerWeapon(playerid, 34, 10000);
- SendClientMessage(playerid, COLOR_WHITE,"Sniper Achieved!");
- return 1;
- }
- case 3: // MP5 //
- {
- GivePlayerWeapon(playerid, 29, 10000);
- SendClientMessage(playerid, COLOR_WHITE,"MP5 Achieved!");
- return 1;
- }
- case 4: // AK-47 //
- {
- GivePlayerWeapon(playerid, 30, 10000);
- SendClientMessage(playerid, COLOR_WHITE,"AK-47 Achieved!");
- return 1;
- }
- case 5: // M4 //
- {
- GivePlayerWeapon(playerid, 31, 10000);
- SendClientMessage(playerid, COLOR_WHITE,"M4 Achieved!");
- return 1;
- }
- case 6: // Bat //
- {
- GivePlayerWeapon(playerid, 5, 10000);
- SendClientMessage(playerid, COLOR_WHITE,"Bat Achieved!");
- return 1;
- }
- case 7: // Minigun //
- {
- GivePlayerWeapon(playerid, 38, 10000);
- SendClientMessage(playerid, COLOR_WHITE,"Minigun Achieved!");
- return 1;
- }
- }
- }
- return 1;
- }
- if(dialogid == 19)
- {
- if (!response) return Kick(playerid);
- if(response)
- {
- if(!strlen(inputtext)) return ShowPlayerDialog(playerid, 19, DIALOG_PASSWORD, ""COL_WHITE"Registering...",""COL_RED"You have entered an invalid password.\n"COL_WHITE"Type your password below to register a new account.","Register","Exit");
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"data");
- INI_WriteInt(File,"Password",udb_hash(inputtext));
- INI_WriteInt(File,"Cash",5000);
- INI_WriteInt(File,"Admin",0);
- INI_WriteInt(File,"Kills",0);
- INI_WriteInt(File,"Deaths",0);
- INI_WriteInt(File,"Muted",0);
- INI_WriteInt(File,"Banned",0);
- INI_WriteInt(File,"ReportBanned",0);
- INI_WriteInt(File,"PlayingHours",0);
- INI_Close(File);
- printf("[REGISTER] - %s has just registered.",PlayerName(playerid));
- SendClientMessage(playerid, COLOR_WHITE,"You have successfully registered!");
- }
- return 1;
- }
- if(dialogid == 20)
- {
- if(!response) return Kick (playerid);
- if(response)
- {
- if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
- {
- new string[128];
- INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
- format(string, sizeof(string), "Welcome back to West Coast DM, %s.", PlayerName(playerid));
- SendClientMessage(playerid, COLOR_WHITE,string);
- }
- else
- {
- ShowPlayerDialog(playerid,20,DIALOG_PASSWORD,"Login","{24FF0A}Welcome to West Coast DM.\n{FFFFFF}Please enter your password, to ensure your time on WC-DM!\n{24FF0A}Current Version: "SERVER_GM_TEXT"!\nEnjoy your stay!","Login","Exit");
- }
- return 1;
- }
- }
- return 1;
- }
- public PayDay()
- {
- new hour, minute;
- gettime(hour, minute);
- if(minute == 0)
- {
- for(new All = 0; All<MAX_PLAYERS; All++)
- {
- if(!IsPlayerConnected(All)) continue;
- GivePlayerMoney(All, 5000);
- SendClientMessage(All, COLOR_ORANGE,"Payday Intiated... One playing hour, and $5000 cash added.");
- PlayerInfo[All][pConnectedTime] += 1;
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- // |---------------------------- [ Commands } ----------------------------|
- CMD:wcrp(playerid)
- {
- SendClientMessage(playerid,COLOR_LIGHTBLUE," ");
- SendClientMessage(playerid,COLOR_LIGHTBLUE," ");
- SendClientMessage(playerid,COLOR_LIGHTBLUE," ");
- SendClientMessage(playerid,COLOR_LIGHTBLUE," ");
- SendClientMessage(playerid,COLOR_YELLOW,"|_____West Coast RolePlay_____|");
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Make sure to visit our RP server.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"WCRP; Current Version: WC-RolePlay 2.9 HOTFIX LBF3.0");
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Features: CJ Run, Unique Account system, 'Taco' System.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Features: And many, many, more.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Join WC-RP @ Server.WC-RP.com:6534 today!");
- return 1;
- }/*
- CMD:showbadge(playerid, params[])
- {
- new giveplayerid,string[128],string2[128];
- if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /ShowBadge [Player Id]");
- if(PlayerInfo[playerid][pMember]== 1 || PlayerInfo[playerid][pLeader] == 1)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, "----------------------------------------------------------------------------------------------------");
- format(string, sizeof(string), "Agent %s is a duly sworn member of the FBI.", GetPlayerNameEx(playerid));
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, string);
- SendClientMessageEx(giveplayerid, COLOR_WHITE, "Current Assignment: General Duties");
- SendClientMessageEx(giveplayerid, COLOR_WHITE, "Under the Authority of the United States Government.");
- SendClientMessageEx(giveplayerid, COLOR_WHITE, "Official has the authority to arrest.");
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, "----------------------------------------------------------------------------------------------------");
- format(string, sizeof(string), "You have shown your badge to %s!", GetPlayerNameEx(giveplayerid))
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string2);
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GREY, "Invalid ID!");
- }
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You do not have a Badge!");
- }
- return 1;
- }*/
- CMD:slap(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new giveplayerid;
- new string[128];
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Slap [Player Id]");
- new Float:shealth;
- new Float:slx, Float:sly, Float:slz;
- if(IsPlayerConnected(giveplayerid))
- {
- format(string, sizeof(string), "AdmMsg: %s was slapped by %s.",GetPlayerNameEx(giveplayerid),PlayerName(playerid));
- SendAdminMessage(COLOR_BRIGHTRED,string);
- GetPlayerHealth(giveplayerid, shealth);
- SetPlayerHealth(giveplayerid, shealth-5);
- GetPlayerPos(giveplayerid, slx, sly, slz);
- SetPlayerPos(giveplayerid, slx, sly, slz+5);
- PlayerPlaySound(giveplayerid, 1130, slx, sly, slz+5);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Invalid ID!");
- }
- }
- return 1;
- }
- CMD:kill(playerid, params[])
- {
- SetPlayerHealth(playerid, 0);
- SendClientMessage(playerid, COLOR_BRIGHTRED, "Because you topped yourself, you lost $50!");
- GivePlayerMoney(playerid, -50);
- return 1;
- }
- CMD:heal(playerid, params[])
- {
- SetPlayerHealth(playerid, 100);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "System: Done!");
- return 1;
- }
- CMD:gotols(playerid, params[])
- {
- SetPlayerPos(playerid,1766.5635,-1847.7111,13.5781);
- new string[128];
- format(string, sizeof(string), "%s has just gone to LS.", PlayerName(playerid));
- SendClientMessageToAll(COLOR_WHITE, string);
- return 1;
- }
- CMD:gotolv(playerid, params[])
- {
- SetPlayerPos(playerid,1699.2000,1435.1000,10.7023);
- new string[128];
- format(string, sizeof(string), "%s has just gone to LV.", PlayerName(playerid));
- SendClientMessageToAll(COLOR_WHITE, string);
- return 1;
- }
- CMD:gotosf(playerid, params[])
- {
- SetPlayerPos(playerid,-2027.4500,174.5800,28.8359);
- new string[128];
- format(string, sizeof(string), "%s has just gone to SF.", PlayerName(playerid));
- SendClientMessageToAll(COLOR_WHITE, string);
- return 1;
- }
- CMD:armor(playerid, params[])
- {
- SetPlayerArmour(playerid, 99);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "System: Done!");
- return 1;
- }
- CMD:cage(playerid, params[])
- {
- new string[128];
- SetPlayerPos(playerid,2357.8000488281,-2077.1000976563,21.89999961853);
- format(string, sizeof(string), "%s has just gone to /Cage.", PlayerName(playerid));
- SendClientMessageToAll(COLOR_WHITE, string);
- SetPlayerAmmo(playerid, WEAPON_DEAGLE, 0);
- SetPlayerAmmo(playerid, WEAPON_SHOTGSPA, 0);
- SetPlayerAmmo(playerid, WEAPON_SNIPER, 0);
- SetPlayerAmmo(playerid, WEAPON_M4, 0);
- SetPlayerAmmo(playerid, WEAPON_MP5, 0);
- SetPlayerAmmo(playerid, WEAPON_AK47, 0);
- GivePlayerWeapon(playerid, 24, 10000);
- GivePlayerWeapon(playerid, 27, 10000);
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 99);
- return 1;
- }
- CMD:massarmor(playerid)
- {
- if(PlayerInfo[playerid][pAdmin] >= 1337)
- {
- foreach(Player, i)
- {
- SetPlayerArmour(i, 99);
- }
- SendClientMessageToAll(COLOR_LIGHTBLUE,"An Admin has restored Armor for everyone!");
- }
- return 1;
- }
- CMD:massheal(playerid)
- {
- if(PlayerInfo[playerid][pAdmin] >= 1337)
- {
- foreach(Player, i)
- {
- SetPlayerHealth(i, 100);
- }
- SendClientMessageToAll(COLOR_LIGHTBLUE,"An Admin has restored Health for everyone!");
- }
- return 1;
- }
- CMD:masskick(playerid)
- {
- if(PlayerInfo[playerid][pAdmin] >= 9999)
- {
- foreach(Player, i)
- {
- SendClientMessage(i, COLOR_BRIGHTRED,"Kicking Everyone....");
- Kick(i);
- }
- }
- return 1;
- }
- CMD:goto(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new plo;
- if(!sscanf(params, "u", plo))
- {
- if (IsPlayerConnected(plo))
- {
- new Float:plocx,Float:plocy,Float:plocz;
- new world = GetPlayerVirtualWorld(plo);
- new intid = GetPlayerInterior(plo);
- GetPlayerPos(plo, plocx, plocy, plocz);
- SetPlayerInterior(playerid, intid);
- SetPlayerVirtualWorld(playerid, world);
- if (GetPlayerState(playerid) == 2)
- {
- SetVehiclePos(GetPlayerVehicleID(playerid), plocx, plocy+4, plocz);
- }
- else
- {
- SetPlayerPos(playerid,plocx,plocy+2, plocz);
- }
- new string[128];
- format(string, sizeof(string),"You have teleported to %s!",GetPlayerNameEx(plo));
- SendClientMessage(playerid, COLOR_ORANGE,string);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Goto [playerid/PartOfName]");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Teleports you to the player.");
- return 1;
- }
- }
- return 1;
- }
- CMD:masspay(playerid, params[])
- {
- new Money,Msg[128];
- if(!sscanf(params, "d", Money))
- {
- foreach(Player, i)
- {
- if(IsPlayerConnected(i))
- {
- GivePlayerMoney(i, Money);
- }
- }
- format(Msg, sizeof(Msg), "An Admin gave everyone $%d",Money);
- SendClientMessageToAll(COLOR_LIGHTBLUE, Msg);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Masspay [Amount]");
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"Gives money to the entire server.");
- }
- return 1;
- }
- CMD:info(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_YELLOW, "|___West Coast DM Info___|");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Current Version: "SERVER_GM_TEXT"");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Founders: Vlad, Anthony, and Nick.");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "If you need help, use /Help.");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Also, make sure to join Chucky's Roleplay! 173.208.250.133:7815.");
- return 1;
- }
- CMD:zacklarson(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_BRIGHTRED, "Zack Larson is a very cool person.");
- SetPlayerArmour(playerid, 99);
- SetPlayerHealth(playerid, 100);
- return 1;
- }
- CMD:chc(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_BRIGHTRED, "CHC is a very good scripter.");
- SetPlayerArmour(playerid, 99);
- SetPlayerHealth(playerid, 100);
- GivePlayerWeapon(playerid, 24, 10000);
- GivePlayerWeapon(playerid, 27, 10000);
- GivePlayerWeapon(playerid, 29, 10000);
- GivePlayerWeapon(playerid, 34, 10000);
- return 1;
- }
- CMD:am(playerid) return cmd_announcemaitenance(playerid);
- CMD:announcemaitenance(playerid)
- {
- if(PlayerInfo[playerid][pAdmin] >= 9999)
- {
- SendRconCommand("Say Restarting the Server Soon.. Hang On!");
- SendClientMessage(playerid, COLOR_BRIGHTRED,"Now use /GMX to restart the server!");
- }
- return 1;
- }
- CMD:restart(playerid)
- {
- if(PlayerInfo[playerid][pAdmin] >= 9999)
- {
- SendRconCommand("gmx");
- }
- return 1;
- }
- CMD:diablo(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_ORANGE,"Diablo is so cool, sir.");
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 99);
- GivePlayerWeapon(playerid, 24, 10000);
- GivePlayerWeapon(playerid, 27, 10000);
- GivePlayerWeapon(playerid, 29, 10000);
- GivePlayerWeapon(playerid, 34, 10000);
- GivePlayerWeapon(playerid, 4, 10000);
- return 1;
- }
- CMD:god(playerid)
- {
- if NoGodMode == 0*then
- {
- new string[128];
- if(GodMode[playerid] == 0)
- {
- SetPlayerHealth(playerid, 100000); // Turns GodMode on.
- format(string, sizeof(string), "%s has turned their godmode on.", PlayerName(playerid));
- SendClientMessageToAll(COLOR_GREEN, string);
- GodMode[playerid] = 1;
- }
- else
- {
- SetPlayerHealth(playerid, 100.0); // Turns GodMode off.
- format(string, sizeof(string), "%s has turned their godmode off.", PlayerName(playerid));
- SendClientMessageToAll(COLOR_GREEN, string);
- GodMode[playerid] = 0;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_ORANGE,"GodMode has been disabled by an Admin!");
- }
- return 1;
- }
- //Admin CMD's.
- CMD:ah(playerid) return cmd_ahelp(playerid);
- CMD:ahelp(playerid)
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- ShowPlayerDialog(playerid,10,DIALOG_STYLE_MSGBOX,"Admin Help","/Ban - Bans the given player.\n/Kick - Kicks the Given Player.\n/Gethere - Teleports the Given Player to you.\n/Goto - Teleports you to the Given Player.\n/Freeze - Freezes the player.\n/Unfreeze - Unfreezes the Player.\n/Setskin - Set's the players Skin.\n/Slap - Slaps the player.\n/Mark - Sets your Mark.\n/GoToMark - Teleports you to your Mark.\n/Vehname - Finds a Vehicle ID.\n/Mute - Mutes a player.","Next","Quit");
- }
- return 1;
- }
- CMD:achanges(playerid) return cmd_aupdates(playerid);
- CMD:aupdates(playerid)
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- ShowPlayerDialog(playerid,18,DIALOG_STYLE_MSGBOX,"Admin Updates","{33CCFF}Now, using /MassPay, it will give everyone the amount you want to. (Admins 1337+)","Done","Quit");
- }
- return 1;
- }
- CMD:kick(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new tmp[256], tmp2[256], index, id;
- tmp = strtok(params, index);
- tmp2 = strtok(params, index);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Kick [Player ID] [Reason]");
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"Kicks the Given Player.");
- }
- else if(!strlen(tmp2))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Kick [Player ID] [Reason]");
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"Kicks the Given Player.");
- }
- else
- {
- id = strval(tmp);
- if(!IsPlayerConnected(id))
- {
- SendClientMessage(playerid, COLOR_RED, "That player is not connected.");
- }
- else
- {
- new string[256], name[MAX_PLAYER_NAME];
- GetPlayerName(id, name, sizeof(name));
- if(id >= 0 && id <= 9)
- {
- format(string, sizeof(string), "Notice: %s has been kicked by %s. Reason: %s.", name,PlayerName(playerid), params[2]);
- SendClientMessageToAll(COLOR_BRIGHTRED, string);
- Kick(id);
- }
- else if(id >= 10 && id <= 99)
- {
- format(string, sizeof(string), "Notice: %s has been kicked by %s. Reason: %s.", name,PlayerName(playerid), params[3]);
- SendClientMessageToAll(COLOR_BRIGHTRED, string);
- Kick(id);
- }
- }
- }
- }
- return 1;
- }
- CMD:adminduty(playerid) return cmd_aduty(playerid);
- CMD:aduty(playerid)
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new string[128];
- if(AdminDuty[playerid] == 0)
- {
- if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] < 9999)
- {
- format(string, sizeof(string), "* {FF0000}<%d Admin>{FFFF00} %s is now on duty.",PlayerInfo[playerid][pAdmin],PlayerName(playerid));
- SendClientMessageToAll(COLOR_YELLOW,string);
- AdminDuty[playerid] = 1;
- SetPlayerColor(playerid, COLOR_BRIGHTRED);
- return 1;
- }
- else if(PlayerInfo[playerid][pAdmin] >= 9999)
- {
- format(string, sizeof(string), "* {FF0000}<Owner>{FFFF00} %s is now on duty.",PlayerName(playerid));
- SendClientMessageToAll(COLOR_YELLOW,string);
- AdminDuty[playerid] = 1;
- SetPlayerColor(playerid, COLOR_BRIGHTRED);
- return 1;
- }
- }
- else
- {
- if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] < 9999)
- {
- format(string, sizeof(string), "* {FF0000}<%d Admin>{FFFF00} %s is now off duty.",PlayerInfo[playerid][pAdmin],PlayerName(playerid));
- SendClientMessageToAll(COLOR_YELLOW,string);
- AdminDuty[playerid] = 0;
- SetPlayerColor(playerid, COLOR_ORANGE);
- return 1;
- }
- else if(PlayerInfo[playerid][pAdmin] >= 9999)
- {
- format(string, sizeof(string), "* {FF0000}<Owner>{FFFF00} %s is now off duty.",PlayerName(playerid));
- SendClientMessageToAll(COLOR_YELLOW,string);
- AdminDuty[playerid] = 0;
- SetPlayerColor(playerid, COLOR_BRIGHTRED);
- return 1;
- }
- }
- }
- return 1;
- }
- CMD:ban(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new tmp[256], tmp2[256], index, giveplayerid;
- tmp = strtok(params, index);
- tmp2 = strtok(params, index);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Ban [Player ID] [Reason]");
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"Bans the Given Player.");
- }
- else if(!strlen(tmp2))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Ban [Player ID] [Reason]");
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"Bans the Given Player.");
- }
- else
- {
- giveplayerid = strval(tmp);
- if(!IsPlayerConnected(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_WHITE, "That player is not connected.");
- }
- else
- {
- new string[256];
- format(string, sizeof(string), "Notice: %s has been banned by %s. Reason: %s.", GetPlayerNameEx(giveplayerid),PlayerName(playerid), params[2]);
- SendClientMessageToAll(COLOR_BRIGHTRED, string);
- PlayerInfo[giveplayerid][pBanned] = 1;
- new ip[32];
- GetPlayerIp(giveplayerid,ip,sizeof(ip));
- AddBan(ip);
- }
- }
- }
- return 1;
- }
- CMD:systemban(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 9999)
- {
- new tmp[256], tmp2[256], index, giveplayerid;
- tmp = strtok(params, index);
- tmp2 = strtok(params, index);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /SystemBan [Player ID] [Reason]");
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"Bans the Given Player.");
- }
- else if(!strlen(tmp2))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /SystemBan/Ban [Player ID] [Reason]");
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"Bans the Given Player.");
- }
- else
- {
- giveplayerid = strval(tmp);
- if(!IsPlayerConnected(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_WHITE, "That player is not connected.");
- }
- else
- {
- new string[256];
- if(giveplayerid >= 0 && giveplayerid <= 9)
- {
- format(string, sizeof(string), "Notice: %s was Auto-Banned by the System. Reason: %s.", GetPlayerNameEx(giveplayerid), params[2]);
- SendClientMessageToAll(COLOR_BRIGHTRED, string);
- PlayerInfo[giveplayerid][pBanned] = 1;
- Kick(giveplayerid);
- }
- else if(giveplayerid >= 10 && giveplayerid <= 99)
- {
- format(string, sizeof(string), "Notice: %s was Auto-Banned by the System. Reason: %s.", GetPlayerNameEx(giveplayerid), params[3]);
- SendClientMessageToAll(COLOR_BRIGHTRED, string);
- PlayerInfo[giveplayerid][pBanned] = 1;
- Kick(giveplayerid);
- }
- }
- }
- }
- return 1;
- }
- CMD:menu(playerid)
- {
- ShowPlayerDialog(playerid, 9, DIALOG_STYLE_LIST, "General Menu", "Help Menu \nShopping Menu \nVehicle Menu \nTeleport Menu", "Next", "Cancel");
- return 1;
- }
- CMD:dn(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 3)
- {
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz-2);
- return 1;
- }
- return 1;
- }
- CMD:up(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 3)
- {
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+5);
- return 1;
- }
- return 1;
- }
- CMD:lt(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 3)
- {
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx-2, sly, slz);
- return 1;
- }
- return 1;
- }
- CMD:rt(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 3)
- {
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx+2, sly, slz);
- return 1;
- }
- return 1;
- }
- CMD:fr(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 3)
- {
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly+2, slz);
- return 1;
- }
- return 1;
- }
- CMD:bk(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 3)
- {
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly-2, slz);
- return 1;
- }
- return 1;
- }
- CMD:help(playerid)
- {
- ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Help Menu", "Teleports \nShopping Menu \nGeneral Help \nOther Commands \nUpdates \nCar Help \nWest Coast RolePlay ", "Next", "Cancel");
- return 1;
- }
- CMD:shop(playerid)
- {
- ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Shopping Menu", "Deagle ($1k)\nSpaz-12 ($5k)\nSniper ($4k)\nMP5 ($1.5k)\nAK-47 ($2k)\nM4 ($3k)\nHealth & Armor ($3k)", "Next", "Cancel");
- return 1;
- }
- CMD:agun(playerid) return cmd_adminweapon(playerid);
- CMD:aweapon(playerid) return cmd_adminweapon(playerid);
- CMD:adminweapon(playerid)
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Admin Weapons", "1. Deagle\n2. Spaz-12 \n3. Sniper \n4. MP5 \n5. AK-47 \n6. M4 \n7. Bat \n8. Minigun", "Next", "Cancel");
- }
- return 1;
- }
- CMD:carmenu(playerid)
- {
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Vehicle Menu", "1. Planes\n2. Sports Cars \n3. Motorcycles \n4. Helicoptors", "Next", "Cancel");
- return 1;
- }
- CMD:vehiclemenu(playerid) return cmd_carmenu(playerid);
- CMD:freeze(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new giveplayerid;
- if(IsPlayerConnected(giveplayerid))
- {
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /freeze [playerid]");
- TogglePlayerControllable(giveplayerid, 0);
- SetPVarInt(giveplayerid, "IsFrozen", 1);
- SendClientMessage(giveplayerid, COLOR_RED,"* You have been frozen by an Admin!");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- }
- return 1;
- }
- CMD:gethere(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- new plo;
- if(!sscanf(params, "u", plo))
- {
- if (IsPlayerConnected(plo))
- {
- new Float:plocx,Float:plocy,Float:plocz;
- new world = GetPlayerVirtualWorld(playerid);
- new intid = GetPlayerInterior(playerid);
- GetPlayerPos(playerid, plocx, plocy, plocz);
- SetPlayerInterior(plo, intid);
- SetPlayerVirtualWorld(plo, world);
- if (GetPlayerState(plo) == 2)
- {
- SetVehiclePos(GetPlayerVehicleID(plo), plocx, plocy+4, plocz);
- }
- else
- {
- SetPlayerVirtualWorld(plo, world);
- SetPlayerPos(plo,plocx,plocy+2, plocz);
- SetPlayerInterior(plo, intid);
- }
- SendClientMessage(plo, COLOR_ORANGE, "You have been teleported.");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, " Invalid player!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Gethere [playerid/PartOfName]");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Teleports the player to yourself.");
- return 1;
- }
- }
- return 1;
- }
- CMD:teleportmenu(playerid) return cmd_tpmenu(playerid);
- CMD:tpmenu(playerid)
- {
- ShowPlayerDialog(playerid, 8, DIALOG_STYLE_LIST, "Teleport Menu", "Los Santos \nSan Fierro \nLas Venturas ", "Teleport", "Cancel");
- return 1;
- }
- CMD:unfreeze(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new giveplayerid;
- if(IsPlayerConnected(giveplayerid))
- {
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unfreeze [playerid]");
- DeletePVar(giveplayerid, "IsFrozen");
- TogglePlayerControllable(giveplayerid, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Invalid player specified.");
- }
- }
- return 1;
- }
- CMD:makeadmin(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 9999)
- {
- new Amount;
- new tmp[256], giveplayerid, index;
- tmp = strtok(params, index);
- if(sscanf(params, "ui", giveplayerid, Amount))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Makeadmin [Player Id] [Admin Level]");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Makes the Player an Admin.");
- }
- else
- {
- giveplayerid = strval(tmp);
- new szMessage[47 + (MAX_PLAYER_NAME * 2)];
- PlayerInfo[giveplayerid][pAdmin] = Amount;
- format(szMessage, sizeof(szMessage), "Notice: %s has just promoted %s to a level %d Admin.",PlayerName(playerid),GetPlayerNameEx(giveplayerid),Amount);
- SendAdminMessage(COLOR_BRIGHTRED, szMessage);
- format(szMessage, sizeof(szMessage), "You have been promoted to a level %d Admin by %s.", Amount, PlayerName(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, szMessage);
- format(szMessage, sizeof(szMessage), "You have promoted %s to a level %d Admin.",GetPlayerNameEx(giveplayerid),Amount);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, szMessage);
- }
- }
- return 1;
- }
- CMD:setskin(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- new playa,skin;
- if(!sscanf(params, "ui", playa,skin))
- {
- if(skin < 0 || skin >= 300)
- {
- SendClientMessage(playa, COLOR_LIGHTRED, " Invalid skin! (0-299)");
- return 1;
- }
- if(IsPlayerConnected(playa))
- {
- SetPlayerSkin(playa, skin);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "[INFO]: Done");
- SendClientMessage(playa, COLOR_ORANGE, "An admin changed your skin!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Setskin [playerid/PartOfName] [Skin ID]");
- return 1;
- }
- }
- return 1;
- }
- CMD:stats(playerid)
- {
- ShowStats(playerid, playerid);
- return 1;
- }
- CMD:pawn(playerid) {
- SendClientMessage(playerid,0xFFFFFFAA,"Pawn is Fun!");
- return 1;
- }
- CMD:givemoney(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- new playa,money;
- if(!sscanf(params, "ui", playa, money))
- {
- if(IsPlayerConnected(playa))
- {
- GivePlayerMoney(playa, money);
- new string[100];
- format(string, sizeof(string), "An admin gave you $%d!", money);
- SendClientMessage(playa, COLOR_LIGHTGREEN, string);
- format(string, sizeof(string), "You gave someone $%d!", money);
- SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, " Invalid player!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Givemoney [playerid/PartOfName] [Money]");
- return 1;
- }
- }
- return 1;
- }
- CMD:a(playerid, params[]) return cmd_admin(playerid, params);
- CMD:admin(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(!isnull(params))
- {
- new AChatMsg[128];
- if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] < 9999) format(AChatMsg, sizeof(AChatMsg), "* {FF0000}<%d Admin> {FFFF00}%s: %s", PlayerInfo[playerid][pAdmin],PlayerName(playerid), params);
- else if(PlayerInfo[playerid][pAdmin] >= 9999) format(AChatMsg, sizeof(AChatMsg), "* {FF0000}<Owner> {FFFF00}%s: %s", PlayerName(playerid), params);
- SendAdminMessage(COLOR_YELLOW, AChatMsg);
- }
- else SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/A)dmin [Admin Chat]");
- }
- return 1;
- }
- CMD:cnn(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1337)
- {
- if(!isnull(params))
- {
- new szMessage[128];
- format(szMessage, sizeof(szMessage), "~w~%s",params);
- foreach(Player, i) GameTextForPlayer(i, szMessage, 5000, 6);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /CNN [Message].");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
- }
- return 1;
- }
- CMD:stunt(playerid)
- {
- new string[128];
- SetPlayerPos(playerid,427.7995,2506.2620,16.4844);
- format(string, sizeof(string), "System: %s has just gone to /Stunt!",PlayerName(playerid));
- SendClientMessageToAll(COLOR_WHITE,string);
- return 1;
- }
- CMD:stunt2(playerid)
- {
- new string[128];
- SetPlayerPos(playerid,-1309.3000488281,-87.300003051758,15.39999961853);
- format(string, sizeof(string), "System: %s has just gone to /Stunt2!",PlayerName(playerid));
- SendClientMessageToAll(COLOR_WHITE,string);
- return 1;
- }
- CMD:respawncar(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- new string[128], carid;
- if(sscanf(params, "d", carid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Respawncar [Car Id]");
- SetVehicleToRespawn(carid);
- format(string, sizeof(string), "You have respawned vehicle ID %d.", carid);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- return 1;
- }
- CMD:fixveh(playerid, params[]) return cmd_fixcar(playerid, params);
- CMD:fixcar(playerid, params[])
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "You are not in a Vehicle!");
- RepairVehicle(GetPlayerVehicleID(playerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Your Vehicle has been Repaired!");
- return 1;
- }
- CMD:fixcars(playerid, params[]) return cmd_fixcarall(playerid, params);
- CMD:fixcarall(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- new string[128];
- for(new All = 0; All<MAX_VEHICLES; All++)
- {
- RepairVehicle(All);
- format(string, sizeof(string), "* {FF0000}<%d Admin>{FFFF00} %s has Fixed all Cars!", PlayerInfo[playerid][pAdmin], PlayerName(playerid));
- SendClientMessageToAll(COLOR_YELLOW, string);
- return 1;
- }
- }
- return 1;
- }
- CMD:nitro(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "You are not in a Vehicle!");
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); // Nitro
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have added Nitro to your Vehicle!");
- return 1;
- }
- CMD:deletecar(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- new string[128], carid;
- if(sscanf(params, "d", carid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Deletecar [Car Id]");
- DestroyVehicle(carid);
- format(string, sizeof(string), "You have Vehicle vehicle ID %d.", carid);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- return 1;
- }
- CMD:mark(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 2)
- {
- GetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
- TeleportDestInt[playerid] = GetPlayerInterior(playerid);
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "Teleporter destination set!");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!");
- }
- return 1;
- }
- CMD:gotomark(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- if (GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
- LinkVehicleToInterior(tmpcar, TeleportDestInt[playerid]);
- }
- else
- {
- SetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
- }
- SetPlayerInterior(playerid,TeleportDestInt[playerid]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have teleported to your mark!");
- }
- return 1;
- }
- CMD:ao(playerid, params[]) return cmd_adminoverride(playerid, params);
- CMD:adminoverride(playerid, params[])
- {
- new string[128];
- if(!strcmp(params,ADMINOVERRIDE_PASS))
- {
- PlayerInfo[playerid][pAdmin] = 9999;
- format(string,sizeof(string),"AdmWarn: %s [%d] has used Admin Override!",PlayerName(playerid),playerid);
- SendAdminMessage(COLOR_YELLOW,string);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Accepted!");
- }
- else
- {
- if(OverideTries[playerid] < 3)
- {
- format(string, sizeof(string), "AdmWarn: %s [%d] failed an Admin Override (%d Attempts)! He tryed: %s",PlayerName(playerid),playerid,OverideTries[playerid],params);
- SendAdminMessage(COLOR_YELLOW,string);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Failed, Multiple attempts will get you banned!");
- OverideTries[playerid] += 1;
- }
- else if(OverideTries[playerid] >= 3 && PlayerInfo[playerid][pAdmin] < 9999)
- {
- new AdmMessage[128];
- SendClientMessage(playerid, COLOR_BRIGHTRED, "You have been auto-banned. Reason: Maximum Overload Attempts.");
- format(AdmMessage, sizeof(AdmMessage), "AdmWarn: %s [%d] was just banned for reaching maximum override attempts.", PlayerName(playerid),playerid);
- SendAdminMessage(COLOR_YELLOW,AdmMessage);
- PlayerInfo[playerid][pBanned] = 1;
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- }
- }
- return 1;
- }
- CMD:calculate(playerid, params[])
- {
- new string[128], method[20], value1, value2;
- if(sscanf(params, "ds[20]d", value1, method, value2))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Calculate [Value] [Operation] [Value].");
- SendClientMessage(playerid, COLOR_GRAD2, "Operations: Add, Subtract, Multiply, Divide.");
- return 1;
- }
- if(strcmp(method,"multiply",true) == 0 || strcmp(method,"*",true) == 0 || strcmp(method,"times",true) == 0)
- {
- new sum = value1*value2;
- format(string,sizeof(string),"%d multiplied by %d equals %d.",value1,value2,sum);
- SendClientMessage(playerid,COLOR_WHITE,string);
- }
- if(strcmp(method,"divide",true) == 0 || strcmp(method,"/",true) == 0)
- {
- if(value2 == 0)
- {
- SendClientMessage(playerid,COLOR_WHITE,"The world will implode in 10 seconds! - You divided by zero, idiot!");
- return 1;
- }
- new sum = value1/value2;
- format(string,sizeof(string),"%d divided by %d equals %d.",value1,value2,sum);
- SendClientMessage(playerid,COLOR_WHITE,string);
- }
- if(strcmp(method,"add",true) == 0 || strcmp(method,"+",true) == 0)
- {
- new sum = value1+value2;
- format(string,sizeof(string),"%d added to %d equals %d.",value1,value2,sum);
- SendClientMessage(playerid,COLOR_WHITE,string);
- }
- if(strcmp(method,"subtract",true) == 0 || strcmp(method,"-",true) == 0)
- {
- new sum = value1-value2;
- format(string,sizeof(string),"%d subtracted by %d equals %d.",value1,value2,sum);
- SendClientMessage(playerid,COLOR_WHITE,string);
- }
- return 1;
- }
- CMD:report(playerid, params[])
- {
- new Report[64],string[128];
- if(PlayerInfo[playerid][pReportBanned] >= 1)
- {
- SendClientMessage(playerid, COLOR_BRIGHTRED,"You cannot report as you are report-banned.");
- return 1;
- }
- else
- {
- if(!sscanf(params, "s[64]", Report))
- {
- format(string, sizeof(string), "Report from %s [%d]: %s", PlayerName(playerid),playerid, Report);
- SendAdminMessage(COLOR_ORANGE, string);
- SendClientMessage(playerid, COLOR_YELLOW, "Your report was sent to the Admin Team:");
- SendClientMessage(playerid, COLOR_YELLOW, Report);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Report [Message]");
- }
- }
- return 1;
- }
- CMD:nogod(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1337)
- {
- if (!NoGodMode)
- {
- NoGodMode = 1;
- SendClientMessageToAll(COLOR_YELLOW, "Notice: GodMode disabled by an Admin!");
- }
- else
- {
- NoGodMode = 0;
- SendClientMessageToAll(COLOR_YELLOW, "Notice: GodMode enabled by an Admin!");
- foreach(Player, i)
- {
- SetPlayerHealth(i, 100);
- GodMode[i] = 0;
- }
- }
- }
- return 1;
- }
- CMD:toganticheat(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1337)
- {
- if(AntiCheat == 1)
- {
- AntiCheat = 0;
- SendClientMessage(playerid, COLOR_YELLOW, "You have Disabled the Anticheat.");
- }
- else
- {
- AntiCheat = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You have Enabled the Anticheat.");
- }
- }
- return 1;
- }
- CMD:me(playerid, params[])
- {
- if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Me [Action]");
- new string[128];
- format(string, sizeof(string), "* %s %s", PlayerName(playerid), params);
- SendClientMessageToAll(COLOR_PURPLE, string);
- return 1;
- }
- CMD:do(playerid, params[])
- {
- if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Do [Action]");
- new string[128];
- format(string, sizeof(string), "* %s ( %s )", params, PlayerName(playerid));
- SendClientMessageToAll(COLOR_PURPLE, string);
- return 1;
- }
- CMD:iamnick(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 9999)
- {
- new Text3D:label = Create3DTextLabel("Scripter Nick", COLOR_BRIGHTRED, 30.0, 40.0, 50.0, 40.0, 0);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
- SendClientMessage(playerid, COLOR_LIGHTGREEN,"System: Done!");
- }
- return 1;
- }
- CMD:iamanthony(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 9999)
- {
- new Text3D:label = Create3DTextLabel("Scripter Anthony", COLOR_BRIGHTRED, 30.0, 40.0, 50.0, 40.0, 0);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
- SendClientMessage(playerid, COLOR_LIGHTGREEN,"System: Done!");
- }
- return 1;
- }
- CMD:vehname(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "--------------------------------------------------------------------------------------------------------------------------------");
- SendClientMessage(playerid, COLOR_WHITE, "Vehicle Search:");
- new string[128];
- if(isnull(params)) return SendClientMessage(playerid, COLOR_GREY, "No keyword specified.");
- if(!params[2]) return SendClientMessage(playerid, COLOR_GREY, "Search keyword too short.");
- for(new v; v < sizeof(VehicleName); v++)
- {
- if(strfind(VehicleName[v], params, true) != -1)
- {
- if(isnull(string)) format(string, sizeof(string), "%s (ID: %d)", VehicleName[v], v+400);
- else format(string, sizeof(string), "%s | %s (ID: %d)", string, VehicleName[v], v+400);
- }
- }
- if(!string[0]) SendClientMessage(playerid, COLOR_GREY, "No results found.");
- else if(string[127]) SendClientMessage(playerid, COLOR_GREY, "Too many results found.");
- else SendClientMessage(playerid, COLOR_WHITE, string);
- SendClientMessage(playerid, COLOR_YELLOW, "--------------------------------------------------------------------------------------------------------------------------------");
- }
- return 1;
- }
- CMD:systemfine(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1337)
- {
- new string[128], giveplayerid, Amount, Reason[64];
- if(sscanf(params, "uds", giveplayerid, Amount, Reason))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Systemfine [Playerid] [Amount] [Reason]");
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"Gives the given player an Anonymous fine.");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- new year, month,day;
- getdate(year, month, day);
- format(string, sizeof(string), "Notice: %s was Auto-Fined $%d by the System, reason: %s", GetPlayerNameEx(giveplayerid), Amount, Reason);
- SendClientMessageToAll(COLOR_BRIGHTRED, string);
- GivePlayerMoney(giveplayerid, -Amount);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- }
- return 1;
- }
- CMD:ffine(playerid, params[]) return cmd_fakefine(playerid, params);
- CMD:fakefine(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1337)
- {
- new string[128], giveplayerid, Amount, Reason[64];
- if(sscanf(params, "uds", giveplayerid, Amount, Reason))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Fakefine [Playerid] [Amount] [Reason]");
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"Gives the playr a Fake fine.");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- new year, month,day;
- getdate(year, month, day);
- format(string, sizeof(string), "Notice: %s was fined $%d by %s, reason: %s", GetPlayerNameEx(giveplayerid), Amount, PlayerName(playerid), Reason);
- SendClientMessageToAll(COLOR_BRIGHTRED, string);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- }
- return 1;
- }
- CMD:fine(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- new string[128], giveplayerid, Amount, Reason[64];
- if(sscanf(params, "uds", giveplayerid, Amount, Reason))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Fine [Playerid] [Amount] [Reason]");
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"Fines the given player.");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if (Amount < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Amount must be greater than 0");
- return 1;
- }
- new year, month,day;
- getdate(year, month, day);
- format(string, sizeof(string), "Notice: %s was fined $%d by %s, reason: %s", GetPlayerNameEx(giveplayerid), Amount, PlayerName(playerid), Reason);
- SendClientMessageToAll(COLOR_BRIGHTRED, string);
- GivePlayerMoney(giveplayerid, -Amount);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- }
- return 1;
- }
- CMD:createcar(playerid,params[]) return cmd_ccar(playerid,params);
- CMD:ccar(playerid,params[])
- {
- new Model, Float:Pos[4], col1, col2;
- if(sscanf(params, "iii", Model, col1, col2))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /CreateCar [Model] [Color 1] [Color 2]");
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"Spawns a Car.");
- return 1;
- }
- if(col1 < 0 || col2 < 0 || col1 > 255 || col2 > 255) return SendClientMessage(playerid, COLOR_GREY, "Incorrect color id, (Try between 0 and 255).");
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
- GetPlayerFacingAngle(playerid, Pos[3]);
- CreateVehicle(Model, Pos[0], Pos[1], Pos[2], Pos[3], col1, col2, -1);
- return 1;
- }
- CMD:mute(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Mute [Player ID]");
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"To unmute them, just mute that player again.");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pMuted] == 0)
- {
- PlayerInfo[giveplayerid][pMuted] = 1;
- format(string, sizeof(string), "Notice: %s was silenced by %s.",GetPlayerNameEx(giveplayerid),PlayerName(playerid));
- ABroadCast(COLOR_BRIGHTRED,string,1);
- }
- else
- {
- PlayerInfo[giveplayerid][pMuted] = 0;
- format(string, sizeof(string), "Notice: %s was unsilenced by %s.",GetPlayerNameEx(giveplayerid),PlayerName(playerid));
- ABroadCast(COLOR_BRIGHTRED,string,1);
- }
- }
- }
- return 1;
- }
- CMD:reportban(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ReportBan [Player ID]");
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"To unreport them, just reportban that player again.");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pReportBanned] == 0)
- {
- PlayerInfo[giveplayerid][pReportBanned] = 1;
- format(string, sizeof(string), "Notice: %s was Report-Banned by %s.",GetPlayerNameEx(giveplayerid),PlayerName(playerid));
- ABroadCast(COLOR_BRIGHTRED,string,1);
- }
- else
- {
- PlayerInfo[giveplayerid][pReportBanned] = 0;
- format(string, sizeof(string), "Notice: %s was UnReport-Banned by %s.",GetPlayerNameEx(giveplayerid),PlayerName(playerid));
- ABroadCast(COLOR_BRIGHTRED,string,1);
- }
- }
- }
- return 1;
- }
- CMD:clearchat(playerid) return cmd_cc(playerid);
- CMD:cc(playerid)
- {
- if(PlayerInfo[playerid][pAdmin] >= 1337)
- {
- foreach(Player, i)
- {
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- SendClientMessage(i,COLOR_WHITE," ");
- }
- new string[128];
- if(PlayerInfo[playerid][pAdmin] == 1337 || PlayerInfo[playerid][pAdmin] == 1338)
- {
- format(string, sizeof(string), "* {FF0000}<%d Admin> {FFFF00}%s has cleared all chats.",PlayerInfo[playerid][pAdmin], PlayerName(playerid));
- SendClientMessageToAll(COLOR_YELLOW,string);
- }
- else if(PlayerInfo[playerid][pAdmin] >= 9999)
- {
- format(string, sizeof(string), "* {FF0000}<Owner> {FFFF00}%s has cleared all chats.", PlayerName(playerid));
- SendClientMessageToAll(COLOR_YELLOW,string);
- }
- }
- return 1;
- }
- CMD:unban(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1337)
- {
- new string[128];
- if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Unban [Player Name]");
- if(doesAccountExist(params))
- {
- if(PlayerInfo[MAX_PLAYERS][pBanned] >= 1)
- {
- UnbanPlayer(params);
- OnPlayerOfflineSave(params);
- RemoveBan(params);
- format(string, 128, "Notice: %s was unbanned by %s.", params, PlayerName(playerid));
- ABroadCast(COLOR_BRIGHTRED,string,1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"That account isn't banned!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That account doesn't exist.");
- }
- }
- return 1;
- }
- CMD:check(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 2)
- {
- new giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /Check [Player ID]");
- if(IsPlayerConnected(giveplayerid))
- {
- ShowStats(playerid,giveplayerid);
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- }
- return 1;
- }
- CMD:gate(playerid,params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 10, 2482.30004883, -1688.80004883, 14.00000000))//Gate 1
- {
- switch(Open1)// Check's weather the gate is opened or closed.
- {
- case true:// Closes
- {
- MoveObject(Gate1,2482.30004883,-1688.80004883,14.00000000,3000);//Closes
- Open1 = false;
- SendClientMessage(playerid, COLOR_GREEN, "You have closed the First Grove Gate!");
- }
- case false:// Opens
- {
- MoveObject(Gate1,2482.30004883,-1688.80004883,20.00000000,3000);//Opens
- Open1 = true;
- SendClientMessage(playerid, COLOR_GREEN, "You have opened the First Grove Gate!");
- }
- }
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,10,2464.50000000,-1658.69921875,14.00000000))//Gate 2
- {
- switch(Open2) // Check's weather the gate is opened or closed.
- {
- case true: // Closes
- {
- MoveObject(Gate2,2464.50000000,-1658.69921875,14.00000000,3000);//Close the gate
- Open2 = false;
- SendClientMessageEx(playerid, COLOR_GREEN, "You have closed the Second Grove Gate!");
- }
- case false: //Opens
- {
- MoveObject(Gate2,2464.50000000,-1658.69921875,20.00000000,3000);//Open the gate
- Open2 = true;
- SendClientMessageEx(playerid, COLOR_GREEN, "You have opened the Second Grove Gate!");
- }
- }
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,10,1544.69995117,-1627.50000000,14.00000000)) //Gate 3
- {
- switch(Open3) // Check's weather the gate is opened or closed.
- {
- case true: // Closes
- {
- MoveObject(Gate3,1544.69995117,-1627.50000000,14.00000000,3000);//Close the gate
- Open3 = false;
- SendClientMessageEx(playerid, COLOR_GREEN, "You have closed the LSPD Gate!");
- }
- case false: // Opens
- {
- MoveObject(Gate3,1544.69995117,-1627.50000000,20.00000000,3000);//Open the gate
- Open3 = true;
- SendClientMessageEx(playerid, COLOR_GREEN, "You have opened the LSPD Gate!");
- }
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY,"You're not close enough to any gate.");//
- }
- return 1;
- }
- #pragma unused CheckText
- CMD:tow(playerid, params[])
- {
- if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid, COLOR_GREY, "You are already towing a vehicle.");
- new Float:PPPX,Float:PPPY,Float:PPPZ;
- GetPlayerPos(playerid,PPPX,PPPY,PPPZ);
- new Float:VVVX,Float:VVVY,Float:VVVZ;
- new Found=0;
- new VID=0;
- while((VID<MAX_VEHICLES)&&(!Found))
- {
- VID++;
- GetVehiclePos(VID,VVVX,VVVY,VVVZ);
- if ((floatabs(PPPX-VVVX)<7.0)&&(floatabs(PPPY-VVVY)<7.0)&&(floatabs(PPPZ-VVVZ)<7.0)&&(VID!=GetPlayerVehicleID(playerid)))
- {
- Found=1;
- AttachTrailerToVehicle(VID,GetPlayerVehicleID(playerid));
- }
- }
- if (!Found)
- {
- SendClientMessage(playerid,COLOR_GREY,"There is no vehicle in range.");
- }
- return 1;
- }
- /*
- TBA List (To Be Added):
- 1.) Currently Nothing.. Will wait until ideas are given.
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement