Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Call of Duty
- * © by Michal 'Exitus' Bělčík & Dominik 'MARV' Lisy
- * Spolupracoval som s nim na mode, no sa to vymklo z ruk, a skončila naša
- * spolupráca.
- * Prosím, neprepisovať autora.
- *******************************************************************************
- * Mod obsahuje rôzne scripty ktoré sa našli aj pomocov Google.
- * Taktiež obsahuje admin script by StaKeR, ktorý som prerobil.
- * Ak by ste mali nejaké otázky ohladom módu, stačí napísať.
- * Niesom kopirak, ak su nejaké veci tvoje a nahodov som nezverejnil tvoje meno,
- * tak sa ti hlboko ospravedlnujem, pretože je tu strašne vela veci, ako napr.
- * rank script, admin script, weapon shop atd.
- * + Mod obsahuje QCMD Includ by QWER, ktorého obdivujem :)
- * Chcel som sem pridať QDIALOG, ale už ten mod nebudem prerabať a preto som
- * ho zverejnil
- * To je z mojej strany všetko. Ak by ste mali zaujem o kupu tohoto modu,
- * saomozrejme u zvplne inim nastavenim a inim systemom a verziov, stačí
- * ma kontaktovať.
- * Pastebin: http://pastebin.com/u/DominikMarvLisy
- * Skype: marv.samp
- * Gmail: marv.samp@gmail.com
- */
- #include <a_samp>
- #include <dini>
- #include <dudb>
- #include <dutils>
- #include <foreach>
- #define INFINITY "-2147483648"
- #define isnull() (!strcmp(params,"-2147483648"))
- #include "Command.pwn"
- #pragma unused ret_memcpy
- //=FORWARDS=====================================================================
- forward hostname(playerid);
- forward Reklama();
- //=DEFINE=======================================================================
- #define Style 1
- #define TEAM_GERMANY 0
- #define TEAM_IRAQ 1
- #define TEAM_RUSSIA 2
- #define TEAM_USA 3
- #define TEAM_BANGLADESH 4
- #define SVETLE1_MODRA 0x0099C8FF
- #define CERVENA 0xFF0000FF
- #define TMAVE_MODRA 0x2312B8FF
- #define TEAM_GERMANY_COLOR 0x80FF8096
- #define TEAM_IRAQ_COLOR 0x9400D3AA
- #define TEAM_RUSSIA_COLOR 0xFF0000AA
- #define TEAM_USA_COLOR 0x0015FFAA
- #define TEAM_BANGLADESH_COLOR 0x00FFFFAA
- #define ORANGE 0xFF6600
- #define GREEN 0x15FF00AA
- #define RED 0xFF0000AA
- #define ROYALBLUE 0x4169E1FF
- #define BLUE 0x0015FFAA
- #define MAIN (101)
- #define WEAPONS (102)
- #define ELSE (103)
- #define SCM SendClientMessage
- #define SCMTA SendClientMessageToAll
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_SYSTEM 0xAFAFAFAA
- #define COLOR_BLACK 0x000000AA
- #define COLOR_BROWN 0xA52A2AAA
- #define COLOR_ADMIN 0x2587CEFF
- #define COLOR_YELLOW 0xB8860BAA
- #define COLOR_BLUE 0x00FFFF
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_PINK 0xFFC0CBAA
- #define COLOR_RED 0xE10000AA
- #define BARVA_OLIVOVA 0x9ACD32AA
- #define BARVA_FIALOVA 0x800080AA
- #define COLOR_ORANGE 0xFF9900AA
- #define BARVA_SVETLEMODRA 0x33CCFFAA
- #define BARVA_TMAVEZELENA 0x008000FF
- #define BARVA_SVETLEZELENA 0x7FFF00AA
- #undef MAX_PLAYERS
- #define MAX_PLAYERS 100
- //=NEW==========================================================================
- new logged[MAX_PLAYERS];
- new gTeam[MAX_PLAYERS];
- new GZ_ZONE1;
- new GZ_ZONE2;
- new GZ_ZONE3;
- new GZ_ZONE4;
- new GZ_ZONE5;
- new weaponshop1;
- new weaponshop2;
- new weaponshop3;
- new weaponshop4;
- new weaponshop5;
- new Text:Web;
- new Text:CODTU;
- new Text:Textdraw0;
- new Text:Textdraw1;
- new Text:Textdraw2;
- new Text:Textdraw3;
- new Text:Textdraw4;
- new Text:Textdraw5;
- new Text:Textdraw6;
- main( ) { }
- new PlayerText:Rang[MAX_PLAYERS][3];
- //=STOCK========================================================================
- stock PlayerName(playerid)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- return name;
- }
- new Alvl[MAX_PLAYERS];
- new varovani[MAX_PLAYERS];
- forward muted(playerid);
- forward Restart();
- forward Off();
- forward odmrazit(playerid);
- forward acheat(playerid);
- stock Admins(playerid)
- {
- new string[25];
- if(IsPlayerAdmin(playerid))
- {
- format(string,sizeof(string),"RCON Admin");
- }
- else if(Alvl[playerid] == 1)
- {
- format(string,sizeof(string),"Helper");
- }
- else if(Alvl[playerid] == 2)
- {
- format(string,sizeof(string),"Moderátor");
- }
- else if(Alvl[playerid] == 3)
- {
- format(string,sizeof(string),"Administrátor");
- }
- else if(Alvl[playerid] >= 4)
- {
- format(string,sizeof(string),"Hlavní Administrátor");
- }
- return string;
- }
- stock Warp(playerid,Float:x,Float:y,Float:z)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new brmbrm = GetPlayerVehicleID(playerid);
- SetVehiclePos(brmbrm,x,y,z);
- }
- else
- {
- SetPlayerPos(playerid,x,y,z);
- }
- return true;
- }
- stock ZakazanaZbran(playerid)
- {
- new zbran = GetPlayerWeapon(playerid);
- if(zbran == 15) return true; // páčidlo
- else if(zbran == 16) return true; // granát
- else if(zbran == 17) return true; // slzný plyn
- else if(zbran == 18) return true; // Molotov Coctail
- else if(zbran == 22) return true; // 9mm (pistol)
- else if(zbran == 23) return true; // 9mm s tlumičem
- else if(zbran == 24) return true; // Desert Eagle (magnum)
- else if(zbran == 25) return true; // Brokovnice
- else if(zbran == 26) return true; // Upilovaná brokovnice
- else if(zbran == 27) return true; // Combat Shotgun (zase nějaká brokovnice)
- else if(zbran == 28) return true; // Miscro SMG (mini kulometík :-D)
- else if(zbran == 29) return true; // MP5
- else if(zbran == 30) return true; // AK47
- else if(zbran == 31) return true; // M4
- else if(zbran == 32) return true; // Tec9
- else if(zbran == 33) return true; // Country Rifle
- else if(zbran == 34) return true; // Sniper Rifle (odstrelovacka)
- else if(zbran == 35) return true; // Raketomet
- else if(zbran == 36) return true; // Tepelný raketomet
- else if(zbran == 37) return true; // Plamenomet
- else if(zbran == 38) return true; // minigun
- else if(zbran == 39) return true; // Bomba
- else if(zbran == 40) return true; // Detonátor bomby
- else if(zbran == 41) return true; // Sprej
- else if(zbran == 42) return true; // Hasičák
- else if(zbran == 43) return true; // Kamera (Foťák)
- return false;
- }
- stock sscanf(string[], format[], {Float,_}:...)
- {
- if (string[0] == 0 || (string[0] == 1 && string[1] == 0))
- {
- return format[0];
- }
- #pragma tabsize 4
- new
- formatPos = 0,
- stringPos = 0,
- paramPos = 2,
- paramCount = numargs(),
- delim = ' ';
- while (string[stringPos] && string[stringPos] <= ' ')
- {
- stringPos++;
- }
- while (paramPos < paramCount && string[stringPos])
- {
- switch (format[formatPos++])
- {
- case '\0':
- {
- return 0;
- }
- case 'i', 'd':
- {
- new
- neg = 1,
- num = 0,
- ch = string[stringPos];
- if (ch == '-')
- {
- neg = -1;
- ch = string[++stringPos];
- }
- do
- {
- stringPos++;
- if ('0' <= ch <= '9')
- {
- num = (num * 10) + (ch - '0');
- }
- else
- {
- return -1;
- }
- }
- while ((ch = string[stringPos]) > ' ' && ch != delim);
- setarg(paramPos, 0, num * neg);
- }
- case 'h', 'x':
- {
- new
- num = 0,
- ch = string[stringPos];
- do
- {
- stringPos++;
- switch (ch)
- {
- case 'x', 'X':
- {
- num = 0;
- continue;
- }
- case '0' .. '9':
- {
- num = (num << 4) | (ch - '0');
- }
- case 'a' .. 'f':
- {
- num = (num << 4) | (ch - ('a' - 10));
- }
- case 'A' .. 'F':
- {
- num = (num << 4) | (ch - ('A' - 10));
- }
- default:
- {
- return -1;
- }
- }
- }
- while ((ch = string[stringPos]) > ' ' && ch != delim);
- setarg(paramPos, 0, num);
- }
- case 'c':
- {
- setarg(paramPos, 0, string[stringPos++]);
- }
- case 'f':
- {
- new changestr[16], changepos = 0, strpos = stringPos;
- while(changepos < 16 && string[strpos] && string[strpos] != delim)
- {
- changestr[changepos++] = string[strpos++];
- }
- changestr[changepos] = '\0';
- setarg(paramPos,0,_:floatstr(changestr));
- }
- case 'p':
- {
- delim = format[formatPos++];
- continue;
- }
- case '\'':
- {
- new
- end = formatPos - 1,
- ch;
- while ((ch = format[++end]) && ch != '\'') {}
- if (!ch)
- {
- return -1;
- }
- format[end] = '\0';
- if ((ch = strfind(string, format[formatPos], false, stringPos)) == -1)
- {
- if (format[end + 1])
- {
- return -1;
- }
- return 0;
- }
- format[end] = '\'';
- stringPos = ch + (end - formatPos);
- formatPos = end + 1;
- }
- case 'u':
- {
- new
- end = stringPos - 1,
- id = 0,
- bool:num = true,
- ch;
- while ((ch = string[++end]) && ch != delim)
- {
- if (num)
- {
- if ('0' <= ch <= '9')
- {
- id = (id * 10) + (ch - '0');
- }
- else
- {
- num = false;
- }
- }
- }
- if (num && IsPlayerConnected(id))
- {
- setarg(paramPos, 0, id);
- }
- else
- {
- #if !defined foreach
- #define foreach(%1,%2) for (new %2 = 0; %2 < MAX_PLAYERS; %2++) if (IsPlayerConnected(%2))
- #define __SSCANF_FOREACH__
- #endif
- string[end] = '\0';
- num = false;
- new
- name[MAX_PLAYER_NAME];
- id = end - stringPos;
- foreach (Player, playerid)
- {
- GetPlayerName(playerid, name, sizeof (name));
- if (!strcmp(name, string[stringPos], true, id))
- {
- setarg(paramPos, 0, playerid);
- num = true;
- break;
- }
- }
- if (!num)
- {
- setarg(paramPos, 0, INVALID_PLAYER_ID);
- }
- string[end] = ch;
- #if defined __SSCANF_FOREACH__
- #undef foreach
- #undef __SSCANF_FOREACH__
- #endif
- }
- stringPos = end;
- }
- case 's', 'z':
- {
- new
- i = 0,
- ch;
- if (format[formatPos])
- {
- while ((ch = string[stringPos++]) && ch != delim)
- {
- setarg(paramPos, i++, ch);
- }
- if (!i)
- {
- return -1;
- }
- }
- else
- {
- while ((ch = string[stringPos++]))
- {
- setarg(paramPos, i++, ch);
- }
- }
- stringPos--;
- setarg(paramPos, i, '\0');
- }
- default:
- {
- continue;
- }
- }
- while (string[stringPos] && string[stringPos] != delim && string[stringPos] > ' ')
- {
- stringPos++;
- }
- while (string[stringPos] && (string[stringPos] == delim || string[stringPos] <= ' '))
- {
- stringPos++;
- }
- paramPos++;
- }
- do
- {
- if ((delim = format[formatPos++]) > ' ')
- {
- if (delim == '\'')
- {
- while ((delim = format[formatPos++]) && delim != '\'') {}
- }
- else if (delim != 'z')
- {
- return delim;
- }
- }
- }
- while (delim > ' ');
- return 0;
- }
- stock IsNumeric(const string[])
- {
- new length=strlen(string);
- if (length==0) return false;
- for (new i = 0; i < length; i++)
- {
- if ((string[i] > '9' || string[i] < '0' && string[i]!='-' && string[i]!='+')|| (string[i]=='-' && i!=0)|| (string[i]=='+' && i!=0)) return false;
- }
- if (length==1 && (string[0]=='-' || string[0]=='+')) return false;
- return true;
- }
- //=START========================================================================
- public OnGameModeInit()
- {
- //=OBJEKTY======================================================================
- CreateObject(12805, 450.12, 2492.50, 29.37, 0.00, 0.00, 93.00);
- CreateObject(11556, 463.46, 2436.15, 15.54, 0.00, 0.00, 0.00);
- CreateObject(8210, 443.87, 2555.44, 18.44, 0.00, 0.00, 0.00);
- CreateObject(8210, 388.57, 2555.32, 18.53, 0.00, 0.00, 0.00);
- CreateObject(8210, 333.17, 2555.41, 18.47, 0.00, 0.00, 0.00);
- CreateObject(8210, 277.84, 2555.58, 18.55, 0.00, 0.00, 0.00);
- CreateObject(8210, 250.53, 2527.54, 18.58, 0.00, 0.00, -90.00);
- CreateObject(3749, 251.69, 2492.31, 21.03, 0.00, 0.00, -90.00);
- CreateObject(8210, 251.34, 2458.26, 18.47, 0.00, 0.00, -90.00);
- CreateObject(3749, 260.63, 2432.48, 21.26, 0.00, 0.00, 0.00);
- CreateObject(3749, 279.72, 2432.43, 21.26, 0.00, 0.00, 0.00);
- CreateObject(8210, 314.35, 2434.42, 18.47, 0.00, 0.00, 0.00);
- CreateObject(8210, 350.86, 2433.92, 18.36, 0.00, 0.00, 0.00);
- CreateObject(14407, 378.00, 2460.87, 16.55, 0.00, 0.00, 0.00);
- CreateObject(14407, 377.99, 2454.21, 21.02, 0.00, 0.00, 0.00);
- CreateObject(3425, 370.45, 2459.58, 26.34, 0.00, 0.00, 0.00);
- CreateObject(3279, 455.12, 2542.68, 17.32, 0.00, 0.00, 0.00);
- CreateObject(3279, 308.21, 2546.39, 15.75, 0.00, 0.00, 0.00);
- CreateObject(3279, 304.19, 2445.32, 15.45, 0.00, 0.00, 0.00);
- CreateObject(5461, 326.07, 2474.99, 19.69, 0.00, 0.00, 0.00);
- CreateObject(8210, -154.53, 2671.51, 64.10, 0.00, 0.00, 90.00);
- CreateObject(8210, -154.36, 2725.08, 64.17, 0.00, 0.00, 90.00);
- CreateObject(8210, -154.34, 2780.14, 64.06, 0.00, 0.00, 90.00);
- CreateObject(3749, -152.17, 2635.84, 68.36, 0.00, 0.00, 90.00);
- CreateObject(8210, -173.92, 2609.87, 61.67, 0.00, 0.00, 40.00);
- CreateObject(8210, -222.50, 2592.13, 63.66, 0.00, 0.00, 0.00);
- CreateObject(8210, -332.90, 2734.03, 65.49, 0.00, 0.00, 90.00);
- CreateObject(8210, -333.27, 2679.84, 65.51, 0.00, 0.00, 90.00);
- CreateObject(987, -333.86, 2648.56, 62.82, 0.00, 0.00, 84.00);
- CreateObject(3749, -337.21, 2639.41, 68.64, 0.00, 0.00, 81.00);
- CreateObject(8210, -317.49, 2614.30, 66.19, 0.00, 0.00, -36.00);
- CreateObject(987, -295.27, 2597.87, 62.29, 0.00, 0.00, -40.00);
- CreateObject(4726, 227.39, 1978.48, 16.61, 0.00, 0.00, 0.00);
- CreateObject(14414, 283.82, 1864.74, 19.33, 0.00, 0.00, 0.00);
- CreateObject(14414, 287.70, 1864.77, 19.30, 0.00, 0.00, 0.00);
- //==============================================================================
- CreateVehicle(425, 364.9720, 2538.0386, 17.3092, 184.0000, -1, -1, 100);
- CreateVehicle(520, 268.3366, 2543.3374, 17.3024, 180.0000, -1, -1, 100);
- CreateVehicle(476, 291.3607, 2543.9614, 17.9113, 180.0000, -1, -1, 100);
- CreateVehicle(476, 325.6700, 2542.9197, 17.9014, 180.0000, -1, -1, 100);
- CreateVehicle(470, 307.6615, 2536.2375, 16.7011, 180.0000, -1, -1, 100);
- CreateVehicle(470, 341.9824, 2485.3606, 16.3706, 0.0000, -1, -1, 100);
- CreateVehicle(470, 354.5155, 2538.9507, 16.6278, 180.0000, -1, -1, 100);
- CreateVehicle(470, 346.0322, 2539.6531, 16.4340, 180.0000, -1, -1, 100);
- CreateVehicle(432, 394.7015, 2446.0923, 16.3876, 0.0000, -1, -1, 100);
- CreateVehicle(432, 412.9508, 2446.7751, 16.3942, 0.0000, -1, -1, 100);
- CreateVehicle(433, 386.3125, 2538.8696, 17.0323, 180.0000, -1, -1, 100);
- CreateVehicle(487, 405.3329, 2460.6536, 29.8349, 0.0000, -1, -1, 100);
- CreateVehicle(487, 358.2871, 2490.4832, 28.4258, 0.0000, -1, -1, 100);
- CreateVehicle(520, -233.0517, 2660.5913, 63.4347, 180.0000, -1, -1, 100);
- CreateVehicle(520, -212.9728, 2660.0635, 63.3981, 180.0000, -1, -1, 100);
- CreateVehicle(425, -310.0828, 2680.3740, 63.4143, 0.0000, -1, -1, 100);
- CreateVehicle(433, -228.6775, 2732.7085, 63.1814, 0.0000, -1, -1, 100);
- CreateVehicle(447, -213.0086, 2733.2693, 62.8845, 0.0000, -1, -1, 100);
- CreateVehicle(432, -241.5271, 2774.7251, 62.4544, 180.0000, -1, -1, 100);
- CreateVehicle(432, -165.8552, 2686.1375, 62.3629, 90.0000, -1, -1, 100);
- CreateVehicle(490, -167.0429, 2669.7322, 63.3088, 90.0000, -1, -1, 100);
- CreateVehicle(490, -167.6152, 2658.3682, 63.9821, 90.0000, -1, -1, 100);
- CreateVehicle(601, -209.4082, 2602.3862, 62.5926, 0.0000, -1, -1, 100);
- CreateVehicle(470, -221.6009, 2602.7659, 62.6025, 0.0000, -1, -1, 100);
- CreateVehicle(470, -235.3760, 2602.4441, 62.6025, 0.0000, -1, -1, 100);
- CreateVehicle(470, -30.2696, 2342.0266, 24.0237, 0.0000, -1, -1, 100);
- CreateVehicle(470, 172.9899, 1930.0182, 18.2039, 180.0000, -1, -1, 100);
- CreateVehicle(470, 179.8932, 1930.0627, 17.7880, 180.0000, -1, -1, 100);
- CreateVehicle(447, 201.4775, 1884.5150, 17.8194, 0.0000, -1, -1, 100);
- CreateVehicle(447, 224.4239, 1885.0465, 17.8200, 0.0000, -1, -1, 100);
- CreateVehicle(425, 226.4783, 1981.5138, 19.6279, 90.0000, -1, -1, 100);
- CreateVehicle(500, 291.5969, 1902.0576, 17.8286, 0.0000, -1, -1, 100);
- CreateVehicle(520, 278.9262, 1956.3839, 18.4331, -90.0000, -1, -1, 100);
- CreateVehicle(520, 277.8458, 1990.0569, 18.4299, -90.0000, -1, -1, 100);
- CreateVehicle(520, 278.8977, 2024.7052, 18.7303, -91.0000, -1, -1, 100);
- CreateVehicle(487, 330.2691, 1857.7391, 18.1296, 0.0000, -1, -1, 100);
- CreateVehicle(487, 333.2515, 1896.5369, 18.1270, 0.0000, -1, -1, 100);
- CreateVehicle(487, 279.7356, 1929.3915, 17.8241, 0.0000, -1, -1, 100);
- CreateVehicle(487, 184.9452, 1811.2323, 17.8343, 0.0000, -1, -1, 100);
- CreateVehicle(599, 364.3433, 1937.1143, 17.8183, 90.0000, -1, -1, 100);
- CreateVehicle(599, 361.9468, 1971.8999, 17.8273, 90.0000, -1, -1, 100);
- CreateVehicle(476, 302.6609, 2051.3438, 18.7014, 180.0000, -1, -1, 100);
- CreateVehicle(476, 314.9147, 2051.6223, 18.7380, 180.0000, -1, -1, 100);
- CreateVehicle(470, -362.5944, 2198.6367, 42.3802, 0.0000, -1, -1, 100);
- CreateVehicle(470, -385.9617, 2195.3948, 42.0191, -90.0000, -1, -1, 100);
- CreateVehicle(476, -469.1991, 2232.9861, 46.2906, 180.0000, -1, -1, 100);
- CreateVehicle(522, -423.4416, 2225.9443, 42.0162, 0.0000, -1, -1, 100);
- CreateVehicle(522, -391.5645, 2221.8062, 42.0169, -90.0000, -1, -1, 100);
- CreateVehicle(522, -387.9488, 2212.1982, 42.0161, -84.0000, -1, -1, 100);
- CreateVehicle(522, -356.3287, 2200.4702, 42.0732, 0.0000, -1, -1, 100);
- CreateVehicle(500, -401.1270, 2224.9727, 42.6239, 178.0000, -1, -1, 100);
- CreateVehicle(447, -431.6691, 2226.2529, 42.6071, 0.0000, -1, -1, 100);
- CreateVehicle(432, -414.3075, 2216.2314, 42.6262, -90.0000, -1, -1, 100);
- CreateVehicle(520, -417.4319, 2200.1738, 43.2283, -180.0000, -1, -1, 100);
- CreateVehicle(425, -435.6116, 2198.7466, 43.2201, 185.0000, -1, -1, 100);
- CreateVehicle(433, -395.0356, 2258.6289, 42.3966, 0.0000, -1, -1, 100);
- CreateVehicle(451, 221.7199, 1863.8215, 12.7346, 0.0000, -1, -1, 100);
- CreateVehicle(541, 206.1917, 1862.7610, 12.7361, 0.0000, -1, -1, 100);
- CreateVehicle(521, 212.9610, 1859.4684, 12.7341, 0.0000, -1, -1, 100);
- CreateVehicle(521, 216.1067, 1919.4802, 17.2262, 178.0000, -1, -1, 100);
- CreateVehicle(521, 208.1374, 1919.6757, 17.2258, 180.0000, -1, -1, 100);
- CreateVehicle(432, 119.3823, 1904.0291, 18.7829, 0.0000, -1, -1, 100);
- CreateVehicle(432, 331.1017, 1923.9956, 17.8223, 84.0000, -1, -1, 100);
- CreateVehicle(432, -86.7391, 1351.6979, 10.5394, 0.0000, -1, -1, 100);
- CreateVehicle(432, -139.5564, 1182.1930, 19.9293, 0.0000, -1, -1, 100);
- CreateVehicle(432, -150.3058, 1182.0281, 19.6261, 0.0000, -1, -1, 100);
- CreateVehicle(447, -164.6117, 1227.7975, 19.9327, 0.0000, -1, -1, 100);
- CreateVehicle(447, -101.6055, 1060.4777, 19.9173, 0.0000, -1, -1, 100);
- CreateVehicle(433, -157.4107, 1130.3845, 20.2373, 0.0000, -1, -1, 100);
- CreateVehicle(451, -110.7150, 1131.7701, 19.3377, 0.0000, -1, -1, 100);
- CreateVehicle(487, -31.4146, 1180.0289, 19.5603, 0.0000, -1, -1, 100);
- CreateVehicle(490, -146.5359, 1125.2842, 19.9334, 0.0000, -1, -1, 100);
- CreateVehicle(490, -92.3016, 1160.1515, 19.9357, -90.0000, -1, -1, 100);
- CreateVehicle(470, -141.0147, 1085.7773, 19.3232, 0.0000, -1, -1, 100);
- CreateVehicle(470, -152.8062, 1086.1261, 19.6248, 0.0000, -1, -1, 100);
- CreateVehicle(425, -82.7839, 1122.1613, 20.5346, 0.0000, -1, -1, 100);
- CreateVehicle(520, -49.4360, 1121.0028, 20.5321, 0.0000, -1, -1, 100);
- CreateVehicle(520, -83.3086, 1075.9781, 20.5282, -90.0000, -1, -1, 100);
- CreateVehicle(470, -142.0169, 1213.3082, 19.6301, 0.0000, -1, -1, 100);
- CreateVehicle(470, -89.6595, 1216.6346, 19.6188, 0.0000, -1, -1, 100);
- //=SHOP=========================================================================
- weaponshop1 = CreatePickup(19130,1,211.7107,1809.0106,21.8672,0);
- Create3DTextLabel("{FFFF00}Weapon shop",0xFFFFFFFF,211.7107,1809.0106,21.8672,50.0,0);
- weaponshop2 = CreatePickup(19130,1,-137.4183,1116.5894,20.1966,0);
- Create3DTextLabel("{FFFF00}Weapon shop",0xFFFFFFFF,-137.4183,1116.5894,20.1966,50.0,0);
- weaponshop3 = CreatePickup(19130,1,-379.2944,2241.4058,42.4683,0);
- Create3DTextLabel("{FFFF00}Weapon shop",0xFFFFFFFF,-379.2944,2241.4058,42.4683,50.0,0);
- weaponshop4 = CreatePickup(19130,1,346.9036,2463.4106,16.4766,0);
- Create3DTextLabel("{FFFF00}Weapon shop",0xFFFFFFFF,346.9036,2463.4106,16.4766,50.0,0);
- weaponshop5 = CreatePickup(19130,1,-1951.5200,300.1485,35.4688,0);
- Create3DTextLabel("{FFFF00}Weapon shop",0xFFFFFFFF,-1951.5200,300.1485,35.4688,50.0,0);
- //=OCHRANA======================================================================
- SetGameModeText("Call of Duty");
- SendRconCommand("rcon_password mexikoexi123");
- //=TEXTDRAW=====================================================================
- Textdraw0 = TextDrawCreate(680.000000, -52.000000, "BOX");
- TextDrawBackgroundColor(Textdraw0, 255);
- TextDrawFont(Textdraw0, 1);
- TextDrawLetterSize(Textdraw0, 2.799999, 21.100000);
- TextDrawColor(Textdraw0, -1);
- TextDrawSetOutline(Textdraw0, 0);
- TextDrawSetProportional(Textdraw0, 1);
- TextDrawSetShadow(Textdraw0, 1);
- TextDrawUseBox(Textdraw0, 1);
- TextDrawBoxColor(Textdraw0, 255);
- TextDrawTextSize(Textdraw0, -320.000000, -300.000000);
- Textdraw1 = TextDrawCreate(1493.000000, 366.000000, "BOX");
- TextDrawBackgroundColor(Textdraw1, 255);
- TextDrawFont(Textdraw1, 1);
- TextDrawLetterSize(Textdraw1, 4.209998, 25.100000);
- TextDrawColor(Textdraw1, -1);
- TextDrawSetOutline(Textdraw1, 0);
- TextDrawSetProportional(Textdraw1, 1);
- TextDrawSetShadow(Textdraw1, 1);
- TextDrawUseBox(Textdraw1, 1);
- TextDrawBoxColor(Textdraw1, 255);
- TextDrawTextSize(Textdraw1, -90.000000, 0.000000);
- Textdraw2 = TextDrawCreate(430.000000, 369.000000, "C.H.P. Team");
- TextDrawBackgroundColor(Textdraw2, -65281);
- TextDrawFont(Textdraw2, 0);
- TextDrawLetterSize(Textdraw2, 0.750000, 4.000000);
- TextDrawColor(Textdraw2, 255);
- TextDrawSetOutline(Textdraw2, 1);
- TextDrawSetProportional(Textdraw2, 1);
- Textdraw3 = TextDrawCreate(510.000000, 150.000000, "Vitej");
- TextDrawBackgroundColor(Textdraw3, -16711681);
- TextDrawFont(Textdraw3, 3);
- TextDrawLetterSize(Textdraw3, 0.790000, 4.000000);
- TextDrawColor(Textdraw3, 16777215);
- TextDrawSetOutline(Textdraw3, 1);
- TextDrawSetProportional(Textdraw3, 1);
- Textdraw4 = TextDrawCreate(480.000000, 41.000000, "Call of Duty");
- TextDrawBackgroundColor(Textdraw4, 255);
- TextDrawFont(Textdraw4, 0);
- TextDrawLetterSize(Textdraw4, 0.600000, 4.000000);
- TextDrawColor(Textdraw4, 65535);
- TextDrawSetOutline(Textdraw4, 0);
- TextDrawSetProportional(Textdraw4, 1);
- TextDrawSetShadow(Textdraw4, 1);
- Textdraw5 = TextDrawCreate(720.000000, 341.000000, "_");
- TextDrawBackgroundColor(Textdraw5, 255);
- TextDrawFont(Textdraw5, 0);
- TextDrawLetterSize(Textdraw5, 0.500000, 1.000000);
- TextDrawColor(Textdraw5, 16777215);
- TextDrawSetOutline(Textdraw5, 0);
- TextDrawSetProportional(Textdraw5, 1);
- TextDrawSetShadow(Textdraw5, 1);
- TextDrawUseBox(Textdraw5, 1);
- TextDrawBoxColor(Textdraw5, 65535);
- TextDrawTextSize(Textdraw5, -211.000000, 30.000000);
- Textdraw6 = TextDrawCreate(9.000000, 128.000000, "www.web.sk");
- TextDrawBackgroundColor(Textdraw6, 16711935);
- TextDrawFont(Textdraw6, 1);
- TextDrawLetterSize(Textdraw6, 0.500000, 1.000000);
- TextDrawColor(Textdraw6, 255);
- TextDrawSetOutline(Textdraw6, 1);
- TextDrawSetProportional(Textdraw6, 1);
- //==============================================================================
- SetWorldTime(4);
- UsePlayerPedAnims();
- EnableStuntBonusForAll(0);
- AddPlayerClass(73,212.8427,1867.5533,13.1406,355.6948,0,0,0,0,0,0);
- AddPlayerClass(254,-362.5112,2222.4028,43.0078,87.0584,0,0,0,0,0,0);
- AddPlayerClass(285,-136.9506,1116.8413,20.1966,2.9249,0,0,0,0,0,0);
- AddPlayerClass(287,403.6445,2449.0715,16.5000,357.9827,0,0,0,0,0,0);
- AddPlayerClass(206,-251.1134,2600.3315,62.8582,359.2632,0,0,0,0,0,0);
- SetTimer("hostname", 500, 1);
- GZ_ZONE1 = GangZoneCreate(-319.3359375,2654.296875,-128.90625,2815.4296875);
- GZ_ZONE2 = GangZoneCreate(-2.9296875,1731.4453125,386.71875,2056.640625);
- GZ_ZONE3 = GangZoneCreate(-304.6875,1031.25,14.6484375,1221.6796875);
- GZ_ZONE4 = GangZoneCreate(102.5390625,2408.203125,465.8203125,2622.0703125);
- GZ_ZONE5 = GangZoneCreate(-468.75,2185.546875,-316.40625,2293.9453125);
- UsePlayerPedAnims();
- DisableInteriorEnterExits();
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- TextDrawShowForPlayer(playerid, Textdraw0);
- TextDrawShowForPlayer(playerid, Textdraw1);
- TextDrawShowForPlayer(playerid, Textdraw2);
- TextDrawShowForPlayer(playerid, Textdraw3);
- TextDrawShowForPlayer(playerid, Textdraw4);
- TextDrawShowForPlayer(playerid, Textdraw5);
- TextDrawShowForPlayer(playerid, Textdraw6);
- SetPlayerPos(playerid,220.3261,1822.9734,7.5368);
- SetPlayerCameraLookAt(playerid,220.3261,1822.9734,7.5368);
- SetPlayerCameraPos(playerid,226.7491,1823.0441,7.4141);
- SetPlayerFacingAngle(playerid, 270 );
- ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
- CreateExplosion(212.9525,1822.9084,6.4141, 11, 10.0);
- if(classid == TEAM_GERMANY) {
- SetPlayerSkin(playerid, 179);
- GameTextForPlayer(playerid,"~g~Nemci",1000,4);
- SetPlayerColor(playerid, TEAM_GERMANY_COLOR);
- gTeam[playerid] = TEAM_GERMANY;
- }
- if(classid == TEAM_IRAQ) {
- SetPlayerSkin(playerid, 128);
- GameTextForPlayer(playerid,"~p~Iranci",1000,4);
- SetPlayerColor(playerid, TEAM_IRAQ_COLOR);
- gTeam[playerid] = TEAM_IRAQ;
- }
- if(classid == TEAM_RUSSIA) {
- SetPlayerSkin(playerid, 206);
- GameTextForPlayer(playerid,"~r~Sovieti",1000,4);
- SetPlayerColor(playerid, TEAM_RUSSIA_COLOR);
- gTeam[playerid] = TEAM_RUSSIA;
- }
- if(classid == TEAM_USA) {
- SetPlayerSkin(playerid, 287);
- GameTextForPlayer(playerid,"~b~Americani",1000,4);
- SetPlayerColor(playerid, TEAM_USA_COLOR);
- gTeam[playerid] = TEAM_USA;
- }
- if(classid == TEAM_BANGLADESH) {
- SetPlayerSkin(playerid, 285);
- GameTextForPlayer(playerid,"~p~Evropane",1000,4);
- SetPlayerColor(playerid, TEAM_BANGLADESH_COLOR);
- gTeam[playerid] = TEAM_BANGLADESH;
- }
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- StopAudioStreamForPlayer(playerid);
- SetPlayerStarRang(playerid);
- TextDrawHideForPlayer(playerid, Textdraw0);
- TextDrawHideForPlayer(playerid, Textdraw1);
- TextDrawHideForPlayer(playerid, Textdraw2);
- TextDrawHideForPlayer(playerid, Textdraw3);
- TextDrawHideForPlayer(playerid, Textdraw4);
- TextDrawHideForPlayer(playerid, Textdraw5);
- TextDrawHideForPlayer(playerid, Textdraw6);
- if(gTeam[playerid] == TEAM_GERMANY) {
- SetPlayerArmour(playerid, 100);
- new Text3D:label7 = Create3DTextLabel("Nemec",TEAM_GERMANY_COLOR, 30.0, 40.0, 50.0, 40.0, 0);
- Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
- SetPlayerTeam(playerid, 0);
- }
- if(gTeam[playerid] == TEAM_IRAQ) {
- SetPlayerArmour(playerid, 100);
- new Text3D:label7 = Create3DTextLabel("Iracan",TEAM_IRAQ_COLOR, 30.0, 40.0, 50.0, 40.0, 0);
- Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
- SetPlayerTeam(playerid, 1);
- }
- if(gTeam[playerid] == TEAM_RUSSIA) {
- SetPlayerArmour(playerid, 100);
- new Text3D:label7 = Create3DTextLabel("Rus",TEAM_RUSSIA_COLOR, 30.0, 40.0, 50.0, 40.0, 0);
- Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
- SetPlayerTeam(playerid, 2);
- }
- if(gTeam[playerid] == TEAM_USA) {
- SetPlayerArmour(playerid, 100);
- new Text3D:label7 = Create3DTextLabel("American",TEAM_USA_COLOR, 30.0, 40.0, 50.0, 40.0, 0);
- Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
- SetPlayerTeam(playerid, 3);
- }
- if(gTeam[playerid] == TEAM_BANGLADESH) {
- SetPlayerArmour(playerid, 100);
- new Text3D:label7 = Create3DTextLabel("Evropan",TEAM_BANGLADESH_COLOR, 30.0, 40.0, 50.0, 40.0, 0);
- Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
- SetPlayerTeam(playerid, 4);
- }
- GangZoneShowForAll(GZ_ZONE1, 0x80FFFF96);
- GangZoneShowForAll(GZ_ZONE2, 0x80FF803E);
- GangZoneShowForAll(GZ_ZONE3, 0xFF00003E);
- GangZoneShowForAll(GZ_ZONE4, 0x0000A03E);
- GangZoneShowForAll(GZ_ZONE5, 0x8000803E);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- SendDeathMessage(killerid, playerid, reason);
- SendClientMessage(playerid, RED, " Zemřel jsi! Odečteno 1000$ za smrt ");
- GivePlayerMoney(playerid, -1000);
- GivePlayerMoney(killerid, 5500);
- GameTextForPlayer(playerid, "~r~Zemrel jsi!!",2500,3);
- SendClientMessage(killerid, GREEN, "Dobra prace - Dostaneš 5500$ a +1 bod jako odměnu!");
- SetPlayerWantedLevel(killerid, 6);
- if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- if(GetPVarInt(playerid,"Muted") == 1)
- {
- SCM(playerid,COLOR_BLUE,"Jsi umlčený, nemůžeš psát!");
- new string[128];
- format(string,128, "[ID:%d] %s", playerid,text);
- SendPlayerMessageToAll(playerid, string);
- }
- if(GetPVarInt(playerid,"Muted") == 0)
- {
- new string[128];
- format(string,128, "[ID:%d] %s", playerid,text);
- SendPlayerMessageToAll(playerid, string);
- }
- return 0;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- ShowPlayerDialog(playerid, RED, DIALOG_STYLE_MSGBOX, "{FFFF00}Úvod","{F0F0F0}Zdravím, Napiš /prikazy kde nalezneš užitečné příkazy","Ok","");
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == weaponshop1)
- {
- ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"{0548FA}Weapon shop","{FFFFFF}Granát {FFFFFF}$2 000/500 ks" "\n" "{FFFFFF}Desert eagle {FFFFFF}$5 000/1000 nábojů" "\n" "{FFFFFF}Sawn-off shotgun {FFFFFF}$10 000/1000 nábojů" "\n" "{FFFFFF}M4 {FFFFFF}$15 000/1000 nábojů" "\n" "{FFFFFF}Sniper {FFFFFF}$15 000/1000 nábojů" "\n" "{FFFFFF}Raketomet {FFFFFF}$200 000/100 nábojů","Koupit","Konec");
- }
- if(pickupid == weaponshop2)
- {
- ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"{0548FA}Weapon shop","{FFFFFF}Granát {FFFFFF}$2 000/500 ks" "\n" "{FFFFFF}Desert eagle {FFFFFF}$5 000/1000 nábojů" "\n" "{FFFFFF}Sawn-off shotgun {FFFFFF}$10 000/1000 nábojů" "\n" "{FFFFFF}M4 {FFFFFF}$15 000/1000 nábojů" "\n" "{FFFFFF}Sniper {FFFFFF}$15 000/1000 nábojů" "\n" "{FFFFFF}Raketomet {FFFFFF}$200 000/100 nábojů","Koupit","Konec");
- }
- if(pickupid == weaponshop3)
- {
- ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"{0548FA}Weapon shop","{FFFFFF}Granát {FFFFFF}$2 000/500 ks" "\n" "{FFFFFF}Desert eagle {FFFFFF}$5 000/1000 nábojů" "\n" "{FFFFFF}Sawn-off shotgun {FFFFFF}$10 000/1000 nábojů" "\n" "{FFFFFF}M4 {FFFFFF}$15 000/1000 nábojů" "\n" "{FFFFFF}Sniper {FFFFFF}$15 000/1000 nábojů" "\n" "{FFFFFF}Raketomet {FFFFFF}$200 000/100 nábojů","Koupit","Konec");
- }
- if(pickupid == weaponshop4)
- {
- ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"{0548FA}Weapon shop","{FFFFFF}Granát {FFFFFF}$2 000/500 ks" "\n" "{FFFFFF}Desert eagle {FFFFFF}$5 000/1000 nábojů" "\n" "{FFFFFF}Sawn-off shotgun {FFFFFF}$10 000/1000 nábojů" "\n" "{FFFFFF}M4 {FFFFFF}$15 000/1000 nábojů" "\n" "{FFFFFF}Sniper {FFFFFF}$15 000/1000 nábojů" "\n" "{FFFFFF}Raketomet {FFFFFF}$200 000/100 nábojů","Koupit","Konec");
- }
- if(pickupid == weaponshop5)
- {
- ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"{0548FA}Weapon shop","{FFFFFF}Granát {FFFFFF}$2 000/500 ks" "\n" "{FFFFFF}Desert eagle {FFFFFF}$5 000/1000 nábojů" "\n" "{FFFFFF}Sawn-off shotgun {FFFFFF}$10 000/1000 nábojů" "\n" "{FFFFFF}M4 {FFFFFF}$15 000/1000 nábojů" "\n" "{FFFFFF}Sniper {FFFFFF}$15 000/1000 nábojů" "\n" "{FFFFFF}Raketomet {FFFFFF}$200 000/100 nábojů","Koupit","Konec");
- }
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- if(GetPlayerWeapon(playerid) == 38 || GetPlayerWeapon(playerid) == 36 || GetPlayerWeapon(playerid) == 37 || GetPlayerWeapon(playerid) == 44 || GetPlayerWeapon(playerid) == 45 || GetPlayerWeapon(playerid) == 21)
- {
- SendClientMessage(playerid, RED, "Byl jsi vyhozen za Weapon cheat");
- Kick(playerid);
- }
- return 1;
- }
- //=PRIKAZY======================================================================
- QCMD:t() {
- if(isnull()) return SendClientMessage(playerid, ORANGE, "Použití: /t [text] pro psaní do team chatu");
- new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name));
- new string[128];
- format(string, sizeof(string), "[t][Team Chat] %s: %s", Name, params[0]);
- printf("%s", string);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(i, RED, string);
- }
- return 1;
- }
- QCMD:mujteam()
- {
- if(gTeam[playerid] == TEAM_GERMANY)
- {
- SendClientMessage(playerid, ORANGE, "Váš team: Němci");
- }
- else if(gTeam[playerid] == TEAM_IRAQ)
- {
- SendClientMessage(playerid, ORANGE, "Váš team: Iránci");
- }
- else if(gTeam[playerid] == TEAM_RUSSIA)
- {
- SendClientMessage(playerid, ORANGE, "Váš team: Sovieti");
- }
- else if(gTeam[playerid] == TEAM_USA)
- {
- SendClientMessage(playerid, ORANGE, "Váš team: Američani");
- }
- else if(gTeam[playerid] == TEAM_BANGLADESH)
- {
- SendClientMessage(playerid, ORANGE, "Váš team: Evropané");
- }
- return 1;
- }
- QCMD:kill()
- {
- SetPlayerHealth(playerid, 0);
- }
- QCMD:prikazy()
- {
- ShowPlayerDialog(playerid, RED, DIALOG_STYLE_MSGBOX, "{FFFF00}Příkazy pro hráče","{FFFF00}/t || /mujteam || /car || /W \n/Help ||/ehelp || /Kill || /Rules || /team \n/laseron|off || /lasercol","I accept","");
- return 1;
- }
- QCMD:radio()
- {
- ShowPlayerDialog(playerid,10,DIALOG_STYLE_LIST,"**Radio**","{FF8040}Europa 2 [SK]\n{FF8040}Europa 2 [CZ]\n{FF8040}FunRadio [SK]\n{FF8040}FajnRadio [CZ]\n{FF8040}Kiss [CZ]\n{FF8040}HipHop Storage [CZ]\n{FF8040}RockZone [CZ]\n{FF8040}RadioImpuls [CZ]\n{FF8040}RadioBlanik [CZ]\n{FF8040}DNB [COM]\n\n{FF0000}Vypnuť Radio","Vyber","Koniec");
- return 1;
- }
- QCMD:help()
- {
- ShowPlayerDialog(playerid, RED, DIALOG_STYLE_MSGBOX, "{FFFF00}Help","{F0F0F0}/prikazy /Rules ","Ok","");
- return 1;
- }
- QCMD:rules()
- {
- ShowPlayerDialog(playerid, RED, DIALOG_STYLE_MSGBOX, "{FFFF00}Pravidla","Nesmíš používat crasher a nesmrtelnost jinak vše je povoleno.","Ok","");
- }
- QCMD:team()
- {
- SetPlayerHealth(playerid, 0.0);
- ForceClassSelection(playerid);
- SendClientMessage(playerid, ORANGE,"Vyber si nový team!");
- return 1;
- }
- //=Admin Prikazy================================================================
- QCMD:cmds()
- {
- SCM(playerid,COLOR_RED,"|============={ A D M I N }=============|");
- SCM(playerid,COLOR_YELLOW,"Všichni: /admins ; / report ; /cmds");
- SCM(playerid,COLOR_YELLOW,"Admin lvl 1: /me | /var | /goto | /get ");
- SCM(playerid,COLOR_YELLOW,"Admin lvl 2: /acheat | /health | /nick | /slay | /mute | /unmute");
- SCM(playerid,COLOR_YELLOW,"Admin lvl 3: /kick | /gm | /gw | /freeze | /unfreeze | /clearchat");
- SCM(playerid,COLOR_YELLOW,"Admin lvl 4: /ban | /kickall | /belaone | /beback");
- SCM(playerid,COLOR_RED,"|============={ A D M I N }=============|");
- return true;
- }
- QCMD:setlevel()
- {
- if(IsPlayerAdmin(playerid))
- {
- new level,
- id = strlen(params),
- string[128];
- if(sscanf(params,"ui",id,level)) return SCM(playerid,COLOR_RED,"Použití: /setlevel [ID] [LEVEL: 0-4]");
- else if(!IsPlayerConnected(id)) return SCM(playerid,COLOR_RED,"[ ! ] Hráč není na serveru");
- else if(level > 4 || level < 0) return SCM(playerid,COLOR_RED,"Použití: /setlevel [ID] [LEVEL: 0-4]");
- else
- format(string,sizeof(string),"Administrátor %s nastavil hráči %s adminlevel %d",PlayerName(playerid),PlayerName(id),level);
- SCMTA(COLOR_GREEN,string);
- Alvl[id] = level;
- }
- else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:report()
- {
- new
- kdo = strval(params)
- ,string[128]
- ,duvod[25];
- if(sscanf(params,"uz",kdo,duvod)) return SCM(playerid,COLOR_RED,"Použití: /report [ID] [DUVOD]");
- else if(!IsPlayerConnected(kdo)) return SCM(playerid,COLOR_RED,"[ ! ] Hráč neni na serveru");
- else
- format(string,sizeof(string),"Hráč %s nahlásil hráče %s (ID: %d) [DUVOD: %s]",PlayerName(playerid),PlayerName(kdo),kdo,duvod);
- for(new i;i<MAX_PLAYERS;i++)
- {
- if(IsPlayerAdmin(playerid) || Alvl[i] >= 1)
- {
- SCMTA(COLOR_YELLOW,string);
- }
- else return 0;
- }
- return true;
- }
- QCMD:kick()
- {
- if(Alvl[playerid] >= 3)
- {
- new
- id = strval(params),
- duvod[25],
- string[128];
- if(sscanf(params,"uz",id,duvod)) return SCM(playerid,COLOR_RED,"Použizí: /kick [ID] [DUVOD]");
- else if(!IsPlayerConnected(id)) return SCM(playerid,COLOR_RED,"[ ! ] Hráč není na serveru!");
- else if(Alvl[id]>=1) return SCM(playerid,COLOR_RED,"Nemůžeš vykicknout administrátora");
- else
- format(string,sizeof(string),"Administrátor %s vykicknul hráče %s [DUVOD: %s]",PlayerName(playerid),PlayerName(id),duvod);
- SCMTA(COLOR_GREEN,string);
- Kick(id);
- } else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:ban()
- {
- if(Alvl[playerid] >= 4)
- {
- new
- id = strval(params),
- duvod[25],
- string[128];
- if(sscanf(params,"uz",id,duvod)) return SCM(playerid,COLOR_RED,"Použizí: /ban [ID] [DUVOD]");
- else if(!IsPlayerConnected(id)) return SCM(playerid,COLOR_RED,"[ ! ] Hráč není na serveru!");
- else if(Alvl[id]>=1) return SCM(playerid,COLOR_RED,"Nemůžeš zabanovat administrátora");
- else
- format(string,sizeof(string),"Administrátor %s zabanoval hráče %s [DUVOD: %s]!",PlayerName(playerid),PlayerName(id),duvod);
- Ban(id);
- }else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:me()
- {
- if(Alvl[playerid] >= 1)
- {
- new text[128],
- string[128];
- if(sscanf(params,"z",text)) return SCM(playerid,COLOR_RED,"Použití: /me [TEXT]");
- else
- format(string,sizeof(string),"{FFFFFF}[{FF0000}ServerAdmin: {33FF00}%s{FFFFFF} ]:{FF0000} %s",PlayerName(playerid),text);
- SCMTA(COLOR_RED,string);
- }else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:mute()
- {
- if(Alvl[playerid] >= 2)
- {
- new id = strval(params),
- string[128],
- minuty,
- duvod[25];
- if(sscanf(params,"udz",id,minuty,duvod)) return SCM(playerid,COLOR_RED,"Použití: /mute [ID] [SEKUNDY] [DUVOD]");
- else if(GetPVarInt(id,"Mute") == 1) return SCM(playerid,COLOR_RED,"Hráč již je umlčený");
- else if(Alvl[id] >= 1) return SCM(playerid,COLOR_RED,"Nemůžeš umlčet administrátora");
- else
- SetPVarInt(id,"Mute",1);
- SetTimerEx("muted",minuty*1000,0,"i",id);
- format(string,sizeof(string),"Administrátor %s umlčel hráče %s na %d minut s důvodem %s",PlayerName(playerid),PlayerName(id),minuty,duvod);
- SCMTA(COLOR_RED,string);
- }else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:unmute()
- {
- if(Alvl[playerid] >= 2)
- {
- new id = strval(params),
- string[128];
- if(sscanf(params,"u",id)) return SCM(playerid,COLOR_RED,"Použití: /unmute [ID]");
- else if(GetPVarInt(id,"Mute") == 0) return SCM(playerid,COLOR_RED,"Hráč není umlčený");
- else
- format(string,sizeof(string),"Administrátor %s odmlčel hráče %s",PlayerName(playerid),PlayerName(id));
- SCMTA(COLOR_RED,string);
- SetPVarInt(id,"Mute",0);
- }else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:var()
- {
- if(Alvl[playerid] >= 1)
- {
- new id = strval(params),
- duvod[25],
- string[128],
- string1[128];
- if(sscanf(params,"uz",id,duvod)) return SCM(playerid,COLOR_RED,"Použití: /var [ID] [DUVOD]");
- else if(!IsPlayerConnected(id)) return SCM(playerid,COLOR_RED,"Hráč není na serveru");
- else if(Alvl[id] >= 1) return SCM(playerid,COLOR_RED,"Nemůžeš varovat administrátora!");
- else
- varovani[id] ++;
- format(string,sizeof(string),"[%d/3] Administrátor %s varoval hráče %s [DUVOD: %s]",varovani,PlayerName(playerid),PlayerName(id),duvod);
- SCMTA(COLOR_RED,string);
- if(varovani[id] >= 3)
- {
- format(string1,sizeof(string1),"[3/3] Administrátor %s vyhodil hráče %s [DUVOD: %s]",PlayerName(playerid),PlayerName(id),duvod);
- SCMTA(COLOR_RED,string1);
- Kick(id);
- }
- }else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:goto()
- {
- if(Alvl[playerid] >= 1)
- {
- new id = strval(params),
- string[128],
- Float:x,
- Float:y,
- Float:z;
- if(sscanf(params,"u",id)) return SCM(playerid,COLOR_RED,"Použití: /goto [ID]");
- else if(!IsPlayerConnected(id)) return SCM(playerid,COLOR_RED,"Hráč není na serveru");
- else
- GetPlayerPos(id,x,y,z);
- Warp(playerid,x,y+1,z);
- format(string,sizeof(string),"Administrátor %s se warpl k hráči %s",PlayerName(playerid),PlayerName(id));
- SCMTA(COLOR_RED,string);
- }else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:get()
- {
- if(Alvl[playerid] >= 1)
- {
- new id = strval(params),
- string[128],
- Float:x,
- Float:y,
- Float:z;
- if(sscanf(params,"u",id)) return SCM(playerid,COLOR_RED,"Použití: /get [ID]");
- else if(!IsPlayerConnected(id)) return SCM(playerid,COLOR_RED,"Hráč není na serveru");
- else
- GetPlayerPos(playerid,x,y,z);
- Warp(id,x,y+1,z);
- format(string,sizeof(string),"Administrátor %s k sobě warpl %s",PlayerName(playerid),PlayerName(id));
- SCMTA(COLOR_RED,string);
- }else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:freeze()
- {
- if(Alvl[playerid] >= 3)
- {
- new id = strval(params),
- string[128],
- duvod[25],
- minuty;
- if(sscanf(params,"udz",id,minuty,duvod)) return SCM(playerid,COLOR_RED,"Použití: /freeze [ID] [SEKUNDY] [DUVOD]");
- else if(!IsPlayerConnected(id)) return SCM(playerid,COLOR_RED,"Hráč není na serveru");
- else if(GetPVarInt(id,"zrazeny")==1) return SCM(playerid,COLOR_RED,"Hráč již zmražený je");
- else if(Alvl[id] >= 1) return SCM(playerid,COLOR_RED,"Nemůžeš zmrazit administrátora");
- else
- SetPVarInt(id,"zmrazeny",1);
- TogglePlayerControllable(playerid,0);
- SetTimerEx("odmrazit",minuty*1000,false,"i",id);
- format(string,sizeof(string),"Administrátor %s zmrazil hráče %s s důvodem %s na %d sekund",PlayerName(playerid),PlayerName(id),duvod,minuty);
- SCMTA(COLOR_RED,string);
- }else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:unfreeze()
- {
- if(Alvl[playerid] >= 3)
- {
- new id = strval(params),
- string[128];
- if(sscanf(params,"u",id)) return SCM(playerid,COLOR_RED,"Použití: /unfreeze [ID]");
- else if(!IsPlayerConnected(id)) return SCM(playerid,COLOR_RED,"Hráč není na serveru");
- else if(GetPVarInt(id,"zmrazeny")==0) return SCM(playerid,COLOR_RED,"Hráč není zmražený");
- else
- SetPVarInt(id,"zmrazeny",0);
- TogglePlayerControllable(playerid,1);
- format(string,sizeof(string),"Administrátor %s odmrazil hráče %s",PlayerName(playerid),PlayerName(id));
- SCMTA(COLOR_RED,string);
- }else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:clearchat()
- {
- if(Alvl[playerid] >= 3)
- {
- for(new i;i<60;i++)
- {
- SCMTA(COLOR_RED," ");
- }
- new string[128];
- format(string,sizeof(string),"Administrátor %s promazal chat !",PlayerName(playerid));
- SCMTA(COLOR_RED,string);
- }else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:belaone()
- {
- if(Alvl[playerid] >= 4)
- {
- new id = strval(params),
- string[128];
- if(sscanf(params,"u",id)) return SCM(playerid,COLOR_RED,"Použití: /bealone [ID]");
- else if(!IsPlayerConnected(id)) return SCM(playerid,COLOR_RED,"Hráč není na serveru");
- else if(GetPVarInt(id,"pryc")==1) return SCM(playerid,COLOR_RED,"Hráč je v jiném světě");
- else if(Alvl[id] >= 1) return SCM(playerid,COLOR_RED,"Nemůžeš poslat do jiného světa administrátora !");
- else
- SetPVarInt(id,"pryc",1);
- SetPlayerVirtualWorld(playerid,3);
- format(string,sizeof(string),"Administrátor %s dal hráče %s do jiného světa",PlayerName(playerid),PlayerName(id));
- SCMTA(COLOR_RED,string);
- }else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:slay()
- {
- if(Alvl[playerid] >= 2)
- {
- new id = strval(params),
- string[128];
- if(sscanf(params,"u",id)) return SCM(playerid,COLOR_RED,"Použití: /slay [ID]");
- else if(!IsPlayerConnected(id)) return SCM(playerid,COLOR_RED,"Hráč není na serveru");
- else if(Alvl[id] >= 1 ) return SCM ( playerid, COLOR_RED, "Nemůžeš usmrtit administrátora");
- else
- format(string,sizeof(string),"Administrátor %s tě zabil",PlayerName(playerid),PlayerName(id));
- SCM(id,COLOR_RED,string);
- SetPlayerHealth(id,0);
- }else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:beback()
- {
- if(Alvl[playerid] >= 4)
- {
- new id = strval(params),
- string[128];
- if(sscanf(params,"u",id)) return SCM(playerid,COLOR_RED,"Použití: /beback [ID]");
- else if(!IsPlayerConnected(id)) return SCM(playerid,COLOR_RED,"Hráč není na serveru");
- else if(GetPVarInt(id,"pryc")==0) return SCM(playerid,COLOR_RED,"Hráč není v jiném světě");
- else
- SetPVarInt(id,"pryc",0);
- SetPlayerVirtualWorld(playerid,0);
- format(string,sizeof(string),"Administrátor %s dal hráče %s z jiného světa",PlayerName(playerid),PlayerName(id));
- SCMTA(COLOR_RED,string);
- }else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:nick()
- {
- if(Alvl[playerid] >= 2)
- {
- new id = strval(params),
- string[128],
- newname[MAX_PLAYER_NAME];
- if(sscanf(params,"uz",id,newname)) return SCM(playerid,COLOR_RED,"Použití: /nick [ID] [NEWNAME]");
- else if(!IsPlayerConnected(id)) return SCM(playerid,COLOR_RED,"Hráč není na serveru");
- else if(Alvl[id] >= 1) return SCM(playerid,COLOR_RED,"Nemůžeš změnit jméno administrátorovi !");
- else
- SetPlayerName(id,newname);
- format(string,sizeof(string),"Administrátor %s nastavil hráči %s jiné jméno",PlayerName(playerid),PlayerName(id));
- SCMTA(COLOR_RED,string);
- }else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:gw()
- {
- if(Alvl[playerid] >= 3)
- {
- new id = strval(params),
- zbran,
- string[128];
- if(sscanf(params,"ud",id,zbran)) return SCM(playerid,COLOR_RED,"Použití: /gw [ID] [IDZBRANE]");
- else if(!IsPlayerConnected(id)) return SCM(playerid,COLOR_RED,"Hráč není na serveru");
- else if(zbran > 46 || zbran < 0 ) return SCM(playerid,COLOR_RED,"ID Zbrane: 0 - 46");
- else
- GivePlayerWeapon(id,zbran,9999);
- format(string,sizeof(string),"Administrátor %s dal hráči %s zbraň ID: %d",PlayerName(playerid),PlayerName(id),zbran);
- SCMTA(COLOR_RED,string);
- }else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:gm()
- {
- if(Alvl[playerid] >= 3)
- {
- new id = strval(params),
- money,
- string[128];
- if(sscanf(params,"ud",id,money)) return SCM(playerid,COLOR_RED,"Použití: /gm [ID] [MONEY]");
- else if(!IsPlayerConnected(id)) return SCM(playerid,COLOR_RED,"Hráč není na serveru");
- else
- GivePlayerMoney(playerid,money);
- format(string,sizeof(string),"Administrátor %s dal hráči %s %s$",PlayerName(playerid),PlayerName(id),money);
- SCMTA(COLOR_RED,string);
- }else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:server()
- {
- if(IsPlayerAdmin(playerid))
- {
- ShowPlayerDialog(playerid,32225,DIALOG_STYLE_LIST,"Manipulace se serverem","Zamknout\nOdemknout\nRestart\nVymazat bany\nZmenit jmeno\nVypnout server","Vybrat","Nic");
- }else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:admins()
- {
- new string[MAX_PLAYER_NAME*6+120];
- foreach(new i:Player)
- {
- if(Alvl[i] > 0 || IsPlayerAdmin(playerid))
- {
- format(string,sizeof(string),"%s%s {0000FF}: {FFFFFF}%s\n",string,PlayerName(i),Admins(i));
- }
- }
- ShowPlayerDialog(playerid,31000,DIALOG_STYLE_MSGBOX,"Online admini:",string,"OK","");
- return true;
- }
- QCMD:acheat()
- {
- if(Alvl[playerid] >= 2)
- {
- new id = strval(params),
- Float:x,
- Float:y,
- Float:z;
- if(sscanf(params,"u",id)) return SCM(playerid,COLOR_RED,"Použití: /acheat [ID]");
- else if(!IsPlayerConnected(id)) return SCM(playerid,COLOR_RED,"Hráč není připojen!!");
- else
- GetPlayerPos(id,x,y,z);
- SetPlayerHealth(id,100.0);
- SetPlayerArmour(id,0.0);
- CreateExplosion(x,y,z,6,2.0);
- SetTimerEx("acheat",1500,false,"i",id);
- }else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:health()
- {
- if(Alvl[playerid] >= 2)
- {
- new id = strval(params),
- Float:health,
- string[128];
- if(sscanf(params,"uf",id,health)) return SCM(playerid,COLOR_RED,"Použití: /health [ID] [HEALTH]");
- else if(!IsPlayerConnected(id)) return SCM(playerid,COLOR_RED,"Hráč není připojen!!");
- else
- SetPlayerHealth(id,health);
- format(string,sizeof(string),"Administrátor %s nastavil hráči %s %s životů",PlayerName(playerid),PlayerName(id),health);
- SCMTA(COLOR_RED,string);
- }else SCM(playerid,COLOR_RED,"Nemáš dostatečné práva pro tento příkaz");
- return true;
- }
- QCMD:kickall()
- {
- if(Alvl[playerid] >= 4)
- {
- new string[128];
- format(string,sizeof(string),"Všichni jste byli odpojeni administrátorem %s",PlayerName(playerid));
- SCMTA(COLOR_WHITE,string);
- for(new i;i<MAX_PLAYERS;i++)
- {
- if(IsPlayerConnected(i))
- {
- Kick(i);
- }
- }
- }
- return true;
- }
- //==============================================================================
- public OnPlayerDisconnect(playerid, reason)
- {
- if(Alvl[playerid] > 0)
- {
- new cesta[100];
- format(cesta, sizeof(cesta), "/hraci/%s.ini", PlayerName(playerid));
- new name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- dini_IntSet(cesta,"peníze",GetPlayerMoney(playerid));
- dini_IntSet(cesta,"score",GetPlayerScore(playerid));
- dini_IntSet(cesta,"admin",Alvl[playerid]);
- format(string, sizeof(string), "** %s odešel ze serveru", name);
- SendClientMessageToAll(RED, string);
- }
- return 1;
- }
- //=REGISTRACIA=============================================================================
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1){
- if(response==1){
- if(strlen(inputtext)>1)
- {
- new cesta[100];
- format(cesta, sizeof(cesta), "/hraci/%s.ini", PlayerName(playerid));
- ShowPlayerDialog(playerid,99,DIALOG_STYLE_MSGBOX,"Registrace","Úspěšne jsi se zaregistroval!","OK","");
- dini_Set(cesta,"meno",PlayerName(playerid));
- dini_Set(cesta,"heslo",inputtext);
- logged[playerid] = 1;
- }else{
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,"Registrace","Heslo musíš zadat!","Registrovat","Zrušit");
- }
- if(response==0){
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,"Registrace","Heslo musíš zadat!","Registrovat","Zrušit");
- }
- }
- if(dialogid == 2){
- if(response==1){
- new cesta[100];
- format(cesta, sizeof(cesta), "/hraci/%s.ini", PlayerName(playerid));
- if(!strcmp(dini_Get(cesta, "heslo"), inputtext)){
- if(strlen(inputtext)>1)
- {
- ShowPlayerDialog(playerid,100,DIALOG_STYLE_MSGBOX,"Přihlášení","Přihlášení proběhlo úspěšně!","OK","");
- logged[playerid] = 1;
- }else{
- ShowPlayerDialog(playerid,2,DIALOG_STYLE_PASSWORD,"Přihlášení","Zadal jsi špatné heslo!","Přihlásit","Zrušit");
- }
- }else{
- ShowPlayerDialog(playerid,2,DIALOG_STYLE_PASSWORD,"Přihlášení","Zadal jsi špatné heslo!","Přihlásit","Zrušit");
- }
- }
- if(response==0){
- ShowPlayerDialog(playerid,2,DIALOG_STYLE_PASSWORD,"Přihlášení","Heslo musíš zadat!","Přihlásit","Zrušit");
- }
- }
- if(dialogid==10)
- if(response)
- if(listitem==0)//Europa 2 [SK]
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid ,"http://ice2.europa2.sk/fm-europa2sk-128");
- SendClientMessage(playerid,0x00FFFFFF, "[Online-Radio] Spustil si Európu 2 [SK]");
- }
- else if(listitem==1)//Europa 2 [CZ]
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid ,"http://icecast3.play.cz/evropa2-128.mp3.m3u");
- SendClientMessage(playerid,0x00FFFFFF, "[Online-Radio] Spustil si Európu 2 [CZ]");
- }
- else if(listitem==2)//FunRadio
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid ,"http://stream.funradio.sk:8000/fun128.mp3");
- SendClientMessage(playerid,0x00FFFFFF, "[Online-Radio] Spustil si FunRadio [SK]");
- }
- else if(listitem==3)//FajnRadio
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid ,"http://ice.abradio.cz:8000/fajn128.mp3");
- SendClientMessage(playerid,0x00FFFFFF, "[Online-Radio] Spustil si FajnRadio [CZ]");
- }
- else if(listitem==4)//KissRadio
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid ,"http://85.159.106.242:8000/kissmp3_128.mp3");
- SendClientMessage(playerid,0x00FFFFFF, "[Online-Radio] Spustil si KissRadio [CZ]");
- }
- else if(listitem==5)//HipHop Storage
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid ,"http://www.hiphopstage.cz/radio.pls");
- SendClientMessage(playerid,0x00FFFFFF, "[Online-Radio] Spustil si HipHop Storage [CZ]");
- }
- else if(listitem==6)//RockZone
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid ,"http://icecast5.play.cz/rockzone128.mp3");
- SendClientMessage(playerid,0x00FFFFFF, "[Online-Radio] Spustil si RockZone [CZ]");
- }
- else if(listitem==7)//RadioImpuls
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid ,"http://icecast6.play.cz/fm-impuls-128.mp3");
- SendClientMessage(playerid,0x00FFFFFF, "[Online-Radio] Spustil si RadioImpuls [CZ]");
- }
- else if(listitem==8)//RadioBlanik
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid ,"http://kocka.limemedia.cz:8000/blanikcz/128.mp3.m3u");
- SendClientMessage(playerid,0x00FFFFFF, "[Online-Radio] Spustil si RadioBlanik [CZ]");
- }
- else if(listitem==9)//DNB
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid ,"http://www.dnbradio.com/hi.m3u");
- SendClientMessage(playerid,0x00FFFFFF, "[Online-Radio] Spustil si DNB [COM]");
- }
- else if(listitem==10)//Vypnutie Radia
- {
- StopAudioStreamForPlayer(playerid);
- SendClientMessage(playerid,0x00FFFFFF, "[Online-Radio] Vypol si Online Rádio");
- }
- }
- if(dialogid == 4)
- if(response == 1)
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid,CERVENA,"Nemaš dostatek peněz!! Vrať se až je budeš mít!");
- GivePlayerWeapon(playerid, 16, 500);
- GivePlayerMoney(playerid,-2000);
- SendClientMessage(playerid, SVETLE1_MODRA,"Zakoupil jsi 500 Granátů.");
- }
- case 1:
- {
- if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid,CERVENA,"Nemaš dostatek peněz!! Vrať se až je budeš mít!");
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerMoney(playerid,-5000);
- SendClientMessage(playerid,SVETLE1_MODRA,"Zakoupil jsi Desert Eagl/1000 nábojů.");
- }
- case 2:
- {
- if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid,CERVENA,"Nemaš dostatek peněz!! Vrať se až je budeš mít!");
- GivePlayerMoney(playerid,-10000);
- GivePlayerWeapon(playerid, 26, 1000);
- SendClientMessage(playerid,SVETLE1_MODRA,"Zakoupil jsi Sawn-off shotgun/1000 nábojů.");
- }
- case 3:
- {
- if(GetPlayerMoney(playerid) < 15000) return SendClientMessage(playerid,CERVENA,"Nemaš dostatek peněz!! Vrať se až je budeš mít!");
- GivePlayerWeapon(playerid, 31, 1000);
- GivePlayerMoney(playerid,-15000);
- SendClientMessage(playerid,SVETLE1_MODRA,"Zakoupil jsi M4/1000 nábojů.");
- }
- case 4:
- {
- if(GetPlayerMoney(playerid) < 15000) return SendClientMessage(playerid,CERVENA,"Nemaš dostatek peněz!! Vrať se až je budeš mít!");
- GivePlayerWeapon(playerid, 34, 1000);
- GivePlayerMoney(playerid,-15000);
- SendClientMessage(playerid,SVETLE1_MODRA,"Zakoupil jsi Sniper/1000 nábojů.");
- }
- case 5:
- {
- if(GetPlayerMoney(playerid) < 200000) return SendClientMessage(playerid,CERVENA,"Nemaš dostatek peněz!! Vrať se až je budeš mít!");
- GivePlayerWeapon(playerid, 35, 100);
- GivePlayerMoney(playerid,-200000);
- SendClientMessage(playerid,SVETLE1_MODRA,"Zakoupil jsi Raketomet/100 nábojů.");
- }
- }
- if(dialogid == 32225)
- {
- if(response == 1)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid,30000,DIALOG_STYLE_INPUT,"Zamknout server","Zde napiš heslo pro server","Odeslat","Nic");
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid,30001,DIALOG_STYLE_MSGBOX,"Opravdu chcete ..","Opravdu chcete odemknout server","ANO","NE");
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid,30002,DIALOG_STYLE_INPUT,"Za kolik minut","Zadej, za kolik minut se Restartuje server (celé čísla)","Odeslat","Nic");
- }
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid,30003,DIALOG_STYLE_MSGBOX,"Opravdu chcete ..","Opravdu chcete vymazat všechny BANy na serveru?","ANO","NE");
- }
- if(listitem == 4)
- {
- ShowPlayerDialog(playerid,30004,DIALOG_STYLE_INPUT,"Jméno serveru","Zadejte nové jméno serveru","Odeslat","Nic");
- }
- if(listitem == 5)
- {
- ShowPlayerDialog(playerid,30005,DIALOG_STYLE_INPUT,"Za kolik minut ..","Zadejte, za kolik minut chcete, aby se vypnul server","Odeslat","Nic");
- }
- }
- if(dialogid == 30000)
- {
- if(response == 1)
- {
- new newpass[128];
- format(newpass,sizeof(newpass),"password %s",inputtext);
- SendRconCommand(newpass);
- }
- }
- if(dialogid == 30001)
- {
- if(response == 1)
- {
- SendRconCommand("password 0");
- }
- }
- if(dialogid == 30002)
- {
- if(response == 1)
- {
- new minuty = strval(inputtext),
- string[128];
- if(!IsNumeric(inputtext)) return SCM(playerid,COLOR_RED,"Pouze celá čísla!");
- else
- SetTimer("Restart",minuty*60000,false);
- format(string,sizeof(string),"Za %d minut se restartuje server",minuty);
- SCMTA(COLOR_RED,string);
- }
- }
- if(dialogid == 30003)
- {
- if(response == 1)
- {
- SendRconCommand("reloadbans");
- }
- }
- if(listitem == 30004)
- {
- if(listitem == 1)
- {
- new newname[128],
- string[128];
- format(newname,sizeof(newname),"hostname %s",newname);
- format(string,sizeof(string),"Hráč %s změnil jméno serveru na %s",PlayerName(playerid),newname);
- SendRconCommand(newname);
- }
- }
- if(listitem == 30005)
- {
- if(response == 1)
- {
- new minuty = strval(inputtext),
- string[128];
- if(!IsNumeric(inputtext)) return SCM(playerid,COLOR_RED,"Pouze celá čísla!");
- else
- SetTimer("Off",minuty*60000,false);
- format(string,sizeof(string),"Za %d minut se restartuje server",minuty);
- SCMTA(COLOR_RED,string);
- }
- }
- }
- return true;
- }
- //==============================================================================
- public OnPlayerConnect(playerid)
- {
- SetPVarInt(playerid,"Mute",0);
- new name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "** %s Se připojil na server!", name);
- SendClientMessageToAll(GREEN, string);
- Web = TextDrawCreate(495.000000, 10.000000, "");
- TextDrawBackgroundColor(Web, 255);
- TextDrawFont(Web, 1);
- TextDrawLetterSize(Web, 0.330000, 1.200000);
- TextDrawColor(Web, 10040319);
- TextDrawSetOutline(Web, 0);
- TextDrawSetProportional(Web, 1);
- TextDrawSetShadow(Web, 1);
- SetPlayerMapIcon(playerid,38, -1740.4957,30.1580,3.5547,51,BLUE);
- SetPlayerMapIcon(playerid,38, -1740.4957,30.1580,3.5547,51,BLUE);
- SetPlayerMapIcon(playerid,38, -1740.4957,30.1580,3.5547,51,BLUE);
- SetPlayerMapIcon(playerid,38, -1740.4957,30.1580,3.5547,51,BLUE);
- SetPlayerMapIcon(playerid,38, -1740.4957,30.1580,3.5547,51,BLUE);
- //=SHOP=========================================================================
- SetPlayerMapIcon(playerid,38, 211.7107,1809.0106,21.8672,51,0xFFFFFFFF);
- SetPlayerMapIcon(playerid,38, -137.4183,1116.5894,20.1966,51,0xFFFFFFFF);
- SetPlayerMapIcon(playerid,38, -379.2944,2241.4058,42.4683,51,0xFFFFFFFF);
- SetPlayerMapIcon(playerid,38, 346.9036,2463.4106,16.4766,51,0xFFFFFFFF);
- SetPlayerMapIcon(playerid,38, -227.5284,2708.7883,62.9843,51,0xFFFFFFFF);
- //==============================================================================
- CODTU = TextDrawCreate(2.000000, 437.000000, "chp-team.4fan.cz");
- TextDrawBackgroundColor(CODTU, 255);
- TextDrawFont(CODTU, 2);
- TextDrawLetterSize(CODTU, 0.330000, 1.000000);
- TextDrawColor(CODTU, 10040319);
- TextDrawSetOutline(CODTU, 0);
- TextDrawSetProportional(CODTU, 1);
- TextDrawSetShadow(CODTU, 1);
- TextDrawShowForPlayer(playerid, Web);
- TextDrawShowForPlayer(playerid, CODTU);
- Rang[playerid][0] = CreatePlayerTextDraw(playerid,422.000000, 403.000000, " ");
- PlayerTextDrawBackgroundColor(playerid,Rang[playerid][0], 0x00000033);
- PlayerTextDrawFont(playerid,Rang[playerid][0], 2);
- PlayerTextDrawLetterSize(playerid,Rang[playerid][0], 1.100000, 2.300001);
- PlayerTextDrawColor(playerid,Rang[playerid][0], -1);
- PlayerTextDrawSetOutline(playerid,Rang[playerid][0], 1);
- PlayerTextDrawSetProportional(playerid,Rang[playerid][0], 1);
- Rang[playerid][1] = CreatePlayerTextDraw(playerid,422.000000, 403.000000, "IIIIIIIIIIIIII");
- PlayerTextDrawBackgroundColor(playerid,Rang[playerid][1], 0x00000000);
- PlayerTextDrawFont(playerid,Rang[playerid][1], 2);
- PlayerTextDrawLetterSize(playerid,Rang[playerid][1], 1.100000, 2.300001);
- PlayerTextDrawColor(playerid,Rang[playerid][1], 0xFFFFFF33);
- PlayerTextDrawSetOutline(playerid,Rang[playerid][1], 1);
- PlayerTextDrawSetProportional(playerid,Rang[playerid][1], 1);
- Rang[playerid][2] = CreatePlayerTextDraw(playerid,445.000000, 430.000000, " ");
- PlayerTextDrawBackgroundColor(playerid,Rang[playerid][2], 255);
- PlayerTextDrawFont(playerid,Rang[playerid][2], 3);
- PlayerTextDrawLetterSize(playerid,Rang[playerid][2], 0.519999, 1.600000);
- PlayerTextDrawColor(playerid,Rang[playerid][2], 0xFFFF00AA);
- PlayerTextDrawSetOutline(playerid,Rang[playerid][2], 1);
- PlayerTextDrawSetProportional(playerid,Rang[playerid][2], 1);
- PlayerTextDrawSetSelectable(playerid,Rang[playerid][2], 0);
- PlayerTextDrawShow(playerid, Rang[playerid][0]);
- PlayerTextDrawShow(playerid, Rang[playerid][1]);
- PlayerTextDrawShow(playerid, Rang[playerid][2]);
- logged[playerid] = 0;
- new file[50];
- format(file,sizeof(file),"/hraci/%s.ini",PlayerName(playerid));
- if(!dini_Exists(file)){
- dini_Create(file);
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,"Registrace","Zadejte svoje heslo:","Registrovat","Zrušit");
- PlayAudioStreamForPlayer(playerid ,"http://gameright.eu/cod.mp3");
- }else{
- ShowPlayerDialog(playerid,2,DIALOG_STYLE_PASSWORD,"Přihlášení","Zadejte svoje heslo:","Prihlásit","Zrušit");
- PlayAudioStreamForPlayer(playerid ,"http://gameright.eu/cod.mp3");
- }
- new cesta[100];
- format(cesta, sizeof(cesta), "/hraci/%s.ini", PlayerName(playerid));
- SetPlayerMoney(playerid,dini_Int(cesta, "peníze"));
- SetPlayerScore(playerid,dini_Int(cesta, "score"));
- Alvl[playerid] = dini_Int(cesta,"admin");
- return 1;
- }
- stock SetPlayerStarRang(playerid)
- {
- new string[20];
- new ran = GetPlayerScore(playerid);
- format(string, sizeof (string), "%d", ran);
- if(ran>=0&&ran<=49)
- {
- PlayerTextDrawSetString(playerid,Rang[playerid][0], "I");
- PlayerTextDrawSetString(playerid,Rang[playerid][2], "Zacatecnik");
- GivePlayerWeapon(playerid, 4,1);
- GivePlayerWeapon(playerid, 16, 9999);
- GivePlayerWeapon(playerid, 22, 9999);
- GivePlayerWeapon(playerid, 25, 9999);
- }
- if(ran>=50&&ran<=99)
- {
- PlayerTextDrawSetString(playerid,Rang[playerid][0], "II");
- PlayerTextDrawSetString(playerid,Rang[playerid][2], "Strelec");
- GivePlayerWeapon(playerid, 4,1);
- GivePlayerWeapon(playerid, 16, 9999);
- GivePlayerWeapon(playerid, 23, 9999);
- GivePlayerWeapon(playerid, 26, 9999);
- }
- if(ran>=100&&ran<=449)
- {
- PlayerTextDrawSetString(playerid,Rang[playerid][0], "III");
- PlayerTextDrawSetString(playerid,Rang[playerid][2], "Bandita");
- GivePlayerWeapon(playerid, 4,1);
- GivePlayerWeapon(playerid, 16, 9999);
- GivePlayerWeapon(playerid, 24, 9999);
- GivePlayerWeapon(playerid, 26, 9999);
- GivePlayerWeapon(playerid, 29, 9999);
- }
- if(ran>=500&&ran<=999)
- {
- PlayerTextDrawSetString(playerid,Rang[playerid][0], "IIII");
- PlayerTextDrawSetString(playerid,Rang[playerid][2], "Zabijak");
- GivePlayerWeapon(playerid, 4,1);
- GivePlayerWeapon(playerid, 16, 9999);
- GivePlayerWeapon(playerid, 24, 9999);
- GivePlayerWeapon(playerid, 26, 9999);
- GivePlayerWeapon(playerid, 29, 9999);
- GivePlayerWeapon(playerid, 30, 9999);
- }
- if(ran>=1000&&ran<=1499)
- {
- PlayerTextDrawSetString(playerid,Rang[playerid][0], "IIIII");
- PlayerTextDrawSetString(playerid,Rang[playerid][2], "Gangster");
- GivePlayerWeapon(playerid, 4,1);
- GivePlayerWeapon(playerid, 16, 9999);
- GivePlayerWeapon(playerid, 24, 9999);
- GivePlayerWeapon(playerid, 26, 9999);
- GivePlayerWeapon(playerid, 29, 9999);
- GivePlayerWeapon(playerid, 31, 9999);
- }
- if(ran>=1500&&ran<=1999)
- {
- PlayerTextDrawSetString(playerid,Rang[playerid][0], "IIIIII");
- PlayerTextDrawSetString(playerid,Rang[playerid][2], "Hitman");
- GivePlayerWeapon(playerid, 4,1);
- GivePlayerWeapon(playerid, 16, 9999);
- GivePlayerWeapon(playerid, 24, 9999);
- GivePlayerWeapon(playerid, 26, 9999);
- GivePlayerWeapon(playerid, 29, 9999);
- GivePlayerWeapon(playerid, 31, 9999);
- GivePlayerWeapon(playerid, 34, 9999);
- }
- if(ran>=2000&&ran<=2999)
- {
- PlayerTextDrawSetString(playerid,Rang[playerid][0], "IIIIIII");
- PlayerTextDrawSetString(playerid,Rang[playerid][2], "ProHrac");
- GivePlayerWeapon(playerid, 4,1);
- GivePlayerWeapon(playerid, 16, 9999);
- GivePlayerWeapon(playerid, 24, 9999);
- GivePlayerWeapon(playerid, 26, 9999);
- GivePlayerWeapon(playerid, 29, 9999);
- GivePlayerWeapon(playerid, 31, 9999);
- GivePlayerWeapon(playerid, 34, 9999);
- GivePlayerMoney(playerid, 5000);
- }
- if(ran>=3000&&ran<=3999)
- {
- PlayerTextDrawSetString(playerid,Rang[playerid][0], "IIIIIIII");
- PlayerTextDrawSetString(playerid,Rang[playerid][2], "Kent");
- GivePlayerWeapon(playerid, 4,1);
- GivePlayerWeapon(playerid, 16, 9999);
- GivePlayerWeapon(playerid, 24, 9999);
- GivePlayerWeapon(playerid, 26, 9999);
- GivePlayerWeapon(playerid, 29, 9999);
- GivePlayerWeapon(playerid, 31, 9999);
- GivePlayerWeapon(playerid, 34, 9999);
- GivePlayerMoney(playerid, 10000);
- }
- if(ran>=4000&&ran<=4999)
- {
- PlayerTextDrawSetString(playerid,Rang[playerid][0], "IIIIIIIII");
- PlayerTextDrawSetString(playerid,Rang[playerid][2], "Silenec");
- GivePlayerWeapon(playerid, 4,1);
- GivePlayerWeapon(playerid, 16, 9999);
- GivePlayerWeapon(playerid, 24, 9999);
- GivePlayerWeapon(playerid, 26, 9999);
- GivePlayerWeapon(playerid, 29, 9999);
- GivePlayerWeapon(playerid, 31, 9999);
- GivePlayerWeapon(playerid, 34, 9999);
- GivePlayerMoney(playerid, 15000);
- }
- if(ran>=5000&&ran<=5999)
- {
- PlayerTextDrawSetString(playerid,Rang[playerid][0], "IIIIIIIIII");
- PlayerTextDrawSetString(playerid,Rang[playerid][2], "Baron");
- GivePlayerWeapon(playerid, 4,1);
- GivePlayerWeapon(playerid, 16, 9999);
- GivePlayerWeapon(playerid, 24, 9999);
- GivePlayerWeapon(playerid, 26, 9999);
- GivePlayerWeapon(playerid, 29, 9999);
- GivePlayerWeapon(playerid, 31, 9999);
- GivePlayerWeapon(playerid, 34, 9999);
- GivePlayerMoney(playerid, 20000);
- }
- if(ran>=6000&&ran<=6999)
- {
- PlayerTextDrawSetString(playerid,Rang[playerid][0], "IIIIIIIIIII");
- PlayerTextDrawSetString(playerid,Rang[playerid][2], "Maister");
- GivePlayerWeapon(playerid, 4,1);
- GivePlayerWeapon(playerid, 16, 9999);
- GivePlayerWeapon(playerid, 24, 9999);
- GivePlayerWeapon(playerid, 26, 9999);
- GivePlayerWeapon(playerid, 29, 9999);
- GivePlayerWeapon(playerid, 31, 9999);
- GivePlayerWeapon(playerid, 34, 9999);
- GivePlayerMoney(playerid, 25000);
- }
- if(ran>=7000&&ran<=7999)
- {
- PlayerTextDrawSetString(playerid,Rang[playerid][0], "IIIIIIIIIIII");
- PlayerTextDrawSetString(playerid,Rang[playerid][2], "Maniak");
- GivePlayerWeapon(playerid, 4,1);
- GivePlayerWeapon(playerid, 16, 9999);
- GivePlayerWeapon(playerid, 24, 9999);
- GivePlayerWeapon(playerid, 26, 9999);
- GivePlayerWeapon(playerid, 29, 9999);
- GivePlayerWeapon(playerid, 31, 9999);
- GivePlayerWeapon(playerid, 34, 9999);
- GivePlayerMoney(playerid, 30000);
- }
- if(ran>=8000&&ran<=9998)
- {
- PlayerTextDrawSetString(playerid,Rang[playerid][0], "IIIIIIIIIIIII");
- PlayerTextDrawSetString(playerid,Rang[playerid][2], "ProZabijak");
- GivePlayerWeapon(playerid, 4,1);
- GivePlayerWeapon(playerid, 16, 9999);
- GivePlayerWeapon(playerid, 24, 9999);
- GivePlayerWeapon(playerid, 26, 9999);
- GivePlayerWeapon(playerid, 29, 9999);
- GivePlayerWeapon(playerid, 31, 9999);
- GivePlayerWeapon(playerid, 34, 9999);
- GivePlayerMoney(playerid, 35000);
- }
- if(ran>= 9999)
- {
- PlayerTextDrawSetString(playerid,Rang[playerid][0], "IIIIIIIIIIIIII");
- PlayerTextDrawSetString(playerid,Rang[playerid][2], "Terminator");
- GivePlayerWeapon(playerid, 4,1);
- GivePlayerWeapon(playerid, 16, 9999);
- GivePlayerWeapon(playerid, 24, 9999);
- GivePlayerWeapon(playerid, 26, 9999);
- GivePlayerWeapon(playerid, 29, 9999);
- GivePlayerWeapon(playerid, 31, 9999);
- GivePlayerWeapon(playerid, 34, 9999);
- GivePlayerWeapon(playerid, 35, 9999);
- GivePlayerMoney(playerid, 40000);
- }
- }
- public muted(playerid)
- {
- if(GetPVarInt(playerid,"Muted") ==1)
- {
- SetPVarInt(playerid,"Muted",0);
- GameTextForPlayer(playerid,"~>~ Nyni muzes zase psat! ~<~",1000,2);
- }
- return true;
- }
- public Restart()
- {
- SendRconCommand("gmx");
- return true;
- }
- public Off()
- {
- SendRconCommand("exit");
- return true;
- }
- public odmrazit(playerid)
- {
- if(GetPVarInt(playerid,"zmrazeny")==1)
- {
- SetPVarInt(playerid,"zmrazeny",0);
- TogglePlayerControllable(playerid,1);
- GameTextForPlayer(playerid,"~>~ Odmrazen! ~<~",1000,2);
- }
- else return false;
- return true;
- }
- public acheat(playerid)
- {
- new Float:health;
- GetPlayerHealth(playerid,health);
- if(ZakazanaZbran(playerid))
- {
- new string[128];
- format(string,sizeof(string),"[{FF0000}ANTICHEAT{FFFFFF}] Hráč %s byl vykopnut za zakázanou zbraň",PlayerName(playerid));
- SCMTA(COLOR_WHITE,string);
- Kick(playerid);
- }
- else if(!ZakazanaZbran(playerid))
- {
- new string1[128];
- format(string1,sizeof(string1),"[{FF0000}ANTICHEAT{FFFFFF}][%s] Zakázaná Zbraň negativní",PlayerName(playerid));
- SCMTA(COLOR_WHITE,string1);
- }
- else if(health > 50.0)
- {
- new string2[128];
- format(string2,sizeof(string2),"[{FF0000}ANTICHEAT{FFFFFF}] Hráč %s byl vykopnut za GodMode",PlayerName(playerid));
- SCMTA(COLOR_WHITE,string2);
- Kick(playerid);
- }
- else if(health < 50.0)
- {
- new string1[128];
- format(string1,sizeof(string1),"[{FF0000}ANTICHEAT{FFFFFF}][%s] GodMode negativní",PlayerName(playerid));
- SCMTA(COLOR_WHITE,string1);
- }
- return true;
- }
- public Reklama() {
- switch(random(10)) {
- case 0: {
- SendClientMessageToAll(ORANGE, "TXT 1");
- }
- case 1: {
- SendClientMessageToAll(ORANGE, "TXT 2");
- }
- case 2: {
- SendClientMessageToAll(ORANGE, "TXT 3");
- }
- case 3: {
- SendClientMessageToAll(ORANGE, "TXT 4");
- }
- case 4: {
- SendClientMessageToAll(ORANGE, "TXT 5");
- }
- case 5: {
- SendClientMessageToAll(ORANGE, "TXT 6");
- }
- case 6: {
- SendClientMessageToAll(ORANGE, "TXT 7");
- }
- case 7: {
- SendClientMessageToAll(ORANGE, "TXT 8");
- }
- case 8: {
- SendClientMessageToAll(ORANGE, "TXT 9");
- }
- case 9: {
- SendClientMessageToAll(ORANGE, "TXT 10");
- }
- }
- return 1;
- }
- public OnGameModeExit()
- {
- TextDrawHideForAll(Textdraw0);
- TextDrawDestroy(Textdraw0);
- TextDrawHideForAll(Textdraw1);
- TextDrawDestroy(Textdraw1);
- TextDrawHideForAll(Textdraw2);
- TextDrawDestroy(Textdraw2);
- TextDrawHideForAll(Textdraw3);
- TextDrawDestroy(Textdraw3);
- TextDrawHideForAll(Textdraw4);
- TextDrawDestroy(Textdraw4);
- TextDrawHideForAll(Textdraw5);
- TextDrawDestroy(Textdraw5);
- TextDrawHideForAll(Textdraw6);
- TextDrawDestroy(Textdraw6);
- return 1;
- }
- public hostname(playerid)
- {
- #if Style == 1
- new Msg[128], var = random(4);
- switch (var)
- {
- case 0:
- {
- format(Msg, 200, "hostname www.web.sk");
- SendRconCommand(Msg);
- }
- case 1:
- {
- format(Msg, 200, "hostname Call of Duty");
- SendRconCommand(Msg);
- }
- case 2:
- {
- format(Msg, 200, "hostname www.web.sk");
- SendRconCommand(Msg);
- }
- case 3:
- {
- format(Msg, 200, "hostname Call of Duty");
- SendRconCommand(Msg);
- }
- }
- #endif
- #if Style == 2
- new Msg[128], var = random(4);
- switch (var)
- {
- case 0:
- {
- format(Msg, 200, "hostname www.web.sk");
- SendRconCommand(Msg);
- }
- case 1:
- {
- format(Msg, 200, "hostname Call of Duty");
- SendRconCommand(Msg);
- }
- case 2:
- {
- format(Msg, 200, "hostname www.web.sk");
- SendRconCommand(Msg);
- }
- case 3:
- {
- format(Msg, 200, "hostname Call of Duty");
- SendRconCommand(Msg);
- }
- }
- #endif
- #if Style == 3
- new Msg[128], var = random(4);
- switch (var)
- {
- case 0:
- {
- format(Msg, 200, "hostname www.web.sk");
- SendRconCommand(Msg);
- }
- case 1:
- {
- format(Msg, 200, "hostname Call of Duty");
- SendRconCommand(Msg);
- }
- case 2:
- {
- format(Msg, 200, "hostname www.web.sk");
- SendRconCommand(Msg);
- }
- case 3:
- {
- format(Msg, 200, "hostname Call of Duty");
- SendRconCommand(Msg);
- }
- }
- #endif
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement