Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- #define DSL DIALOG_STYLE_LIST
- #define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
- #define GREY 0xAFAFAFAA
- #define GREEN 0x33AA33AA
- #define YELLOW 0xFFFF00AA
- #define WHITE 0xFFFFFFAA
- #define LIGHTBLUE 0x33CCFFAA
- #define ORANGE 0xFF9900AA
- new Votes = 0;
- new Voted[MAX_PLAYERS];
- new VoteActive;
- new thingy;
- new VPlayers;
- new KickName[24];
- new PlayerName[24];
- new IDofotherplayer;
- forward CountDownTimer(playerid);
- new Count;
- new Timer;
- new Text:TCountDown;
- new Text:VoteKick;
- new gTeam[MAX_PLAYERS];
- new quakemove;
- new quake[16];
- new ammo[8];
- new megahp;
- new hp1[6];
- new snipe[2];
- new bfg12;
- new rocketla[3];
- new shot[2];
- new rflag;
- new bflag;
- new rflagup;
- new bflagup;
- new ScoreOnFlag[2];
- new ipiq;
- new Text:Textdraw0;
- new Text:Textdraw1;
- new Text:Textdraw2;
- new Text:Textdraw3;
- new Text:Textdraw4;
- new PlayerText:Textdraw5[MAX_PLAYERS];
- new PlayerText:Textdraw6[MAX_PLAYERS];
- new PlayerText:Textdraw7[MAX_PLAYERS];
- new PlayerText:Textdraw8[MAX_PLAYERS];
- new PlayerText:Textdraw9[MAX_PLAYERS];
- new PlayerText:Textdraw10[MAX_PLAYERS];
- new PlayerText:Textdraw11[MAX_PLAYERS];
- new PlayerText:Textdraw12[MAX_PLAYERS];
- new PlayerText:Textdraw13[MAX_PLAYERS];
- new PlayerText:Textdraw14[MAX_PLAYERS];
- new PlayerText:Textdraw15[MAX_PLAYERS];
- new PlayerText:Textdraw16[MAX_PLAYERS];
- new PlayerText:Textdraw17[MAX_PLAYERS];
- new PlayerText:Textdraw18[MAX_PLAYERS];
- new PlayerText:Textdraw19[MAX_PLAYERS];
- new PlayerText:Textdraw20[MAX_PLAYERS];
- forward quakemove1();
- forward quakemove2();
- public OnFilterScriptInit()
- {
- SetTimer("quakemove1", 2000, false);
- quakemove = CreateObject(19362, -1340.4470, -2407.6763, 3268.3848, 0.00, 90.00, 0.00);
- Textdraw0 = TextDrawCreate(566.000000, 395.687500, "usebox");
- TextDrawLetterSize(Textdraw0, 0.000000, 2.211111);
- TextDrawTextSize(Textdraw0, 492.000000, 0.000000);
- TextDrawAlignment(Textdraw0, 1);
- TextDrawColor(Textdraw0, 0xFFFFFFFF);
- TextDrawUseBox(Textdraw0, true);
- TextDrawBoxColor(Textdraw0, -1);
- TextDrawSetShadow(Textdraw0, 0);
- TextDrawSetOutline(Textdraw0, 0);
- TextDrawFont(Textdraw0, 0);
- Textdraw1 = TextDrawCreate(529.000000, 397.875000, "usebox");
- TextDrawLetterSize(Textdraw1, 0.000000, 1.676388);
- TextDrawTextSize(Textdraw1, 495.000000, 0.000000);
- TextDrawAlignment(Textdraw1, 1);
- TextDrawColor(Textdraw1, 0xFF0000FF);
- TextDrawUseBox(Textdraw1, true);
- TextDrawBoxColor(Textdraw1, -16776961);
- TextDrawSetShadow(Textdraw1, 0);
- TextDrawSetOutline(Textdraw1, 0);
- TextDrawFont(Textdraw1, 0);
- Textdraw2 = TextDrawCreate(562.500000, 398.000000, "usebox");
- TextDrawLetterSize(Textdraw2, 0.000000, 1.676388);
- TextDrawTextSize(Textdraw2, 527.500000, 0.000000);
- TextDrawAlignment(Textdraw2, 1);
- TextDrawColor(Textdraw2, 0x0000FFFF);
- TextDrawUseBox(Textdraw2, true);
- TextDrawBoxColor(Textdraw2, 65535);
- TextDrawSetShadow(Textdraw2, 0);
- TextDrawSetOutline(Textdraw2, 0);
- TextDrawFont(Textdraw2, 0);
- Textdraw3 = TextDrawCreate(506.500000, 396.375000, "_");
- TextDrawLetterSize(Textdraw3, 0.449999, 1.600000);
- TextDrawAlignment(Textdraw3, 1);
- TextDrawColor(Textdraw3, 0xFFFFFFFF);
- TextDrawSetShadow(Textdraw3, 0);
- TextDrawSetOutline(Textdraw3, 1);
- TextDrawBackgroundColor(Textdraw3, 51);
- TextDrawFont(Textdraw3, 1);
- TextDrawSetProportional(Textdraw3, 1);
- Textdraw4 = TextDrawCreate(536.500000, 396.062500, "_");
- TextDrawLetterSize(Textdraw4, 0.449999, 1.600000);
- TextDrawAlignment(Textdraw4, 1);
- TextDrawColor(Textdraw4, 0xFFFFFFFF);
- TextDrawSetShadow(Textdraw4, 0);
- TextDrawSetOutline(Textdraw4, 1);
- TextDrawBackgroundColor(Textdraw4, 51);
- TextDrawFont(Textdraw4, 1);
- TextDrawSetProportional(Textdraw4, 1);
- //quake city
- //Îñíîâíûå ñïàâí-ïëàòôîðìû
- CreateObject(19454,-1352.27000000,-2446.06000000,3264.24000000,0.00000000,90.00000000,90.00000000); //
- CreateObject(19454,-1342.69000000,-2446.07000000,3264.23000000,0.00000000,90.00000000,90.00000000); //
- CreateObject(19362,-1347.44000000,-2443.02000000,3264.25000000,0.00000000,90.00000000,0.00000000); //
- CreateObject(19362,-1347.75000000,-2372.32000000,3264.25000000,0.00000000,90.00000000,0.00000000); //
- CreateObject(19454,-1342.70000000,-2369.13000000,3264.24000000,0.00000000,90.00000000,90.00000000); //
- CreateObject(19454, -1352.26, -2369.14, 3264.24, 0.00, 90.00, 90.00);
- /* Îáúåêòû äëÿ GTA CR
- CreateObject(2090,-1350.0000000,-2417.6500000,3200.0000000,0.0000000,180.0000000,0.0000000); //
- CreateObject(2090,-1494.0000000,-2417.6500000,3258.6000000,0.0000000,270.0000000,0.0000000); //
- CreateObject(2090,-1203.0000000,-2417.6500000,3245.4800000,0.0000000,90.0000000,0.0000000); //
- CreateObject(2090,-1349.8900000,-2567.0100000,3245.3200000,90.0000000,0.0000000,0.0000000); //
- CreateObject(2090,-1344.5600000,-2320.8100000,3248.2100000,90.0000000,0.0000000,180.0000000); //
- CreateObject(2090,-1344.5600000,-2422.0000000,3344.0000000,0.0000000,0.0000000,0.0000000); //
- */
- //Òå æå îáúåêòû, òîëüêî â SAMP (ñòàíäàðò)
- CreateObject(4247,-1350.0000000,-2417.6500000,3200.0000000,0.0000000,180.0000000,0.0000000); //
- CreateObject(4247,-1494.0000000,-2417.6500000,3258.6000000,0.0000000,270.0000000,0.0000000); //
- CreateObject(4247,-1203.0000000,-2417.6500000,3245.4800000,0.0000000,90.0000000,0.0000000); //
- CreateObject(4247,-1349.8900000,-2567.0100000,3245.3200000,90.0000000,0.0000000,0.0000000); //
- CreateObject(4247,-1344.5600000,-2320.8100000,3248.2100000,90.0000000,0.0000000,180.0000000); //
- CreateObject(4247,-1344.5600000,-2422.0000000,3344.0000000,0.0000000,0.0000000,0.0000000); //
- //Ñàìà èãðà
- CreateObject(19454,-1355.4100000,-2443.5800000,3264.0200000,-5.0000000,90.0000000,0.0000000); //
- CreateObject(19454,-1339.5500000,-2443.7800000,3264.0200000,-5.0000000,90.0000000,0.0000000); //
- CreateObject(19454,-1347.6000000,-2427.6400000,3256.9100000,0.0000000,90.0000000,0.0000000); //
- CreateObject(19355,-1347.4400000,-2443.1700000,3274.6400000,0.0000000,90.0000000,-90.0000000); //
- CreateObject(19355,-1347.4500000,-2439.6700000,3274.6400000,0.0000000,90.0000000,90.0000000); //
- CreateObject(19428,-1347.6500000,-2421.4300000,3257.5200000,0.0000000,70.0000000,90.0000000); //
- CreateObject(19352,-1347.4800000,-2429.4900000,3256.9600000,0.0000000,0.0000000,0.0000000); //
- CreateObject(19352,-1339.5800000,-2437.6700000,3260.0300000,0.0000000,0.0000000,0.0000000); //
- CreateObject(19352,-1355.4900000,-2437.2600000,3260.0300000,0.0000000,0.0000000,0.0000000); //
- CreateObject(19454,-1352.4300000,-2407.6400000,3253.1300000,0.0000000,90.0000000,90.0000000); //
- CreateObject(19428,-1348.4000000,-2410.8500000,3253.7200000,0.0000000,70.0000000,-90.0000000); //
- CreateObject(19428,-1348.4500000,-2404.3300000,3253.7100000,0.0000000,70.0000000,90.0000000); //
- CreateObject(19428,-1352.4900000,-2410.7800000,3252.2900000,0.0000000,60.0000000,90.0000000); //
- CreateObject(19428,-1344.4100000,-2404.5900000,3252.3300000,0.0000000,60.0000000,-90.0000000); //
- CreateObject(19454,-1347.6000000,-2388.7100000,3256.9100000,0.0000000,90.0000000,0.0000000); //
- CreateObject(19428,-1347.5200000,-2395.0000000,3257.5400000,0.0000000,70.0000000,-90.0000000); //
- CreateObject(19352,-1347.6600000,-2385.7000000,3256.9600000,0.0000000,0.0000000,0.0000000); //
- CreateObject(19454,-1339.6100000,-2371.8300000,3264.0200000,5.0000000,90.0000000,0.0000000); //
- CreateObject(19454,-1355.4100000,-2371.6700000,3264.0200000,5.0000000,90.0000000,0.0000000); //
- CreateObject(19352,-1355.4300000,-2377.6500000,3260.0300000,0.0000000,0.0000000,0.0000000); //
- CreateObject(19352,-1339.2700000,-2378.2500000,3260.0300000,0.0000000,0.0000000,0.0000000); //
- CreateObject(19454,-1355.4100000,-2380.1300000,3260.0100000,0.0000000,90.0000000,0.0000000); //
- CreateObject(19454,-1339.3400000,-2380.1800000,3260.0100000,0.0000000,90.0000000,0.0000000); //
- CreateObject(19454,-1339.6000000,-2435.4900000,3259.9900000,0.0000000,90.0000000,0.0000000); //
- CreateObject(19454,-1355.3700000,-2435.5100000,3259.9900000,0.0000000,90.0000000,0.0000000); //
- CreateObject(19454,-1342.6600000,-2432.4100000,3260.0200000,0.0000000,90.0000000,90.0000000); //
- CreateObject(19454,-1352.2700000,-2432.4100000,3260.0200000,0.0000000,90.0000000,90.0000000); //
- CreateObject(19449,-1347.7400000,-2435.6900000,3260.6300000,0.0000000,-70.0000000,90.0000000); //
- CreateObject(19449,-1347.1400000,-2379.8900000,3260.6300000,0.0000000,70.0000000,90.0000000); //
- CreateObject(19454,-1352.3700000,-2383.2100000,3260.0200000,0.0000000,90.0000000,90.0000000); //
- CreateObject(19454,-1342.8000000,-2383.2200000,3260.0200000,0.0000000,90.0000000,90.0000000); //
- CreateObject(19355,-1347.4500000,-2374.3800000,3274.6400000,0.0000000,90.0000000,90.0000000); //
- CreateObject(19355,-1347.4500000,-2377.8600000,3274.6400000,0.0000000,90.0000000,-90.0000000); //
- CreateObject(19428,-1357.1600000,-2429.8000000,3260.5800000,0.0000000,70.0000000,121.5400000); //
- CreateObject(19428,-1337.5500000,-2385.9900000,3260.8300000,0.0000000,70.0000000,-60.9200000); //
- CreateObject(19454,-1344.4400000,-2407.6800000,3253.1600000,0.0000000,90.0000000,90.0000000); //
- CreateObject(19377,-1330.5600000,-2407.6800000,3262.0600000,0.0000000,90.0000000,0.0000000); //
- CreateObject(19377,-1363.9700000,-2408.3100000,3262.0600000,0.0000000,90.0000000,0.0000000); //
- CreateObject(19355,-1347.4400000,-2398.6800000,3250.8300000,0.0000000,60.0000000,-90.0000000); //
- CreateObject(19355,-1347.4400000,-2416.9000000,3251.0100000,0.0000000,60.0000000,90.0000000); //
- CreateObject(19429,-1355.4500000,-2384.9000000,3260.8900000,90.0000000,0.0000000,90.0000000); //
- CreateObject(19429,-1357.1100000,-2383.2400000,3260.8900000,90.0000000,0.0000000,0.0000000); //
- CreateObject(19429,-1337.9300000,-2432.3900000,3260.8900000,90.0000000,0.0000000,0.0000000); //
- CreateObject(19429,-1339.6200000,-2430.7100000,3260.8900000,90.0000000,0.0000000,90.0000000); //
- CreateObject(19425,-1337.9800000,-2435.7500000,3260.2700000,90.0000000,0.0000000,90.0000000); //
- CreateObject(19425,-1337.9800000,-2438.5900000,3260.2700000,90.0000000,0.0000000,90.0000000); //
- CreateObject(19425,-1339.6000000,-2440.2100000,3260.2700000,90.0000000,0.0000000,0.0000000); //
- CreateObject(19425,-1341.2700000,-2438.5700000,3260.2700000,90.0000000,0.0000000,-90.0000000); //
- CreateObject(19425,-1341.2600000,-2435.7500000,3260.2700000,90.0000000,0.0000000,-90.0000000); //
- CreateObject(19425,-1342.9300000,-2434.1000000,3260.2700000,90.0000000,0.0000000,0.0000000); //
- CreateObject(19425,-1352.0600000,-2434.1000000,3260.2700000,90.0000000,0.0000000,0.0000000); //
- CreateObject(19425,-1353.7100000,-2435.7900000,3260.2700000,90.0000000,0.0000000,90.0000000); //
- CreateObject(19425,-1353.7300000,-2438.6700000,3260.2700000,90.0000000,0.0000000,90.0000000); //
- CreateObject(19425,-1355.4200000,-2440.2500000,3260.2700000,90.0000000,0.0000000,0.0000000); //
- CreateObject(19425,-1357.0400000,-2438.6300000,3260.2700000,90.0000000,0.0000000,-90.0000000); //
- CreateObject(19425,-1357.0300000,-2435.3300000,3260.2700000,90.0000000,0.0000000,-90.0000000); //
- CreateObject(19425,-1357.0500000,-2433.3400000,3260.2700000,90.0000000,0.0000000,-90.0000000); //
- CreateObject(19425,-1349.2100000,-2430.7500000,3257.1900000,90.0000000,0.0000000,-90.0000000); //
- CreateObject(19425,-1349.2000000,-2427.5100000,3257.1900000,90.0000000,0.0000000,-90.0000000); //
- CreateObject(19425,-1349.2200000,-2424.5900000,3257.1900000,90.0000000,0.0000000,-90.0000000); //
- CreateObject(19425,-1345.9400000,-2424.4700000,3257.1900000,90.0000000,0.0000000,90.0000000); //
- CreateObject(19425,-1345.9100000,-2427.6100000,3257.1900000,90.0000000,0.0000000,90.0000000); //
- CreateObject(19425,-1345.8900000,-2430.8300000,3257.1900000,90.0000000,0.0000000,90.0000000); //
- CreateObject(19425,-1347.5900000,-2432.3600000,3257.1900000,90.0000000,0.0000000,0.0000000); //
- CreateObject(19425,-1337.9400000,-2440.6500000,3264.0700000,85.0000000,90.0000000,0.0000000); //
- CreateObject(19425,-1339.5300000,-2448.5000000,3264.6800000,90.0000000,0.0000000,0.0000000); //
- CreateObject(19425,-1342.9700000,-2447.6600000,3264.4700000,90.0000000,0.0000000,0.0000000); //
- CreateObject(19425,-1346.2300000,-2447.6600000,3264.4700000,90.0000000,0.0000000,0.0000000); //
- CreateObject(19425,-1349.4200000,-2447.6600000,3264.4700000,90.0000000,0.0000000,0.0000000); //
- CreateObject(19425,-1351.9800000,-2447.6500000,3264.4700000,90.0000000,0.0000000,0.0000000); //
- CreateObject(19425,-1355.4500000,-2448.3000000,3264.7600000,90.0000000,0.0000000,0.0000000); //
- CreateObject(19425,-1357.0200000,-2440.4300000,3264.0600000,85.0000000,-90.0000000,0.0000000); //
- CreateObject(19425,-1345.9300000,-2391.8600000,3257.1900000,90.0000000,0.0000000,90.0000000); //
- CreateObject(19425,-1345.9100000,-2388.5900000,3257.1900000,90.0000000,0.0000000,90.0000000); //
- CreateObject(19425,-1345.9200000,-2385.5200000,3257.1900000,90.0000000,0.0000000,90.0000000); //
- CreateObject(19425,-1347.6300000,-2383.9400000,3257.1900000,90.0000000,0.0000000,180.0000000); //
- CreateObject(19425,-1349.2100000,-2385.5400000,3257.1900000,90.0000000,0.0000000,-90.0000000); //
- CreateObject(19425,-1349.2200000,-2388.8400000,3257.1900000,90.0000000,0.0000000,-90.0000000); //
- CreateObject(19425,-1349.2200000,-2391.8000000,3257.1900000,90.0000000,0.0000000,-90.0000000); //
- CreateObject(19425,-1337.6200000,-2376.9700000,3260.3600000,90.0000000,0.0000000,90.0000000); //
- CreateObject(19425,-1337.6100000,-2380.2400000,3260.3600000,90.0000000,0.0000000,90.0000000); //
- CreateObject(19425,-1337.6200000,-2382.4700000,3260.3600000,90.0000000,0.0000000,90.0000000); //
- CreateObject(19425,-1353.7000000,-2379.7600000,3260.3300000,90.0000000,0.0000000,90.0000000); //
- CreateObject(19425,-1353.6900000,-2377.0000000,3260.3300000,90.0000000,0.0000000,90.0000000); //
- CreateObject(19425,-1339.5100000,-2367.0400000,3264.7800000,90.0000000,0.0000000,180.0000000); //
- CreateObject(19425,-1342.9300000,-2367.4900000,3264.5700000,90.0000000,0.0000000,180.0000000); //
- CreateObject(19425,-1346.1900000,-2367.4800000,3264.5700000,90.0000000,0.0000000,180.0000000); //
- CreateObject(19425,-1349.4600000,-2367.5000000,3264.5700000,90.0000000,0.0000000,180.0000000); //
- CreateObject(19425,-1351.9200000,-2367.5000000,3264.5700000,90.0000000,0.0000000,180.0000000); //
- CreateObject(19425,-1355.3900000,-2366.8800000,3264.7300000,90.0000000,0.0000000,180.0000000); //
- CreateObject(19425,-1357.0900000,-2379.8800000,3260.3100000,90.0000000,0.0000000,-90.0000000); //
- CreateObject(19425,-1357.0900000,-2376.9400000,3260.3100000,90.0000000,0.0000000,-90.0000000); //
- CreateObject(19425,-1355.4200000,-2375.4000000,3260.3100000,90.0000000,0.0000000,180.0000000); //
- CreateObject(19425,-1352.0300000,-2381.4800000,3260.3100000,90.0000000,0.0000000,180.0000000); //
- CreateObject(19425,-1342.7200000,-2381.5000000,3260.3100000,90.0000000,0.0000000,180.0000000); //
- CreateObject(19425,-1341.0700000,-2379.7800000,3260.3100000,90.0000000,0.0000000,-90.0000000); //
- CreateObject(19425,-1341.0600000,-2377.0400000,3260.3100000,90.0000000,0.0000000,-90.0000000); //
- CreateObject(19425,-1339.3600000,-2375.5100000,3260.3100000,90.0000000,0.0000000,178.8000000); //
- CreateObject(19425,-1357.0300000,-2443.6300000,3264.3500000,85.0000000,-90.0000000,0.0000000); //
- CreateObject(19425,-1357.0300000,-2446.8600000,3264.6300000,85.0000000,-90.0000000,0.0000000); //
- CreateObject(19425,-1337.8700000,-2443.8800000,3264.3300000,85.0000000,90.0000000,0.0000000); //
- CreateObject(19425,-1337.8700000,-2447.0800000,3264.6100000,85.0000000,90.0000000,0.0000000); //
- CreateObject(19425,-1337.9400000,-2368.6400000,3264.6500000,95.0000000,90.0000000,0.0000000); //
- CreateObject(19425,-1337.9600000,-2371.9100000,3264.3700000,95.0000000,90.0000000,0.0000000); //
- CreateObject(19425,-1337.9400000,-2375.0300000,3264.0900000,95.0000000,90.0000000,0.0000000); //
- CreateObject(19425,-1357.0800000,-2374.8700000,3264.0600000,95.0000000,-90.0000000,0.0000000); //
- CreateObject(19425,-1357.0900000,-2371.6700000,3264.3200000,95.0000000,-90.0000000,0.0000000); //
- CreateObject(19425,-1357.1000000,-2368.3900000,3264.6000000,95.0000000,-90.0000000,0.0000000); //
- CreateObject(18762,-1343.4700000,-2375.4500000,3259.5300000,0.0000000,90.0000000,-10.0000000); //
- CreateObject(18762,-1351.4100000,-2375.4300000,3259.5300000,0.0000000,90.0000000,10.0000000); //
- CreateObject(18762,-1347.5100000,-2375.0200000,3259.5300000,0.0000000,90.0000000,0.0000000); //
- CreateObject(18762,-1343.6600000,-2440.2300000,3259.5300000,0.0000000,90.0000000,10.0000000); //
- CreateObject(18762,-1351.1900000,-2440.2300000,3259.5300000,0.0000000,90.0000000,-10.0000000); //
- CreateObject(18762,-1347.3100000,-2440.6600000,3259.5300000,0.0000000,90.0000000,0.0000000); //
- //äæàìïåðû (ïîäë¸òèêè)
- quake[0]=CreatePickup(19134, 23, -1339.5800, -2437.6699, 3261.2910, -1); //øàïêà ëåâàÿ ñèíÿÿ
- quake[1]=CreatePickup(19134, 23, -1355.4900, -2437.2600, 3261.1743, -1); //øàïêà ïðàâàÿ ñèíÿÿ
- quake[2]=CreatePickup(19134, 23, -1347.4800, -2429.4900, 3257.6589, -1); //øàïêà ñðåäíÿÿ ñèíÿÿ
- quake[3]=CreatePickup(19134, 23, -1355.4301, -2377.6499, 3261.3823, -1); //øàïêà ëåâàÿ êðàñíàÿ
- quake[4]=CreatePickup(19134, 23, -1339.2700, -2378.2500, 3261.3823, -1); //øàïêà ïðàâàÿ êðàñíàÿ
- quake[5]=CreatePickup(19134, 23, -1347.6600, -2385.7000, 3258.0281, -1); //øàïêà ñðåäíÿÿ êðàñíàÿ
- quake[6]=CreatePickup(19134, 23, -1347.4956, -2396.2822, 3258.2222, -1); //ñòåíà êðàñíûé ïîë¸ò
- quake[7]=CreatePickup(19134, 23, -1336.7849, -2386.9185, 3262.1074, -1); //ñòåíà êðàñíûé òåëåïîðòåð
- quake[8]=CreatePickup(19135, 23, -1347.4399, -2398.6799, 3252.7383, -1); //ñòåíà êðàñíûé äî ñòåíû ñâåðõó
- quake[9]=CreatePickup(19134, 23, -1347.6995, -2420.1357, 3258.2222, -1); //ñòåíà ñèíèé ïîë¸ò
- quake[10]=CreatePickup(19134, 23, -1357.9586, -2428.7749, 3262.0786, -1); //ñòåíà ñèíèé òåëåïîðòåð
- quake[11]=CreatePickup(19135, 23, -1347.4399, -2416.8999, 3252.2798, -1); //ñòåíà ñèíèé äî ñòåíû ñâåðõó
- quake[12]=CreatePickup(19198, 23, -1348.5658, -2403.1853, 3255.2800, -1); //ñòåíà ñíàïà ñèíèé ïëàòôîðìà
- quake[13]=CreatePickup(19198, 23, -1344.6415, -2403.1021, 3252.8857, -1); //ñòåíà öåíòð ñèíèé ïëàòôîðìà
- quake[14]=CreatePickup(19197, 23, -1348.4739, -2412.1685, 3255.2600, -1); //ñòåíà ñíàïà êðàñíûé ïëàòôîðìà
- quake[15]=CreatePickup(19197, 23, -1352.7035, -2411.8757, 3252.8857, -1); //ñòåíà öåíòð êðàñíûé ïëàòôîðìà
- //Ïàòðîíû
- ammo[0]=CreatePickup(354, 2, -1338.7708, -2431.1736, 3260.8909, -1);
- ammo[1]=CreatePickup(354, 2, -1353.1135, -2431.3464, 3260.8909, -1);
- ammo[2]=CreatePickup(354, 2, -1355.9674, -2384.3723, 3260.8909, -1);
- ammo[3]=CreatePickup(354, 2, -1339.6129, -2384.1729, 3260.8909, -1);
- ammo[4]=CreatePickup(354, 2, -1333.9473, -2407.4844, 3263.1899, -1);
- ammo[5]=CreatePickup(354, 2, -1359.8297, -2408.5229, 3263.1899, -1);
- ammo[6]=CreatePickup(354, 2, -1355.9744, -2407.8711, 3254.1765, -1);
- ammo[7]=CreatePickup(354, 2, -1340.4747, -2407.7576, 3254.1765, -1);
- //Ôëàãè
- rflag = CreatePickup(19124, 1, -1347.7892, -2372.6304, 3264.3279, -1);
- bflag = CreatePickup(19122, 1, -1347.5222, -2442.9741, 3264.3279, -1);
- //Ìåãà çäîðîâüå
- megahp = CreatePickup(1240, 2, -1348.3285, -2407.6160, 3254.7954, -1);
- //Ïðîñòîå çäîðîâüå
- hp1[0] = CreatePickup(1240, 2, -1356.0620, -2407.9834, 3253.7954, -1);
- hp1[1] = CreatePickup(1240, 2, -1340.6648, -2407.8909, 3253.7954, -1);
- hp1[2] = CreatePickup(1240, 2, -1356.2842, -2368.4436, 3265.4065, -1);
- hp1[3] = CreatePickup(1240, 2, -1338.3054, -2446.2332, 3265.4065, -1);
- hp1[4] = CreatePickup(1240, 2, -1334.4871, -2403.6108, 3263.1836, -1);
- hp1[5] = CreatePickup(1240, 2, -1359.5800, -2412.2390, 3263.1836, -1);
- //Ñíàïû
- snipe[0] = CreatePickup(358, 2, -1347.3488, -2438.3723, 3275.3328, -1);
- snipe[1] = CreatePickup(358, 2, -1347.8306, -2378.9836, 3275.3328, -1);
- //ÁÌÃ
- bfg12 = CreatePickup(360, 2, -1340.4316, -2407.9563, 3268.9260, -1);
- //Ðîêåòíèöû
- rocketla[0] = CreatePickup(359, 2, -1334.2659, -2407.3218, 3262.9785, -1);
- rocketla[1] = CreatePickup(359, 2, -1359.7894, -2408.4421, 3262.9785, -1);
- rocketla[2] = CreatePickup(359, 2, -1348.3588, -2406.9258, 3264.1555, -1);
- //Øîòãàíû
- shot[0] = CreatePickup(349, 2, -1356.4408, -2447.2161, 3264.8779, -1);
- shot[1] = CreatePickup(349, 2, -1339.0762, -2367.7883, 3264.8779, -1);
- ScoreOnFlag[0]=0;
- ScoreOnFlag[1]=0;
- ipiq=0;
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- /* Êîììàíäà îòêëþ÷åíèÿ URL çâóêîâ â GTA CR
- OnPlayerCommandText(playerid,"/àóäèî÷");
- */
- OnPlayerCommandText(playerid,"/audiomsg");
- ipiq=0;
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- //Ìåíþ èãðû
- Textdraw5[playerid] = CreatePlayerTextDraw(playerid, 361.500000, -14.250000, "usebox");
- PlayerTextDrawLetterSize(playerid, Textdraw5[playerid], 0.000000, 3.712492);
- PlayerTextDrawTextSize(playerid, Textdraw5[playerid], 637.500000, 0.000000);
- PlayerTextDrawAlignment(playerid, Textdraw5[playerid], 1);
- PlayerTextDrawColor(playerid, Textdraw5[playerid], 50);
- PlayerTextDrawUseBox(playerid, Textdraw5[playerid], true);
- PlayerTextDrawBoxColor(playerid, Textdraw5[playerid], 70);
- PlayerTextDrawSetShadow(playerid, Textdraw5[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Textdraw5[playerid], 0);
- PlayerTextDrawBackgroundColor(playerid, Textdraw5[playerid], 50);
- PlayerTextDrawFont(playerid, Textdraw5[playerid], 0);
- Textdraw6[playerid] = CreatePlayerTextDraw(playerid, 367.000000, 0.875000, "play");
- PlayerTextDrawLetterSize(playerid, Textdraw6[playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, Textdraw6[playerid], 1);
- PlayerTextDrawColor(playerid, Textdraw6[playerid], -1);
- PlayerTextDrawSetShadow(playerid, Textdraw6[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Textdraw6[playerid], -1);
- PlayerTextDrawBackgroundColor(playerid, Textdraw6[playerid], 51);
- PlayerTextDrawFont(playerid, Textdraw6[playerid], 1);
- PlayerTextDrawSetProportional(playerid, Textdraw6[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, Textdraw6[playerid], true);
- Textdraw7[playerid] = CreatePlayerTextDraw(playerid, 417.000000, 1.312500, "team");
- PlayerTextDrawLetterSize(playerid, Textdraw7[playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, Textdraw7[playerid], 1);
- PlayerTextDrawColor(playerid, Textdraw7[playerid], -1);
- PlayerTextDrawSetShadow(playerid, Textdraw7[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Textdraw7[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Textdraw7[playerid], 51);
- PlayerTextDrawFont(playerid, Textdraw7[playerid], 1);
- PlayerTextDrawSetProportional(playerid, Textdraw7[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, Textdraw7[playerid], true);
- Textdraw8[playerid] = CreatePlayerTextDraw(playerid, 474.000000, 0.875000, "vote");
- PlayerTextDrawLetterSize(playerid, Textdraw8[playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, Textdraw8[playerid], 1);
- PlayerTextDrawColor(playerid, Textdraw8[playerid], -1);
- PlayerTextDrawSetShadow(playerid, Textdraw8[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Textdraw8[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Textdraw8[playerid], 51);
- PlayerTextDrawFont(playerid, Textdraw8[playerid], 1);
- PlayerTextDrawSetProportional(playerid, Textdraw8[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, Textdraw8[playerid], true);
- Textdraw9[playerid] = CreatePlayerTextDraw(playerid, 531.500000, 0.875000, "leave");
- PlayerTextDrawLetterSize(playerid, Textdraw9[playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, Textdraw9[playerid], 1);
- PlayerTextDrawColor(playerid, Textdraw9[playerid], -1);
- PlayerTextDrawSetShadow(playerid, Textdraw9[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Textdraw9[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Textdraw9[playerid], 51);
- PlayerTextDrawFont(playerid, Textdraw9[playerid], 1);
- PlayerTextDrawSetProportional(playerid, Textdraw9[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, Textdraw9[playerid], true);
- Textdraw10[playerid] = CreatePlayerTextDraw(playerid, 593.000000, 1.312500, "quit");
- PlayerTextDrawLetterSize(playerid, Textdraw10[playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, Textdraw10[playerid], 1);
- PlayerTextDrawColor(playerid, Textdraw10[playerid], -1);
- PlayerTextDrawSetShadow(playerid, Textdraw10[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Textdraw10[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Textdraw10[playerid], 51);
- PlayerTextDrawFont(playerid, Textdraw10[playerid], 1);
- PlayerTextDrawSetProportional(playerid, Textdraw10[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, Textdraw10[playerid], true);
- Textdraw11[playerid] = CreatePlayerTextDraw(playerid, 281.000000, -58.187500, "LD_SPAC:white");
- PlayerTextDrawLetterSize(playerid, Textdraw11[playerid], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Textdraw11[playerid], 79.000000, 100.187500);
- PlayerTextDrawAlignment(playerid, Textdraw11[playerid], 1);
- PlayerTextDrawColor(playerid, Textdraw11[playerid], -2147450625);
- PlayerTextDrawSetShadow(playerid, Textdraw11[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Textdraw11[playerid], 0);
- PlayerTextDrawFont(playerid, Textdraw11[playerid], 4);
- Textdraw12[playerid] = CreatePlayerTextDraw(playerid, 311.500000, 5.875000, "usebox");
- PlayerTextDrawLetterSize(playerid, Textdraw12[playerid], 0.000000, 1.833333);
- PlayerTextDrawTextSize(playerid, Textdraw12[playerid], 303.500000, 0.000000);
- PlayerTextDrawAlignment(playerid, Textdraw12[playerid], 1);
- PlayerTextDrawColor(playerid, Textdraw12[playerid], 0);
- PlayerTextDrawUseBox(playerid, Textdraw12[playerid], true);
- PlayerTextDrawBoxColor(playerid, Textdraw12[playerid], -16776961);
- PlayerTextDrawSetShadow(playerid, Textdraw12[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Textdraw12[playerid], 317);
- PlayerTextDrawFont(playerid, Textdraw12[playerid], 0);
- Textdraw13[playerid] = CreatePlayerTextDraw(playerid, 297.500000, 25.375000, "Arena");
- PlayerTextDrawLetterSize(playerid, Textdraw13[playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, Textdraw13[playerid], 1);
- PlayerTextDrawColor(playerid, Textdraw13[playerid], -1);
- PlayerTextDrawSetShadow(playerid, Textdraw13[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Textdraw13[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Textdraw13[playerid], 51);
- PlayerTextDrawFont(playerid, Textdraw13[playerid], 1);
- PlayerTextDrawSetProportional(playerid, Textdraw13[playerid], 1);
- Textdraw14[playerid] = CreatePlayerTextDraw(playerid, 324.000000, 14.312500, "usebox");
- PlayerTextDrawLetterSize(playerid, Textdraw14[playerid], 0.000000, 1.333333);
- PlayerTextDrawTextSize(playerid, Textdraw14[playerid], 316.500000, 0.000000);
- PlayerTextDrawAlignment(playerid, Textdraw14[playerid], 1);
- PlayerTextDrawColor(playerid, Textdraw14[playerid], -16776961);
- PlayerTextDrawUseBox(playerid, Textdraw14[playerid], true);
- PlayerTextDrawBoxColor(playerid, Textdraw14[playerid], -16776961);
- PlayerTextDrawSetShadow(playerid, Textdraw14[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Textdraw14[playerid], 317);
- PlayerTextDrawFont(playerid, Textdraw14[playerid], 0);
- Textdraw15[playerid] = CreatePlayerTextDraw(playerid, 334.500000, 6.125000, "usebox");
- PlayerTextDrawLetterSize(playerid, Textdraw15[playerid], 0.000000, 1.833333);
- PlayerTextDrawTextSize(playerid, Textdraw15[playerid], 324.500000, 0.000000);
- PlayerTextDrawAlignment(playerid, Textdraw15[playerid], 2);
- PlayerTextDrawColor(playerid, Textdraw15[playerid], 0);
- PlayerTextDrawUseBox(playerid, Textdraw15[playerid], true);
- PlayerTextDrawBoxColor(playerid, Textdraw15[playerid], -16776961);
- PlayerTextDrawSetShadow(playerid, Textdraw15[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Textdraw15[playerid], 317);
- PlayerTextDrawFont(playerid, Textdraw10[playerid], 0);
- Textdraw16[playerid] = CreatePlayerTextDraw(playerid, 283.500000, 22.500000, "usebox");
- PlayerTextDrawLetterSize(playerid, Textdraw16[playerid], 0.000000, -3.250000);
- PlayerTextDrawTextSize(playerid, Textdraw16[playerid], 222.500000, 0.000000);
- PlayerTextDrawAlignment(playerid, Textdraw16[playerid], 1);
- PlayerTextDrawColor(playerid, Textdraw16[playerid], 50);
- PlayerTextDrawUseBox(playerid, Textdraw16[playerid], true);
- PlayerTextDrawBoxColor(playerid, Textdraw16[playerid], 50);
- PlayerTextDrawSetShadow(playerid, Textdraw16[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Textdraw16[playerid], 0);
- PlayerTextDrawFont(playerid, Textdraw16[playerid], 0);
- Textdraw17[playerid] = CreatePlayerTextDraw(playerid, 229.000000, 2.625000, "q3ctf4");
- PlayerTextDrawLetterSize(playerid, Textdraw17[playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, Textdraw17[playerid], 1);
- PlayerTextDrawColor(playerid, Textdraw17[playerid], -1);
- PlayerTextDrawSetShadow(playerid, Textdraw17[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Textdraw17[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Textdraw17[playerid], 51);
- PlayerTextDrawFont(playerid, Textdraw17[playerid], 1);
- PlayerTextDrawSetProportional(playerid, Textdraw17[playerid], 1);
- Textdraw18[playerid] = CreatePlayerTextDraw(playerid, 500.000000, 22.500000, "usebox");
- PlayerTextDrawLetterSize(playerid, Textdraw18[playerid], 0.000000, 4.601387);
- PlayerTextDrawTextSize(playerid, Textdraw18[playerid], 407.500000, 0.000000);
- PlayerTextDrawAlignment(playerid, Textdraw18[playerid], 1);
- PlayerTextDrawColor(playerid, Textdraw18[playerid], 0);
- PlayerTextDrawUseBox(playerid, Textdraw18[playerid], true);
- PlayerTextDrawBoxColor(playerid, Textdraw18[playerid], 102);
- PlayerTextDrawSetShadow(playerid, Textdraw18[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Textdraw18[playerid], 0);
- PlayerTextDrawFont(playerid, Textdraw18[playerid], 0);
- Textdraw19[playerid] = CreatePlayerTextDraw(playerid, 414.000000, 23.187500, "red team");
- PlayerTextDrawLetterSize(playerid, Textdraw19[playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, Textdraw19[playerid], 1);
- PlayerTextDrawColor(playerid, Textdraw19[playerid], -16776961);
- PlayerTextDrawSetShadow(playerid, Textdraw19[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Textdraw19[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Textdraw19[playerid], 51);
- PlayerTextDrawFont(playerid, Textdraw19[playerid], 1);
- PlayerTextDrawSetProportional(playerid, Textdraw19[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, Textdraw19[playerid], true);
- Textdraw20[playerid] = CreatePlayerTextDraw(playerid, 415.000000, 42.875000, "blue team");
- PlayerTextDrawLetterSize(playerid, Textdraw20[playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, Textdraw20[playerid], 1);
- PlayerTextDrawColor(playerid, Textdraw20[playerid], 65535);
- PlayerTextDrawSetShadow(playerid, Textdraw20[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Textdraw20[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Textdraw20[playerid], 51);
- PlayerTextDrawFont(playerid, Textdraw20[playerid], 1);
- PlayerTextDrawSetProportional(playerid, Textdraw20[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, Textdraw20[playerid], true);
- Voted[playerid] = 0;
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(gTeam[playerid]==0)
- {
- DestroyPickup(rflag);
- rflag = CreatePickup(19124, 1, -1347.7892, -2372.6304, 3264.3279, -1);
- DestroyPickup(rflagup);
- DestroyPickup(bflagup);
- }
- if(gTeam[playerid]==1)
- {
- DestroyPickup(bflag);
- bflag = CreatePickup(19122, 1, -1347.5222, -2442.9741, 3264.3279, -1);
- DestroyPickup(rflagup);
- DestroyPickup(bflagup);
- }
- TextDrawHideForPlayer(playerid, Text:Textdraw0);
- TextDrawHideForPlayer(playerid, Text:Textdraw1);
- TextDrawHideForPlayer(playerid, Text:Textdraw2);
- TextDrawHideForPlayer(playerid, Text:Textdraw3);
- TextDrawHideForPlayer(playerid, Text:Textdraw4);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw5[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw6[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw7[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw8[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw9[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw10[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw11[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw12[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw13[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw14[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw15[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw16[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw17[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw18[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw19[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw20[playerid]);
- CancelSelectTextDraw(playerid);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp (cmdtext, "/quake", true) == 0)
- {
- if(ipiq == 1)
- {
- SendClientMessage(playerid,0x00FF00AA,"You already in the game");
- }
- else
- {
- ShowPlayerDialog(playerid, 510, DSL, "Quake 3", "{ff0000}Red team\n{3636ff}Blue team\nClose", "Okay", "");
- return 1;
- }
- return 1;
- }
- if (strcmp (cmdtext, "/quakemenu", true) == 0)
- {
- PlayerTextDrawShow(playerid, PlayerText:Textdraw5[playerid]);
- PlayerTextDrawShow(playerid, PlayerText:Textdraw6[playerid]);
- PlayerTextDrawShow(playerid, PlayerText:Textdraw7[playerid]);
- PlayerTextDrawShow(playerid, PlayerText:Textdraw8[playerid]);
- PlayerTextDrawShow(playerid, PlayerText:Textdraw9[playerid]);
- PlayerTextDrawShow(playerid, PlayerText:Textdraw10[playerid]);
- PlayerTextDrawShow(playerid, PlayerText:Textdraw11[playerid]);
- PlayerTextDrawShow(playerid, PlayerText:Textdraw12[playerid]);
- PlayerTextDrawShow(playerid, PlayerText:Textdraw13[playerid]);
- PlayerTextDrawShow(playerid, PlayerText:Textdraw14[playerid]);
- PlayerTextDrawShow(playerid, PlayerText:Textdraw15[playerid]);
- PlayerTextDrawShow(playerid, PlayerText:Textdraw16[playerid]);
- PlayerTextDrawShow(playerid, PlayerText:Textdraw17[playerid]);
- SelectTextDraw(playerid, 0xD9D9D9FF);
- return 1;
- }
- if (strcmp (cmdtext, "/exg", true) == 0)
- {
- SpawnPlayer(playerid);
- TextDrawHideForPlayer(playerid, Text:Textdraw0);
- TextDrawHideForPlayer(playerid, Text:Textdraw1);
- TextDrawHideForPlayer(playerid, Text:Textdraw2);
- TextDrawHideForPlayer(playerid, Text:Textdraw3);
- TextDrawHideForPlayer(playerid, Text:Textdraw4);
- ipiq=0;
- return 1;
- }
- dcmd(votekick,8,cmdtext);
- dcmd(vote,4,cmdtext);
- dcmd(stopvote,8,cmdtext);
- return 0;
- }
- dcmd_stopvote(playerid,params[])
- {
- #pragma unused params
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,"SERVER: Unknown Command!");
- TextDrawDestroy(TCountDown);
- TextDrawDestroy(VoteKick);
- KillTimer(Timer);
- KillTimer(thingy);
- SendClientMessageToAll(0xFF0000FF,"Votekick stopped.");
- return 1;
- }
- dcmd_votekick(playerid,params[])
- {
- new id,n[24],on[24],str2[128],string[3];
- new tmp[256], tmp2[256], Index,str[128];
- VPlayers = GetPlayersOnServer()/2+1;
- if(GetPlayersOnServer() <= 2)
- return SendClientMessage(playerid,GREY,"To start a vote to be on the server had 3 people.");
- tmp = strtok(params,Index), tmp2 = strtok(params,Index),id = strval(tmp);
- if(IsPlayerAdmin(id)) return SendClientMessage(playerid,0xFF0000FF,"Bad, very bad!");
- if(VoteActive == 1) return SendClientMessage(playerid,0xFF0000FF,"One vote is already in progress");
- IDofotherplayer = id;
- GetPlayerName(playerid,n,24),GetPlayerName(id,on,24);
- Voted[playerid] = 1;
- KickName = on;
- PlayerName = n;
- if(!strlen(params)) return SendClientMessage(playerid,GREY,"Use: /votekick <ID> <Reason>");
- if(!IsPlayerConnected(id))return SendClientMessage(playerid,GREY,"Invalid ID.");
- Votes = 1;
- VoteActive = 1;
- format(str2,sizeof(str2),"~r~Votekick on ~w~%s. ~r~%d/%d",PlayerName,Votes,VPlayers);
- VoteKick = TextDrawCreate(50.0,300.0,str2);
- TextDrawLetterSize(VoteKick,0.5,2.5);
- TextDrawShowForAll(VoteKick);
- thingy = SetTimer("VoteFail",21000,false);
- Timer = SetTimerEx("CountDownTimer",1000,true,"i",playerid);
- format(str,sizeof(str),"%s start votekick %s. Reason: %s",n,on,params[2]);
- SendClientMessageToAll(0xFF0000FF,str);
- format(string,sizeof(string),"%d",Count);
- TCountDown = TextDrawCreate(300.0,300.0,string);
- Count = 21;
- return 1;
- }
- dcmd_vote(playerid,params[])
- {
- #pragma unused params
- new str[128],name[24],str2[128];
- GetPlayerName(playerid,name,24);
- if(VoteActive == 0) return SendClientMessage(playerid,GREY,"None activ votekicks.");
- if(Voted[playerid] == 1) return SendClientMessage(playerid,LIGHTBLUE,"You already voted!");
- KillTimer(thingy);
- thingy = SetTimer("VoteFail",21000,false);
- Votes++;
- Voted[playerid] = 1;
- format(str,sizeof(str),"%s voted agree. %d/%d",name,Votes,VPlayers);
- SendClientMessageToAll(0xFF0000FF,str);
- TextDrawDestroy(VoteKick);
- format(str2,sizeof(str),"~r~Votekick on ~w~%s. ~r~%d/%d",KickName,Votes,VPlayers);
- TextDrawCreate(50.0,300,str2);
- TextDrawLetterSize(VoteKick,0.5,2.5);
- TextDrawShowForAll(VoteKick);
- KillTimer(Timer);
- Timer = SetTimer("CountDownTimer",1000,true);
- Count = 21;
- if(Votes == VPlayers)
- {
- format(str,sizeof(str),"%s kicked. %d/%d votes.",KickName,Votes,Votes);
- SendClientMessageToAll(0xFF0000FF,str);
- TextDrawDestroy(VoteKick);
- KillTimer(thingy);
- VoteActive = 0;
- Kick(IDofotherplayer);
- return 1;
- }
- return 0;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == quake[0])
- {
- SetPlayerVelocity(playerid,0,-0.04,3.0);//RLeft
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/jump.mp3");
- return 1;
- }
- if(pickupid == quake[1])
- {
- SetPlayerVelocity(playerid,0,-0.04,3.0);//RRight
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/jump.mp3");
- return 1;
- }
- if(pickupid == quake[2])
- {
- SetPlayerVelocity(playerid,0,-0.04,3.0);//RCenter
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/jump.mp3");
- return 1;
- }
- if(pickupid == quake[3])
- {
- SetPlayerVelocity(playerid,0,0.04,3.0);//BLeft
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/jump.mp3");
- return 1;
- }
- if(pickupid == quake[4])
- {
- SetPlayerVelocity(playerid,0,0.04,3.0);//BRight
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/jump.mp3");
- return 1;
- }
- if(pickupid == quake[5])
- {
- SetPlayerVelocity(playerid,0,0.04,3.0);//BCenter
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/jump.mp3");
- return 1;
- }
- if(pickupid == quake[6])
- {
- SetPlayerVelocity(playerid ,0 ,-0.5 ,3.0);//SRJ
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/jump.mp3");
- return 1;
- }
- if(pickupid == quake[7])
- {
- SetPlayerVelocity(playerid ,0.14,-0.4,2.66);//SRT
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/jump.mp3");
- return 1;
- }
- if(pickupid == quake[8])
- {
- SetPlayerPos(playerid, -1348.2943, -2408.1238, 3274.5251);//SJPR
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/tele.mp3");
- return 1;
- }
- if(pickupid == quake[9])
- {
- SetPlayerVelocity(playerid ,0 ,0.5 ,3.0);//SBJ
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/jump.mp3");
- return 1;
- }
- if(pickupid == quake[10])
- {
- SetPlayerVelocity(playerid ,-0.14,0.4,2.66);//SBT
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/jump.mp3");
- return 1;
- }
- if(pickupid == quake[11])
- {
- SetPlayerPos(playerid, -1348.2943, -2408.1238, 3274.5251);//SJPB
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/tele.mp3");
- return 1;
- }
- if(pickupid == quake[12])
- {
- SetPlayerPos(playerid, -1347.4139, -2375.4727, 3276.5078);//BSSP
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/tele.mp3");
- return 1;
- }
- if(pickupid == quake[13])
- {
- SetPlayerPos(playerid, -1344.7178, -2380.4395, 3262.4399);//BSCP
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/tele.mp3");
- return 1;
- }
- if(pickupid == quake[14])
- {
- SetPlayerPos(playerid, -1347.5242, -2442.8899, 3276.6033);//RSSP
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/tele.mp3");
- return 1;
- }
- if(pickupid == quake[15])
- {
- SetPlayerPos(playerid, -1346.0688, -2435.1807, 3262.4399);//RSCP
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/tele.mp3");
- return 1;
- }
- if(ammo[0]<=pickupid<=ammo[7])
- {
- SetPlayerAmmo(playerid,25,20);
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/ammo.mp3");
- return 1;
- }
- if (pickupid == megahp)
- {
- SetPlayerHealth(playerid, 300);
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/megahealth_quake3.mp3");
- return 1;
- }
- if (pickupid == bfg12)
- {
- GivePlayerWeapon(playerid, 36, 20);
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/upped.mp3");
- return 1;
- }
- if(hp1[0]<=pickupid<=hp1[5])
- {
- SetPlayerHealth(playerid,100);
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/health_quake3.mp3");
- return 1;
- }
- if(snipe[0]<=pickupid<=snipe[1])
- {
- GivePlayerWeapon(playerid, 34, 40);
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/upped.mp3");
- return 1;
- }
- if(rocketla[0]<=pickupid<=rocketla[2])
- {
- GivePlayerWeapon(playerid, 35, 20);
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/upped.mp3");
- return 1;
- }
- if(shot[0]<=pickupid<=shot[1])
- {
- GivePlayerWeapon(playerid, 25, 50);
- PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/upped.mp3");
- return 1;
- }
- if(pickupid == rflag)
- {
- if(gTeam[playerid]==1)
- {
- SetPlayerAttachedObject( playerid, 0, 19124, 15, 0.014013, 0.077415, -0.424313, 354.422760, 358.421966, 92.942932, 1.000000, 1.000000, 1.000000 );
- SendClientMessage(playerid,0x0000FFAA,"You have to flag");
- SendClientMessage(playerid,0x0000FFAA,"Carry them faster to their base");
- PlayAudioStreamForAll("http://nmmusic.3dn.ru/team.mp3");
- bflagup = CreatePickup(19122, 1, -1347.5222, -2442.9741, 3264.3279, -1);
- for (new i = 0x0, m = GetMaxPlayers(); i != m; i++)
- if (IsPlayerConnected(i) && gTeam[i] != gTeam[playerid])
- PlayAudioStreamForPlayer(i,"http://nmmusic.3dn.ru/enemy.mp3");
- return 1;
- }
- }
- if(pickupid == bflag)
- {
- if(gTeam[playerid]==0)
- {
- SetPlayerAttachedObject( playerid, 0, 19122, 15, 0.014013, 0.077415, -0.424313, 354.422760, 358.421966, 92.942932, 1.000000, 1.000000, 1.000000 );
- SendClientMessage(playerid,0xFF0000AA,"You have to flag");
- SendClientMessage(playerid,0xFF0000AA,"Carry them faster to their base");
- PlayAudioStreamForAll("http://nmmusic.3dn.ru/team.mp3");
- rflagup = CreatePickup(19124, 1, -1347.7892, -2372.6304, 3264.3279, -1);
- for (new i = 0x0, m = GetMaxPlayers(); i != m; i++)
- if (IsPlayerConnected(i) && gTeam[i] != gTeam[playerid])
- PlayAudioStreamForPlayer(i,"http://nmmusic.3dn.ru/enemy.mp3");
- return 1;
- }
- }
- if(pickupid == bflagup)
- {
- RemovePlayerAttachedObject(playerid,0);
- SendClientMessageToAll(0x0000FFAA,"Blue leads");
- PlayAudioStreamForAll("http://nmmusic.3dn.ru/lblue.mp3");
- ScoreOnFlag[1]+=1;
- DestroyPickup(bflagup);
- ScoreOnFlag[0]+=1;
- new blue[256];
- format(blue, sizeof(blue), "%d", ScoreOnFlag[0]);
- TextDrawSetString(Textdraw4,blue);
- if(ScoreOnFlag[1] == 5)
- if(gTeam[playerid] == 0 || gTeam[playerid]==1)
- {
- TextDrawHideForPlayer(playerid, Text:Textdraw0);
- TextDrawHideForPlayer(playerid, Text:Textdraw1);
- TextDrawHideForPlayer(playerid, Text:Textdraw2);
- TextDrawHideForPlayer(playerid, Text:Textdraw3);
- TextDrawHideForPlayer(playerid, Text:Textdraw4);
- SpawnPlayer(playerid);
- ipiq=0;
- ScoreOnFlag[0]=0;
- ScoreOnFlag[1]=0;
- }
- return 1;
- }
- if(pickupid == rflagup)
- {
- RemovePlayerAttachedObject(playerid,0);
- SendClientMessageToAll(0xFF0000AA,"Red leads");
- PlayAudioStreamForAll("http://nmmusic.3dn.ru/lred.mp3");
- ScoreOnFlag[0]+=1;
- DestroyPickup(rflagup);
- ScoreOnFlag[1]+=1;
- new red[256];
- format(red, sizeof(red), "%d", ScoreOnFlag[1]);
- TextDrawSetString(Textdraw3,red);
- if(ScoreOnFlag[0] == 5)
- {
- if(gTeam[playerid] == 0 || gTeam[playerid]==1)
- {
- TextDrawHideForPlayer(playerid, Text:Textdraw0);
- TextDrawHideForPlayer(playerid, Text:Textdraw1);
- TextDrawHideForPlayer(playerid, Text:Textdraw2);
- TextDrawHideForPlayer(playerid, Text:Textdraw3);
- TextDrawHideForPlayer(playerid, Text:Textdraw4);
- SpawnPlayer(playerid);
- ipiq=0;
- ScoreOnFlag[0]=0;
- ScoreOnFlag[1]=0;
- }
- return 1;
- }
- return 1;
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 510)
- {
- if(listitem == 0)
- {
- if(ScoreOnFlag[0] == 1||2||3||4||5)
- {
- SendClientMessage(playerid,0x00FF00AA,"Too many flags in game");
- }
- if(ScoreOnFlag[1] == 1||2||3||4||5)
- {
- SendClientMessage(playerid,0x00FF00AA,"Too many flags in game");
- }
- if(ScoreOnFlag[0] == 0 || ScoreOnFlag[1] == 0)
- {
- SetPlayerPos(playerid, -1347.6212, -2369.3120, 3266.3513);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 9, 1);
- GivePlayerWeapon(playerid, 29, 50);
- new PN[500]; // Äëÿ àäìèíêè
- GetPlayerName(playerid,PN,sizeof(PN)); // Óçíàåì íèê èãðîêà
- new strboy[256];
- format(strboy, sizeof(strboy), "[Quake] %s has joined to ''Quake'' for the red team", PN);
- SendClientMessageToAll(0xFF5C5CFF, strboy);
- SendClientMessage(playerid, 0xFF5C5CFF, "Welcome to Quake 3");
- SendClientMessage(playerid, 0xFF5C5CFF, "You select a red team");
- SendClientMessage(playerid, 0xFF5C5CFF, "Your objective is Capture blue flag");
- SendClientMessage(playerid, 0xFF5C5CFF, "Leave - /exg");
- ipiq=1;
- gTeam[playerid] = 0;
- SetPlayerColor(playerid, 0xFF0000AA);
- SetPlayerTime(playerid,0,30);
- new blue[256];
- format(blue, sizeof(blue), "%d", ScoreOnFlag[0]);
- TextDrawSetString(Textdraw4,blue);
- new red[256];
- format(red, sizeof(red), "%d", ScoreOnFlag[1]);
- TextDrawSetString(Textdraw3,blue);
- TextDrawShowForPlayer(playerid, Text:Textdraw0);
- TextDrawShowForPlayer(playerid, Text:Textdraw1);
- TextDrawShowForPlayer(playerid, Text:Textdraw2);
- TextDrawShowForPlayer(playerid, Text:Textdraw3);
- TextDrawShowForPlayer(playerid, Text:Textdraw4);
- }
- }
- if(listitem == 1)
- {
- if(ScoreOnFlag[0] == 1||2||3||4)
- {
- SendClientMessage(playerid,0x00FF00AA,"Too many flags in game");
- }
- if(ScoreOnFlag[1] == 1||2||3||4)
- {
- SendClientMessage(playerid,0x00FF00AA,"Too many flags in game");
- }
- if(ScoreOnFlag[0] == 0 || ScoreOnFlag[1] == 0)
- {
- SetPlayerPos(playerid, -1348.1167, -2445.4324, 3266.3513);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 9, 1);
- GivePlayerWeapon(playerid, 29, 50);
- new PN[500]; // Äëÿ àäìèíêè
- GetPlayerName(playerid,PN,sizeof(PN)); // Óçíàåì íèê èãðîêà
- new strboy[256];
- format(strboy, sizeof(strboy), "[Quake] %s has joined to ''Quake'' for the red team", PN);
- SendClientMessageToAll(0x5CA3FFFF, strboy);
- SendClientMessage(playerid, 0x5CA3FFFF, "Welcome to Quake 3");
- SendClientMessage(playerid, 0x5CA3FFFF, "You select a red team");
- SendClientMessage(playerid, 0x5CA3FFFF, "Your objective is Capture red flag");
- SendClientMessage(playerid, 0x5CA3FFFF, "Leave - /exg");
- gTeam[playerid] = 1;
- SetPlayerColor(playerid, 0x0000FFAA);
- SetPlayerTime(playerid,0,30);
- new blue[256];
- format(blue, sizeof(blue), "%d", ScoreOnFlag[0]);
- TextDrawSetString(Textdraw4,blue);
- new red[256];
- format(red, sizeof(red), "%d", ScoreOnFlag[1]);
- TextDrawSetString(Textdraw3,red);
- ipiq=1;
- TextDrawShowForPlayer(playerid, Text:Textdraw0);
- TextDrawShowForPlayer(playerid, Text:Textdraw1);
- TextDrawShowForPlayer(playerid, Text:Textdraw2);
- TextDrawShowForPlayer(playerid, Text:Textdraw3);
- TextDrawShowForPlayer(playerid, Text:Textdraw4);
- }
- }
- }
- if(dialogid == 512)
- {
- if(listitem == 0)
- {
- SendClientMessage(playerid, 0xA3FF5CFF, "Use /q, if you do not want to hang around here forever");
- Kick(playerid);
- }
- if(listitem == 1)
- {
- return 1;
- }
- }
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if ((newkeys == 8192))
- {
- OnPlayerCommandText(playerid,"/quakemenu");
- }
- return 1;
- }
- public quakemove1()
- {
- MoveObject(quakemove, -1356.4526, -2407.6763, 3268.3848, 3);
- SetTimer("quakemove2", 5000, false);
- }
- public quakemove2()
- {
- MoveObject(quakemove,-1340.4470, -2407.6763, 3268.3848, 3);
- SetTimer("quakemove1", 5000, false);
- }
- stock PlayAudioStreamForAll(url[], Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0, usepos = 0)
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- PlayAudioStreamForPlayer(i, url, posX, posY, posZ, distance, usepos);
- }
- }
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- if(playertextid == Textdraw6[playerid])
- {
- SendClientMessage(playerid, 0xCCAAFFFF, "Use /quake");
- PlayerTextDrawHide(playerid, PlayerText:Textdraw5[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw6[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw7[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw8[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw9[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw10[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw11[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw12[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw13[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw14[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw15[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw16[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw17[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw18[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw19[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw20[playerid]);
- CancelSelectTextDraw(playerid);
- }
- if(playertextid == Textdraw7[playerid])
- {
- PlayerTextDrawShow(playerid, PlayerText:Textdraw18[playerid]);
- PlayerTextDrawShow(playerid, PlayerText:Textdraw19[playerid]);
- PlayerTextDrawShow(playerid, PlayerText:Textdraw20[playerid]);
- }
- if(playertextid == Textdraw8[playerid])
- {
- OnPlayerCommandText(playerid,"/votekick");
- PlayerTextDrawHide(playerid, PlayerText:Textdraw5[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw6[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw7[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw8[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw9[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw10[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw11[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw12[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw13[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw14[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw15[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw16[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw17[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw18[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw19[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw20[playerid]);
- CancelSelectTextDraw(playerid);
- }
- if(playertextid == Textdraw9[playerid])
- {
- OnPlayerCommandText(playerid,"/exg");
- new ppl[500]; // Äëÿ àäìèíêè
- GetPlayerName(playerid,ppl,sizeof(ppl)); // Óçíàåì íèê èãðîêà
- new strext[256];
- format(strext, sizeof(strext), "[Quake] %s âûøåë èç èãðû Quake", ppl);
- SendClientMessageToAll(0xFF5CA3FF, strext);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw5[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw6[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw7[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw8[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw9[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw10[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw11[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw12[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw13[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw14[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw15[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw16[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw17[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw18[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw19[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw20[playerid]);
- CancelSelectTextDraw(playerid);
- }
- if(playertextid == Textdraw10[playerid])
- {
- ShowPlayerDialog(playerid, 512, DSL, "Do you really want to quit?", "{ff0000}Yes\n{3636ff}No", "Okay", "");
- }
- if(playertextid == Textdraw19[playerid])
- {
- SetPlayerPos(playerid, -1347.6212, -2369.3120, 3266.3513);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 9, 1);
- GivePlayerWeapon(playerid, 29, 50);
- new PN[500]; // Äëÿ àäìèíêè
- GetPlayerName(playerid,PN,sizeof(PN)); // Óçíàåì íèê èãðîêà
- new strboy[256];
- format(strboy, sizeof(strboy), "[Quake] %s has joined to ''Quake'' for the red team", PN);
- SendClientMessageToAll(0x5CA3FFFF, strboy);
- SendClientMessage(playerid, 0x5CA3FFFF, "Welcome to Quake 3");
- SendClientMessage(playerid, 0x5CA3FFFF, "You select a red team");
- SendClientMessage(playerid, 0x5CA3FFFF, "Your objective is Capture red flag");
- SendClientMessage(playerid, 0x5CA3FFFF, "Leave - /exg");
- ipiq=1;
- gTeam[playerid] = 0;
- SetPlayerColor(playerid, 0xFF0000AA);
- SetPlayerTime(playerid,0,30);
- new blue[256];
- format(blue, sizeof(blue), "%d", ScoreOnFlag[0]);
- TextDrawSetString(Textdraw4,blue);
- new red[256];
- format(red, sizeof(red), "%d", ScoreOnFlag[1]);
- TextDrawSetString(Textdraw3,blue);
- TextDrawShowForPlayer(playerid, Text:Textdraw0);
- TextDrawShowForPlayer(playerid, Text:Textdraw1);
- TextDrawShowForPlayer(playerid, Text:Textdraw2);
- TextDrawShowForPlayer(playerid, Text:Textdraw3);
- TextDrawShowForPlayer(playerid, Text:Textdraw4);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw5[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw6[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw7[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw8[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw9[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw10[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw11[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw12[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw13[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw14[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw15[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw16[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw17[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw18[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw19[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw20[playerid]);
- CancelSelectTextDraw(playerid);
- }
- if(playertextid == Textdraw20[playerid])
- {
- SetPlayerPos(playerid, -1348.1167, -2445.4324, 3266.3513);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 9, 1);
- GivePlayerWeapon(playerid, 29, 50);
- new PN[500]; // Äëÿ àäìèíêè
- GetPlayerName(playerid,PN,sizeof(PN)); // Óçíàåì íèê èãðîêà
- new strboy[256];
- format(strboy, sizeof(strboy), "[Quake] %s has joined to ''Quake'' for the red team", PN);
- SendClientMessageToAll(0xFF5C5CFF, strboy);
- SendClientMessage(playerid, 0xFF5C5CFF, "Welcome to Quake 3");
- SendClientMessage(playerid, 0xFF5C5CFF, "You select a red team");
- SendClientMessage(playerid, 0xFF5C5CFF, "Your objective is Capture blue flag");
- SendClientMessage(playerid, 0xFF5C5CFF, "Leave - /exg");
- gTeam[playerid] = 1;
- SetPlayerColor(playerid, 0x0000FFAA);
- SetPlayerTime(playerid,0,30);
- new blue[256];
- format(blue, sizeof(blue), "%d", ScoreOnFlag[0]);
- TextDrawSetString(Textdraw4,blue);
- new red[256];
- format(red, sizeof(red), "%d", ScoreOnFlag[1]);
- TextDrawSetString(Textdraw3,red);
- ipiq=1;
- TextDrawShowForPlayer(playerid, Text:Textdraw0);
- TextDrawShowForPlayer(playerid, Text:Textdraw1);
- TextDrawShowForPlayer(playerid, Text:Textdraw2);
- TextDrawShowForPlayer(playerid, Text:Textdraw3);
- TextDrawShowForPlayer(playerid, Text:Textdraw4);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw5[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw6[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw7[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw8[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw9[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw10[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw11[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw12[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw13[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw14[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw15[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw16[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw17[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw18[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw19[playerid]);
- PlayerTextDrawHide(playerid, PlayerText:Textdraw20[playerid]);
- CancelSelectTextDraw(playerid);
- }
- return 1;
- }
- public CountDownTimer(playerid)
- {
- new string[3];
- Count--;
- TextDrawDestroy(TCountDown);
- format(string,sizeof(string),"%d",Count);
- TCountDown = TextDrawCreate(300.0,300.0,string);
- TextDrawTextSize(TCountDown,0.7,3.0);
- TextDrawShowForAll(TCountDown);
- if(Count == 0)
- {
- KillTimer(Timer);
- KillTimer(thingy);
- TextDrawDestroy(TCountDown);
- TextDrawDestroy(VoteKick);
- Voted[playerid] = 0;
- }
- return 1;
- }
- forward VoteFail(playerid);
- public VoteFail(playerid)
- {
- Votes = 0;
- VoteActive = 0;
- Voted[playerid] = 0;
- SendClientMessageToAll(LIGHTBLUE,"None votes.");
- TextDrawDestroy(VoteKick);
- return 1;
- }
- GetPlayersOnServer()
- {
- new count;
- for(new x=0; x< MAX_PLAYERS; x++)
- {
- if(IsPlayerConnected(x))
- {
- count++;
- }
- }
- return count;
- }
- strtok(const string[], &index)
- {
- new length = strlen(string);
- while ((index < length) && (string[index] <= ' '))
- {
- index++;
- }
- new offset = index;
- new result[20];
- while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
- {
- result[index - offset] = string[index];
- index++;
- }
- result[index - offset] = EOS;
- return result;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement