Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /***************************************************/
- /* AvsT creer par Jaber */
- /* Fonder Par TheMarix */
- /************************************************/
- /* Les Includes */
- #include <a_samp>
- #include <ELC_AC_BASE>
- #include <zcmd>
- #include <a_mysql>
- #include <sscanf2>
- #include <streamer>
- /* Les Defines */
- // COLOR
- #define COLOR_GREY 0xAFAFAFAA
- #define G "{00FF00}"
- #define W "{FFFFFF}"
- #define LB "{00C0FF}"
- #define O "{FFAF00}"
- #define R "{F81414}"
- #define SRV "{AFE7FF}"
- #define GR "{C3C3C3}"
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_BLUE 0x0000BBAA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_LIME 0x10F441AA
- #define COLOR_MAGENTA 0xFF00FFFF
- #define COLOR_NAVY 0x000080AA
- #define COLOR_AQUA 0xF0F8FFAA
- #define COLOR_CRIMSON 0xDC143CAA
- #define COLOR_FLBLUE 0x6495EDAA
- #define COLOR_BISQUE 0xFFE4C4AA
- #define COLOR_BLACK 0x000000AA
- #define COLOR_CHARTREUSE 0x7FFF00AA
- #define COLOR_BROWN 0XA52A2AAA
- #define COLOR_CORAL 0xFF7F50AA
- #define COLOR_GOLD 0xB8860BAA
- #define COLOR_GREENYELLOW 0xADFF2FAA
- #define COLOR_INDIGO 0x4B00B0AA
- #define COLOR_IVORY 0xFFFF82AA
- #define COLOR_LAWNGREEN 0x7CFC00AA
- #define COLOR_SEAGREEN 0x20B2AAAA
- #define COLOR_LIMEGREEN 0x32CD32AA //<--- Dark lime
- #define COLOR_MIDNIGHTBLUE 0X191970AA
- #define COLOR_MAROON 0x800000AA
- #define COLOR_OLIVE 0x808000AA
- #define COLOR_ORANGERED 0xFF4500AA
- #define COLOR_PINK 0xFFC0CBAA // - Light light pink
- #define COLOR_SPRINGGREEN 0x00FF7FAA
- #define COLOR_TOMATO 0xFF6347AA // - Tomato >:/ sounds wrong lol... well... :P
- #define COLOR_YELLOWGREEN 0x9ACD32AA //- like military green
- #define COLOR_MEDIUMAQUA 0x83BFBFAA
- #define COLOR_MEDIUMMAGENTA 0x8B008BAA // dark magenta ^^
- // Mysql
- #define Function::%0(%1) forward%0(%1); public%0(%1)
- #define mysql_host "localhost"
- #define mysql_user "root"
- #define mysql_db "avst"
- #define mysql_pass ""
- new gQuery[2800], gString[4000];
- // *** Functii
- #define SPD ShowPlayerDialog
- #define SCM SendClientMessage
- #define TDSFP TextDrawShowForPlayer
- #define TDHFP TextDrawHideForPlayer
- stock bool:False = false;
- #define SCMF(%0,%1,%2,%3)\
- do{\
- gString[0] = EOS;\
- format(gString,256,(%2),%3);\
- SendClientMessage((%0),(%1),gString);\
- }\
- while( False )
- // *** Enums
- enum
- {
- THREAD_DIALOG_REGISTER,
- THREAD_DIALOG_LOGIN
- }
- enum PlayerData
- {
- ID,
- pKills,
- pDeaths,
- pMoney,
- pScore
- }
- new P_DATA[MAX_PLAYERS][PlayerData];
- new bool:Logged[MAX_PLAYERS];
- //****** Var Team **************
- new txd_class[MAX_PLAYERS];
- new gTeam[MAX_PLAYERS];
- #define SWAT 0
- #define TERO 1
- /* les variables textdraw */
- new Text:panel_co[15];
- new Text:class_dm_swat[12];
- new Text:class_dm_tero[12];
- new PlayerText:stats_td[11][MAX_PLAYERS];
- new PlayerText:achat_td[30][MAX_PLAYERS];
- // system achat
- new bool:casque[MAX_PLAYERS];
- // forward
- forward showtextdraw_co(playerid);
- forward textdraw_class(playerid, classid);
- forward showtextdraw_score(playerid);
- forward showtextdraw_global(playerid);
- forward showtextdraw_achat(playerid);
- forward hidetextdraw_co(playerid);
- forward hidetextdraw_class(playerid);
- forward hidetextdraw_score(playerid);
- forward hidetextdraw_global(playerid);
- forward hidetextdraw_achat(playerid);
- main()
- {
- }
- public OnGameModeInit()
- {
- //===============================MySql Connect==================================
- mysql_connect(mysql_host,mysql_user,mysql_db,mysql_pass);
- if(mysql_errno() != 0)
- {
- mysql_log(LOG_ALL);
- printf("[MySql]: Connexion a la base de donner echouer!");
- }
- else
- {
- printf("[MySql]: Connexion a la base de donner [%s] Etablie!", mysql_db);
- }
- while(mysql_errno() != 0)
- {
- printf("[MySql]: Connexion a la base de donner echouer!");
- }
- //==============================================================================
- //======================================Mapping Creer par matrix ================================
- CreateDynamicObject(10763, 221.77995, 1856.57617, 49.25062, 0.00000, 0.00000, 225.88553);
- CreateDynamicObject(16335, 190.76016, 1880.70056, 16.31192, 0.00000, 0.00000, 239.26747);
- CreateDynamicObject(8171, 263.12506, 2008.28491, 16.77568, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(8172, 303.15332, 1863.75818, 16.76795, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(8171, 303.14014, 2008.82312, 16.77568, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18850, 187.95132, 2081.91699, 17.86480, 0.00000, 0.00000, 39.13827);
- CreateDynamicObject(8613, 199.90395, 2065.61328, 26.51181, 0.00000, 0.00000, 37.20646);
- CreateDynamicObject(7153, 222.38617, 1996.22546, 11.90350, 0.00000, 0.00000, 358.72458);
- CreateDynamicObject(7153, 221.65134, 1941.81738, 12.31776, 0.00000, 0.00000, 358.72458);
- CreateDynamicObject(7153, 222.27318, 1968.93420, 12.10651, 0.00000, 0.00000, 358.72458);
- CreateDynamicObject(987, 263.83679, 1799.07263, 16.59401, 0.00000, 0.00000, 359.61612);
- CreateDynamicObject(987, 252.00681, 1799.12183, 16.59401, 0.00000, 0.00000, 359.61612);
- CreateDynamicObject(987, 240.06715, 1799.13098, 16.59401, 0.00000, 0.00000, 359.61612);
- CreateDynamicObject(987, 227.98721, 1798.98596, 16.59401, 0.00000, 0.00000, 359.61612);
- CreateDynamicObject(987, 216.00041, 1798.92847, 16.59401, 0.00000, 0.00000, 359.61612);
- CreateDynamicObject(987, 204.23412, 1799.00171, 16.59401, 0.00000, 0.00000, 359.61612);
- CreateDynamicObject(987, 192.34920, 1798.95032, 16.59401, 0.00000, 0.00000, 359.61612);
- CreateDynamicObject(987, 180.34875, 1798.74634, 16.59401, 0.00000, 0.00000, 359.61612);
- CreateDynamicObject(987, 168.51163, 1798.81055, 16.59401, 0.00000, 0.00000, 359.61612);
- CreateDynamicObject(987, 156.48923, 1798.91309, 16.59401, 0.00000, 0.00000, 359.61612);
- CreateDynamicObject(987, 144.43040, 1798.82092, 16.59401, 0.00000, 0.00000, 359.61612);
- CreateDynamicObject(3749, 134.92253, 1800.06787, 22.30175, 0.00000, 0.00000, 1.01490);
- CreateDynamicObject(3749, 119.17933, 1799.97595, 22.30175, 0.00000, 0.00000, 1.01490);
- CreateDynamicObject(987, 97.60999, 1799.61096, 16.59401, 0.00000, 0.00000, 359.61612);
- CreateDynamicObject(987, 85.59473, 1799.46643, 16.59401, 0.00000, 0.00000, 359.61612);
- CreateDynamicObject(987, 85.62743, 1811.83679, 16.59401, 0.00000, 0.00000, 269.02463);
- CreateDynamicObject(987, 85.95537, 1823.84265, 16.59401, 0.00000, 0.00000, 267.75635);
- CreateDynamicObject(987, 86.29622, 1836.02551, 16.59401, 0.00000, 0.00000, 267.75635);
- CreateDynamicObject(987, 86.74654, 1847.98450, 16.59401, 0.00000, 0.00000, 267.75635);
- CreateDynamicObject(987, 87.08340, 1859.96326, 16.59401, 0.00000, 0.00000, 267.75635);
- CreateDynamicObject(987, 87.28040, 1871.86426, 16.59401, 0.00000, 0.00000, 267.75635);
- CreateDynamicObject(987, 87.57729, 1883.84595, 16.59401, 0.00000, 0.00000, 267.75635);
- CreateDynamicObject(987, 87.87455, 1895.60730, 16.59401, 0.00000, 0.00000, 267.75635);
- CreateDynamicObject(987, 88.34470, 1907.47986, 16.59401, 0.00000, 0.00000, 267.75635);
- CreateDynamicObject(3749, 89.63348, 1920.49536, 22.49468, 0.00000, 0.00000, -89.64001);
- CreateDynamicObject(3749, 89.57059, 1936.09412, 22.49468, 0.00000, 0.00000, -89.64001);
- CreateDynamicObject(987, 88.27302, 1911.36353, 16.59401, 0.00000, 0.00000, 267.75635);
- CreateDynamicObject(987, 102.01011, 1957.33728, 16.59401, 0.00000, 0.00000, 176.37628);
- CreateDynamicObject(987, 88.27302, 1911.36353, 16.59401, 0.00000, 0.00000, 267.75635);
- CreateDynamicObject(987, 89.90389, 1957.77795, 16.59401, 0.00000, 0.00000, 267.75635);
- CreateDynamicObject(987, 114.12247, 1956.81897, 16.59401, 0.00000, 0.00000, 176.37628);
- CreateDynamicObject(987, 125.88321, 1956.25525, 16.59401, 0.00000, 0.00000, 176.37628);
- CreateDynamicObject(3749, 135.03142, 1942.60852, 24.14648, 0.00000, 0.00000, -0.96000);
- CreateDynamicObject(987, 125.85558, 1944.53076, 16.59401, 0.00000, 0.00000, 90.39616);
- CreateDynamicObject(987, 156.79042, 1943.46802, 16.59401, 0.00000, 0.00000, -181.70377);
- CreateDynamicObject(987, 168.61888, 1943.02148, 16.59401, 0.00000, 0.00000, -181.70377);
- CreateDynamicObject(987, 180.62640, 1942.76563, 16.59401, 0.00000, 0.00000, -181.70377);
- CreateDynamicObject(987, 189.05615, 1939.33777, 16.59401, 0.00000, 0.00000, -197.84329);
- CreateDynamicObject(987, 275.91714, 1799.00195, 16.59401, 0.00000, 0.00000, 449.85596);
- CreateDynamicObject(987, 275.89868, 1803.94385, 16.59401, 0.00000, 0.00000, 449.85596);
- CreateDynamicObject(987, 275.25064, 1826.93665, 16.59401, 0.00000, 0.00000, 449.85596);
- CreateDynamicObject(987, 275.11005, 1838.91870, 16.59401, 0.00000, 0.00000, 449.85596);
- CreateDynamicObject(987, 275.08966, 1850.84778, 16.59401, 0.00000, 0.00000, 449.85596);
- CreateDynamicObject(987, 275.28320, 1862.75891, 16.59401, 0.00000, 0.00000, 449.85596);
- CreateDynamicObject(987, 275.35837, 1874.69800, 16.59401, 0.00000, 0.00000, 449.85596);
- CreateDynamicObject(987, 275.36185, 1886.67322, 16.59401, 0.00000, 0.00000, 449.85596);
- CreateDynamicObject(987, 275.23615, 1898.64441, 16.59401, 0.00000, 0.00000, 449.85596);
- CreateDynamicObject(987, 275.35040, 1910.59338, 16.59401, 0.00000, 0.00000, 449.85596);
- CreateDynamicObject(987, 275.68652, 1922.42065, 16.59401, 0.00000, 0.00000, 449.85596);
- CreateDynamicObject(987, 275.63263, 1928.18616, 16.59401, 0.00000, 0.00000, 449.85596);
- CreateDynamicObject(987, 275.53793, 1939.07141, 16.59401, 0.00000, 0.00000, 539.67584);
- CreateDynamicObject(987, 263.60217, 1939.15955, 16.59401, 0.00000, 0.00000, 539.67584);
- CreateDynamicObject(987, 251.74722, 1939.17078, 16.59401, 0.00000, 0.00000, 539.67584);
- CreateDynamicObject(987, 239.76112, 1939.07471, 16.59401, 0.00000, 0.00000, 539.67584);
- CreateDynamicObject(987, 235.89012, 1939.15125, 16.59401, 0.00000, 0.00000, 539.67584);
- CreateDynamicObject(3749, 274.11597, 1821.15503, 22.49468, 0.00000, 0.00000, 270.88446);
- CreateDynamicObject(11556, 462.55450, 1987.74280, 51.38079, 0.00000, 0.00000, -101.27994);
- CreateDynamicObject(11556, 469.48236, 2041.52942, 51.38080, 0.00000, 0.00000, -101.27994);
- CreateDynamicObject(18850, 354.47937, 2028.06970, 10.51743, 0.00000, 0.00000, 2.73131);
- CreateDynamicObject(3279, 384.94662, 2077.13818, 16.56925, 0.00000, 0.00000, -89.70000);
- CreateDynamicObject(3279, 384.02261, 1892.38049, 16.56925, 0.00000, 0.00000, -179.04002);
- CreateDynamicObject(3279, 270.66351, 1804.48096, 16.56925, 0.00000, 0.00000, -271.91992);
- CreateDynamicObject(3279, 270.72794, 1873.94971, 16.56925, 0.00000, 0.00000, -542.21918);
- CreateDynamicObject(3279, 149.49252, 1807.26501, 16.59222, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3279, 92.93990, 1805.77087, 16.59222, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3279, 93.97038, 1904.78174, 16.59222, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3279, 95.95126, 1952.41528, 16.59222, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(10826, 354.27371, 2492.98315, 22.22869, 0.00000, 0.00000, -180.84000);
- CreateDynamicObject(10824, 356.77127, 2495.40063, 17.26507, 0.00000, 0.00000, -180.05997);
- CreateDynamicObject(10827, 480.94492, 2508.93262, 38.80756, 0.00000, 0.00000, -181.14009);
- CreateDynamicObject(8171, 355.98441, 2493.82007, 16.28293, 0.00000, 0.00000, -91.26000);
- CreateDynamicObject(8171, 361.26199, 2450.98413, 16.28030, 0.00000, 0.00000, -91.26000);
- CreateDynamicObject(3115, 275.80841, 2456.84814, 15.95464, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 275.62466, 2438.18433, 15.95464, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 276.07321, 2475.53125, 15.95464, 0.00000, 0.00000, -0.66000);
- CreateDynamicObject(3115, 271.47260, 2456.46729, 15.16635, -0.12000, 7.92000, -0.72000);
- CreateDynamicObject(3115, 276.22269, 2494.33032, 15.95464, 0.00000, 0.00000, -0.66000);
- CreateDynamicObject(3115, 276.40997, 2513.07935, 15.95464, 0.00000, 0.00000, -0.60000);
- CreateDynamicObject(3115, 276.22269, 2494.33032, 15.95464, 0.00000, 0.00000, -0.66000);
- CreateDynamicObject(3115, 276.48984, 2531.81079, 15.95464, 0.00000, 0.00000, -0.60000);
- CreateDynamicObject(3115, 276.85510, 2550.35327, 15.95464, 0.00000, 0.00000, -0.30000);
- CreateDynamicObject(3115, 256.10852, 2550.47437, 13.96770, 0.12000, -10.92000, -0.30000);
- CreateDynamicObject(3115, 255.90616, 2532.03809, 13.96770, 0.12000, -10.92000, -0.30000);
- CreateDynamicObject(3115, 255.68735, 2513.31714, 13.96770, 0.12000, -10.92000, -0.30000);
- CreateDynamicObject(3115, 255.42232, 2494.51294, 13.96770, 0.12000, -10.92000, -0.30000);
- CreateDynamicObject(3115, 255.28696, 2475.82080, 13.96770, 0.12000, -10.92000, -0.30000);
- CreateDynamicObject(3115, 255.07710, 2457.01050, 14.00339, 0.12000, -10.92000, -0.30000);
- CreateDynamicObject(3115, 254.86925, 2438.36426, 13.96770, 0.12000, -10.92000, -0.30000);
- CreateDynamicObject(8209, 337.18500, 2426.49902, 18.31312, 0.00000, 0.00000, -181.79996);
- CreateDynamicObject(8209, 382.34225, 2425.05420, 18.30144, 0.00000, 0.00000, -181.79996);
- CreateDynamicObject(8209, 251.84477, 2560.19263, 18.35572, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(8209, 345.74225, 2560.27466, 18.35572, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(8209, 375.84891, 2560.38013, 18.35572, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(8210, 200.78317, 2534.21558, 18.19691, 0.00000, 0.00000, 86.70000);
- CreateDynamicObject(8210, 195.26814, 2456.76172, 18.19691, 0.00000, 0.00000, 86.70000);
- CreateDynamicObject(8314, 191.17154, 2496.41211, 18.54284, 0.00000, 0.00000, 9.17999);
- CreateDynamicObject(8168, 191.53394, 2509.74780, 17.14485, 0.00000, 0.00000, 11.52000);
- CreateDynamicObject(8172, 369.55188, 2455.55347, 39.32350, 0.00000, 0.00000, -90.78001);
- CreateDynamicObject(8172, 369.99551, 2495.39819, 39.32350, 0.00000, 0.00000, -90.78001);
- CreateDynamicObject(8038, 336.83331, 2533.36865, 57.83809, 0.00000, 0.00000, -90.54000);
- CreateDynamicObject(3399, 258.74030, 2430.38306, 17.63275, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3399, 270.36139, 2430.38501, 22.29283, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3399, 276.14020, 2435.88770, 26.94104, 0.00000, 0.00000, 89.46001);
- CreateDynamicObject(3399, 276.16940, 2445.33374, 31.61695, 0.00000, 0.00000, 89.46001);
- CreateDynamicObject(3399, 276.30197, 2453.15161, 34.26277, 0.00000, 0.00000, 89.46001);
- CreateDynamicObject(3399, 280.03101, 2458.96533, 37.66861, 0.00000, 0.00000, -1.44000);
- CreateDynamicObject(3115, 250.63998, 2438.08545, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 250.92084, 2456.81519, 16.41890, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 251.12408, 2475.44727, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 251.34467, 2494.23950, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 251.48473, 2512.81128, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 251.80031, 2531.31421, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 230.88452, 2531.79443, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 209.96245, 2532.03149, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 230.57016, 2513.30811, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 209.71648, 2513.56787, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 230.32114, 2494.46973, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 209.50203, 2494.89282, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 189.56438, 2495.33765, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 189.92599, 2513.99585, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 189.99522, 2532.56152, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 188.00743, 2476.68555, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 209.21498, 2476.34814, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 230.05383, 2475.78687, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 229.82199, 2457.12183, 16.27341, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 208.88167, 2457.51221, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 208.26097, 2438.74170, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 187.46141, 2439.21436, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 187.76689, 2457.87183, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 251.48557, 2550.28735, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 230.27553, 2550.78247, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 209.18518, 2550.71729, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(16021, 243.60286, 2550.67432, 15.24437, 0.00000, 0.00000, -90.24001);
- CreateDynamicObject(3115, 253.66034, 2538.01392, 15.53859, 0.00000, 0.00000, -0.36000);
- CreateDynamicObject(3115, 253.81966, 2547.70288, 15.53859, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 232.61682, 2537.98047, 15.53859, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(3115, 211.69066, 2538.19312, 15.53859, 0.00000, 0.00000, -0.06000);
- CreateDynamicObject(3115, 211.72798, 2550.96631, 15.53859, 0.00000, 0.00000, -0.06000);
- CreateDynamicObject(3115, 232.53716, 2550.75684, 15.53859, 0.00000, 0.00000, -0.06000);
- CreateDynamicObject(3115, 253.53304, 2550.68530, 15.53859, 0.00000, 0.00000, -0.06000);
- CreateDynamicObject(3115, 229.58018, 2438.58276, 16.27341, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 250.72839, 2438.35767, 16.41890, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 271.22736, 2437.70068, 15.16635, -0.12000, 7.92000, -0.72000);
- CreateDynamicObject(3115, 250.92084, 2456.81519, 15.97277, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 229.82199, 2457.12183, 15.80626, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 229.58018, 2438.58276, 15.64645, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(8171, 355.09094, 2457.51270, 16.28293, 0.00000, 0.00000, -91.26000);
- CreateDynamicObject(8171, 356.93771, 2529.97339, 16.28293, 0.00000, 0.00000, -91.26000);
- CreateDynamicObject(3115, 275.80841, 2456.84814, 15.95464, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 275.62466, 2438.18433, 15.95464, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 276.07321, 2475.53125, 15.95464, 0.00000, 0.00000, -0.66000);
- CreateDynamicObject(3115, 276.22269, 2494.33032, 15.95464, 0.00000, 0.00000, -0.66000);
- CreateDynamicObject(3115, 276.40997, 2513.07935, 15.95464, 0.00000, 0.00000, -0.60000);
- CreateDynamicObject(3115, 276.22269, 2494.33032, 15.95464, 0.00000, 0.00000, -0.66000);
- CreateDynamicObject(3115, 276.48984, 2531.81079, 15.95464, 0.00000, 0.00000, -0.60000);
- CreateDynamicObject(3115, 276.85510, 2550.35327, 15.95464, 0.00000, 0.00000, -0.30000);
- CreateDynamicObject(3115, 256.10852, 2550.47437, 13.96770, 0.12000, -10.92000, -0.30000);
- CreateDynamicObject(3115, 255.90616, 2532.03809, 13.96770, 0.12000, -10.92000, -0.30000);
- CreateDynamicObject(3115, 255.68735, 2513.31714, 13.96770, 0.12000, -10.92000, -0.30000);
- CreateDynamicObject(3115, 255.42232, 2494.51294, 13.96770, 0.12000, -10.92000, -0.30000);
- CreateDynamicObject(3115, 255.28696, 2475.82080, 13.96770, 0.12000, -10.92000, -0.30000);
- CreateDynamicObject(3115, 255.07710, 2457.01050, 14.00339, 0.12000, -10.92000, -0.30000);
- CreateDynamicObject(3115, 254.86925, 2438.36426, 13.96770, 0.12000, -10.92000, -0.30000);
- CreateDynamicObject(8209, 243.72708, 2429.41919, 18.34870, 0.00000, 0.00000, -181.79996);
- CreateDynamicObject(8209, 337.18500, 2426.49902, 18.31312, 0.00000, 0.00000, -181.79996);
- CreateDynamicObject(8209, 382.34225, 2425.05420, 18.30144, 0.00000, 0.00000, -181.79996);
- CreateDynamicObject(8209, 251.84477, 2560.19263, 18.35572, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(8209, 345.74225, 2560.27466, 18.35572, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(8209, 375.84891, 2560.38013, 18.35572, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(8210, 200.78317, 2534.21558, 18.19691, 0.00000, 0.00000, 86.70000);
- CreateDynamicObject(8210, 195.26814, 2456.76172, 18.19691, 0.00000, 0.00000, 86.70000);
- CreateDynamicObject(3399, 258.74030, 2430.38306, 17.63275, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3399, 270.36139, 2430.38501, 22.29283, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3399, 276.14020, 2435.88770, 26.94104, 0.00000, 0.00000, 89.46001);
- CreateDynamicObject(3399, 276.16940, 2445.33374, 31.61695, 0.00000, 0.00000, 89.46001);
- CreateDynamicObject(3399, 276.30197, 2453.15161, 34.26277, 0.00000, 0.00000, 89.46001);
- CreateDynamicObject(3399, 280.03101, 2458.96533, 37.66861, 0.00000, 0.00000, -1.44000);
- CreateDynamicObject(3115, 250.63998, 2438.08545, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 250.92084, 2456.81519, 16.41890, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 251.34467, 2494.23950, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 251.48473, 2512.81128, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 251.80031, 2531.31421, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 230.88452, 2531.79443, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 209.96245, 2532.03149, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 230.57016, 2513.30811, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 209.71648, 2513.56787, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 209.50203, 2494.89282, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 189.56438, 2495.33765, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 189.92599, 2513.99585, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 189.99522, 2532.56152, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 188.00743, 2476.68555, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 209.21498, 2476.34814, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 230.05383, 2475.78687, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 229.82199, 2457.12183, 16.27341, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 208.88167, 2457.51221, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 208.26097, 2438.74170, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 187.46141, 2439.21436, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 187.76689, 2457.87183, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 251.48557, 2550.28735, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 230.27553, 2550.78247, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 209.18518, 2550.71729, 15.31483, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(16021, 243.60286, 2550.67432, 15.24437, 0.00000, 0.00000, -90.24001);
- CreateDynamicObject(3115, 253.66034, 2538.01392, 15.53859, 0.00000, 0.00000, -0.36000);
- CreateDynamicObject(3115, 253.81966, 2547.70288, 15.53859, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 232.61682, 2537.98047, 15.53859, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(3115, 211.69066, 2538.19312, 15.53859, 0.00000, 0.00000, -0.06000);
- CreateDynamicObject(3115, 211.72798, 2550.96631, 15.53859, 0.00000, 0.00000, -0.06000);
- CreateDynamicObject(3115, 232.53716, 2550.75684, 15.53859, 0.00000, 0.00000, -0.06000);
- CreateDynamicObject(3115, 253.53304, 2550.68530, 15.53859, 0.00000, 0.00000, -0.06000);
- CreateDynamicObject(3115, 229.58018, 2438.58276, 16.27341, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 250.72839, 2438.35767, 16.41890, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 271.22736, 2437.70068, 15.16635, -0.12000, 7.92000, -0.72000);
- CreateDynamicObject(3115, 250.92084, 2456.81519, 15.97277, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 229.82199, 2457.12183, 15.80626, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(3115, 229.58018, 2438.58276, 15.64645, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(969, 267.41010, 1879.52295, 16.62220, -90.00000, 6.00000, 95.08000);
- CreateDynamicObject(969, 270.55011, 1879.50293, 16.62220, -90.00000, 6.00000, 95.08000);
- CreateDynamicObject(969, 273.65009, 1879.50293, 16.62220, -90.00000, 6.00000, 95.08000);
- CreateDynamicObject(16121, 353.71420, 1805.72485, 13.89060, 356.85840, 0.00000, -65.14160);
- CreateDynamicObject(16775, 376.08969, 2475.33423, 19.51563, 3.14159, 0.00000, 0.00000);
- CreateDynamicObject(1491, 411.65518, 2510.01855, 16.17790, 0.00000, 0.00000, 0.00000);
- //==============================================================================
- SetGameModeText("AvsT Project");
- AddPlayerClass(285,-377.2719,2242.3125,42.6185,100.8263,0,0,0,0,0,0);
- AddPlayerClass(112,213.8508,1868.0325,13.1406,359.6966,0,0,0,0,0,0);
- DisableInteriorEnterExits();
- SetTimer("SavePlayerData",600000,false); // odata la 10 minute se salveaza conturile
- //=============================== Textdraw ==================================
- panel_co[1] = TextDrawCreate(-4.099998, -0.224000, "LD_SPAC:white");
- TextDrawLetterSize(panel_co[1], 0.000000, 0.000000);
- TextDrawTextSize(panel_co[1], 651.549804, 99.343994);
- TextDrawAlignment(panel_co[1], 1);
- TextDrawColor(panel_co[1], 255);
- TextDrawSetShadow(panel_co[1], 0);
- TextDrawSetOutline(panel_co[1], 0);
- TextDrawFont(panel_co[1], 4);
- panel_co[2]= TextDrawCreate(-5.449999, 99.063995, "LD_SPAC:white");
- TextDrawLetterSize(panel_co[2], 0.000000, 0.000000);
- TextDrawTextSize(panel_co[2], 646.149658, -5.487998);
- TextDrawAlignment(panel_co[2], 1);
- TextDrawColor(panel_co[2], 65535);
- TextDrawSetShadow(panel_co[2], 0);
- TextDrawSetOutline(panel_co[2], 0);
- TextDrawFont(panel_co[2], 4);
- panel_co[3] = TextDrawCreate(253.450012, 11.199988, "A");
- TextDrawLetterSize(panel_co[3], 1.107499, 5.458395);
- TextDrawAlignment(panel_co[3], 1);
- TextDrawColor(panel_co[3], 65535);
- TextDrawUseBox(panel_co[3], true);
- TextDrawBoxColor(panel_co[3], 0);
- TextDrawSetShadow(panel_co[3], 0);
- TextDrawSetOutline(panel_co[3], 1);
- TextDrawBackgroundColor(panel_co[3], 51);
- TextDrawFont(panel_co[3], 0);
- TextDrawSetProportional(panel_co[3], 1);
- panel_co[4] = TextDrawCreate(284.500213, 40.040000, "Vs");
- TextDrawLetterSize(panel_co[4], 0.560500, 2.311198);
- TextDrawAlignment(panel_co[4], 1);
- TextDrawColor(panel_co[4], -1);
- TextDrawSetShadow(panel_co[4], 0);
- TextDrawSetOutline(panel_co[4], 1);
- TextDrawBackgroundColor(panel_co[4], 51);
- TextDrawFont(panel_co[4], 3);
- TextDrawSetProportional(panel_co[4], 1);
- panel_co[5] = TextDrawCreate(302.999969, 14.047986, "T");
- TextDrawLetterSize(panel_co[5], 1.107499, 5.458395);
- TextDrawAlignment(panel_co[5], 1);
- TextDrawColor(panel_co[5], -16776961);
- TextDrawUseBox(panel_co[5], true);
- TextDrawBoxColor(panel_co[5], 0);
- TextDrawSetShadow(panel_co[5], 0);
- TextDrawSetOutline(panel_co[5], 1);
- TextDrawBackgroundColor(panel_co[5], 51);
- TextDrawFont(panel_co[5], 0);
- TextDrawSetProportional(panel_co[5], 1);
- panel_co[6] = TextDrawCreate(511.049957, 133.436004, "usebox");
- TextDrawLetterSize(panel_co[6], 0.000000, 24.758886);
- TextDrawTextSize(panel_co[6], 125.049995, 0.000000);
- TextDrawAlignment(panel_co[6], 1);
- TextDrawColor(panel_co[6], 0);
- TextDrawUseBox(panel_co[6], true);
- TextDrawBoxColor(panel_co[6], 102);
- TextDrawSetShadow(panel_co[6], 0);
- TextDrawSetOutline(panel_co[6], 0);
- TextDrawFont(panel_co[6], 0);
- panel_co[7] = TextDrawCreate(127.250007, 130.983993, "LD_SPAC:white");
- TextDrawLetterSize(panel_co[7], 0.000000, 0.000000);
- TextDrawTextSize(panel_co[7], 382.000000, 6.160017);
- TextDrawAlignment(panel_co[7], 1);
- TextDrawColor(panel_co[7], COLOR_BLUE);
- TextDrawSetShadow(panel_co[7], 0);
- TextDrawSetOutline(panel_co[7], 0);
- TextDrawFont(panel_co[7], 4);
- panel_co[8] = TextDrawCreate(126.749923, 351.839935, "LD_SPAC:white");
- TextDrawLetterSize(panel_co[8], 0.000000, 0.000000);
- TextDrawTextSize(panel_co[8], 382.000000, 6.160017);
- TextDrawAlignment(panel_co[8], 1);
- TextDrawColor(panel_co[8], COLOR_BLUE);
- TextDrawSetShadow(panel_co[8], 0);
- TextDrawSetOutline(panel_co[8], 0);
- TextDrawFont(panel_co[8], 4);
- panel_co[9] = TextDrawCreate(126.749900, 175.879882, "LD_SPAC:white");
- TextDrawLetterSize(panel_co[9], 0.000000, 0.000000);
- TextDrawTextSize(panel_co[9], 382.000000, 6.160017);
- TextDrawAlignment(panel_co[9], 1);
- TextDrawColor(panel_co[9], COLOR_BLUE);
- TextDrawSetShadow(panel_co[9], 0);
- TextDrawSetOutline(panel_co[9], 0);
- TextDrawFont(panel_co[9], 4);
- panel_co[10] = TextDrawCreate(252.650024, 139.608062, "Connexion");
- TextDrawLetterSize(panel_co[10], 0.794498, 3.470396);
- TextDrawAlignment(panel_co[10], 1);
- TextDrawColor(panel_co[10], -1);
- TextDrawUseBox(panel_co[10], true);
- TextDrawBoxColor(panel_co[10], 0);
- TextDrawSetShadow(panel_co[10], 0);
- TextDrawSetOutline(panel_co[10], 1);
- TextDrawBackgroundColor(panel_co[10], 51);
- TextDrawFont(panel_co[10], 3);
- TextDrawSetProportional(panel_co[10], 1);
- panel_co[11] = TextDrawCreate(270.149993, 210.223999, "LD_SPAC:white");
- TextDrawLetterSize(panel_co[11], 0.000000, 0.000000);
- TextDrawTextSize(panel_co[11], 94.000000, 22.399993);
- TextDrawAlignment(panel_co[11], 1);
- TextDrawColor(panel_co[11], 65535);
- TextDrawSetShadow(panel_co[11], 0);
- TextDrawSetOutline(panel_co[11], 0);
- TextDrawFont(panel_co[11], 4);
- TextDrawSetSelectable(panel_co[11], true);
- panel_co[12] = TextDrawCreate(278.400207, 213.472045, "Connexion");
- TextDrawLetterSize(panel_co[12], 0.449999, 1.600000);
- TextDrawAlignment(panel_co[12], 1);
- TextDrawColor(panel_co[12], -1);
- TextDrawSetShadow(panel_co[12], 0);
- TextDrawSetOutline(panel_co[12], 1);
- TextDrawBackgroundColor(panel_co[12], 51);
- TextDrawFont(panel_co[12], 3);
- TextDrawSetProportional(panel_co[12], 1);
- panel_co[13] = TextDrawCreate(270.200012, 287.047943, "LD_SPAC:white");
- TextDrawLetterSize(panel_co[13], 0.000000, 0.000000);
- TextDrawTextSize(panel_co[13], 94.000000, 22.399993);
- TextDrawAlignment(panel_co[13], 1);
- TextDrawColor(panel_co[13], -16776961);
- TextDrawSetShadow(panel_co[13], 0);
- TextDrawSetOutline(panel_co[13], 0);
- TextDrawFont(panel_co[13], 4);
- TextDrawSetSelectable(panel_co[13], true);
- panel_co[14] = TextDrawCreate(274.300292, 290.576049, "Inscription");
- TextDrawLetterSize(panel_co[14], 0.449999, 1.600000);
- TextDrawAlignment(panel_co[14], 1);
- TextDrawColor(panel_co[14], -1);
- TextDrawSetShadow(panel_co[14], 0);
- TextDrawSetOutline(panel_co[14], 1);
- TextDrawBackgroundColor(panel_co[14], 51);
- TextDrawFont(panel_co[14], 3);
- TextDrawSetProportional(panel_co[14], 1);
- /* ================ Class TextDraw =================*/
- class_dm_swat[1] = TextDrawCreate(260.349853, 55.048023, "SWAT");
- TextDrawLetterSize(class_dm_swat[1], 1.038000, 4.909598);
- TextDrawTextSize(class_dm_swat[1], 42.500000, 34.720001);
- TextDrawAlignment(class_dm_swat[1], 1);
- TextDrawColor(class_dm_swat[1], COLOR_BLUE);
- TextDrawUseBox(class_dm_swat[1], true);
- TextDrawBoxColor(class_dm_swat[1], 0);
- TextDrawSetShadow(class_dm_swat[1], 0);
- TextDrawSetOutline(class_dm_swat[1], 1);
- TextDrawBackgroundColor(class_dm_swat[1], 51);
- TextDrawFont(class_dm_swat[1], 2);
- TextDrawSetProportional(class_dm_swat[1], 1);
- class_dm_swat[2]= TextDrawCreate(617.400024, 144.524047, "usebox");
- TextDrawLetterSize(class_dm_swat[2], 0.000000, 21.772224);
- TextDrawTextSize(class_dm_swat[2], 408.400085, 0.000000);
- TextDrawAlignment(class_dm_swat[2], 1);
- TextDrawColor(class_dm_swat[2], 0);
- TextDrawUseBox(class_dm_swat[2], true);
- TextDrawBoxColor(class_dm_swat[2], 102);
- TextDrawSetShadow(class_dm_swat[2], 0);
- TextDrawSetOutline(class_dm_swat[2], 0);
- TextDrawFont(class_dm_swat[2], 0);
- class_dm_swat[3] = TextDrawCreate(618.049743, 185.571945, "usebox");
- TextDrawLetterSize(class_dm_swat[3], 0.000000, 0.221667);
- TextDrawTextSize(class_dm_swat[3], 409.199920, 0.000000);
- TextDrawAlignment(class_dm_swat[3], 1);
- TextDrawColor(class_dm_swat[3], 0);
- TextDrawUseBox(class_dm_swat[3], true);
- TextDrawBoxColor(class_dm_swat[3], -16776961);
- TextDrawSetShadow(class_dm_swat[3], 0);
- TextDrawSetOutline(class_dm_swat[3], 0);
- TextDrawFont(class_dm_swat[3], 0);
- class_dm_swat[4] = TextDrawCreate(617.299987, 144.908065, "usebox");
- TextDrawLetterSize(class_dm_swat[4], 0.000000, 0.236667);
- TextDrawTextSize(class_dm_swat[4], 408.449951, 0.000000);
- TextDrawAlignment(class_dm_swat[4], 1);
- TextDrawColor(class_dm_swat[4], 0);
- TextDrawUseBox(class_dm_swat[4], true);
- TextDrawBoxColor(class_dm_swat[4], -16776961);
- TextDrawSetShadow(class_dm_swat[4], 0);
- TextDrawSetOutline(class_dm_swat[4], 0);
- TextDrawFont(class_dm_swat[4], 0);
- class_dm_swat[5] = TextDrawCreate(617.349975, 338.156005, "usebox");
- TextDrawLetterSize(class_dm_swat[5], 0.000000, 0.196667);
- TextDrawTextSize(class_dm_swat[5], 408.799743, 0.000000);
- TextDrawAlignment(class_dm_swat[5], 1);
- TextDrawColor(class_dm_swat[5], 0);
- TextDrawUseBox(class_dm_swat[5], true);
- TextDrawBoxColor(class_dm_swat[5], -16776961);
- TextDrawSetShadow(class_dm_swat[5], 0);
- TextDrawSetOutline(class_dm_swat[5], 0);
- TextDrawFont(class_dm_swat[5], 0);
- class_dm_swat[6] = TextDrawCreate(429.050109, 146.608032, "Description");
- TextDrawLetterSize(class_dm_swat[6], 0.640500, 3.795199);
- TextDrawAlignment(class_dm_swat[6], 1);
- TextDrawColor(class_dm_swat[6], -1);
- TextDrawUseBox(class_dm_swat[6], true);
- TextDrawBoxColor(class_dm_swat[6], 0);
- TextDrawSetShadow(class_dm_swat[6], 0);
- TextDrawSetOutline(class_dm_swat[6], 1);
- TextDrawBackgroundColor(class_dm_swat[6], 51);
- TextDrawFont(class_dm_swat[6], 2);
- TextDrawSetProportional(class_dm_swat[6], 1);
- class_dm_swat[7] = TextDrawCreate(414.799896, 195.888031, "Rejoignez_les_gentilles_pour");
- TextDrawLetterSize(class_dm_swat[7], 0.414550, 1.518239);
- TextDrawAlignment(class_dm_swat[7], 1);
- TextDrawColor(class_dm_swat[7], -1);
- TextDrawUseBox(class_dm_swat[7], true);
- TextDrawBoxColor(class_dm_swat[7], 0);
- TextDrawSetShadow(class_dm_swat[7], 0);
- TextDrawSetOutline(class_dm_swat[7], 1);
- TextDrawBackgroundColor(class_dm_swat[7], 51);
- TextDrawFont(class_dm_swat[7], 1);
- TextDrawSetProportional(class_dm_swat[7], 1);
- class_dm_swat[8] = TextDrawCreate(415.849914, 217.383987, "combatre_les_terroristes_et");
- TextDrawLetterSize(class_dm_swat[8], 0.414550, 1.518239);
- TextDrawAlignment(class_dm_swat[8], 1);
- TextDrawColor(class_dm_swat[8], -1);
- TextDrawUseBox(class_dm_swat[8], true);
- TextDrawBoxColor(class_dm_swat[8], 0);
- TextDrawSetShadow(class_dm_swat[8], 0);
- TextDrawSetOutline(class_dm_swat[8], 1);
- TextDrawBackgroundColor(class_dm_swat[8], 51);
- TextDrawFont(class_dm_swat[8], 1);
- TextDrawSetProportional(class_dm_swat[8], 1);
- class_dm_swat[9] = TextDrawCreate(416.449981, 238.935958, "proteger_votre_pays_et_les");
- TextDrawLetterSize(class_dm_swat[9], 0.414550, 1.518239);
- TextDrawAlignment(class_dm_swat[9], 1);
- TextDrawColor(class_dm_swat[9], -1);
- TextDrawUseBox(class_dm_swat[9], true);
- TextDrawBoxColor(class_dm_swat[9], 0);
- TextDrawSetShadow(class_dm_swat[9], 0);
- TextDrawSetOutline(class_dm_swat[9], 1);
- TextDrawBackgroundColor(class_dm_swat[9], 51);
- TextDrawFont(class_dm_swat[9], 1);
- TextDrawSetProportional(class_dm_swat[9], 1);
- class_dm_swat[10] = TextDrawCreate(416.849914, 262.735961, "citoyens_du_danger_!");
- TextDrawLetterSize(class_dm_swat[10], 0.414550, 1.518239);
- TextDrawAlignment(class_dm_swat[10], 1);
- TextDrawColor(class_dm_swat[10], -1);
- TextDrawUseBox(class_dm_swat[10], true);
- TextDrawBoxColor(class_dm_swat[10], 0);
- TextDrawSetShadow(class_dm_swat[10], 0);
- TextDrawSetOutline(class_dm_swat[10], 1);
- TextDrawBackgroundColor(class_dm_swat[10], 51);
- TextDrawFont(class_dm_swat[10], 1);
- TextDrawSetProportional(class_dm_swat[10], 1);
- class_dm_swat[11] = TextDrawCreate(521.450012, 303.128021, "Swat-Team");
- TextDrawLetterSize(class_dm_swat[11], 0.449999, 1.600000);
- TextDrawAlignment(class_dm_swat[11], 1);
- TextDrawColor(class_dm_swat[11], 65535);
- TextDrawSetShadow(class_dm_swat[11], 0);
- TextDrawSetOutline(class_dm_swat[11], 1);
- TextDrawBackgroundColor(class_dm_swat[11], 51);
- TextDrawFont(class_dm_swat[11], 1);
- TextDrawSetProportional(class_dm_swat[11], 1);
- /*=========================== Textdraw Teroriste class =====================*/
- class_dm_tero[1] = TextDrawCreate(208.349868, 44.744060, "TERORISTE");
- TextDrawLetterSize(class_dm_tero[1], 1.038000, 4.909598);
- TextDrawTextSize(class_dm_tero[1], 42.500000, 34.720001);
- TextDrawAlignment(class_dm_tero[1], 1);
- TextDrawColor(class_dm_tero[1], COLOR_RED);
- TextDrawUseBox(class_dm_tero[1], true);
- TextDrawBoxColor(class_dm_tero[1], 0);
- TextDrawSetShadow(class_dm_tero[1], 0);
- TextDrawSetOutline(class_dm_tero[1], 1);
- TextDrawBackgroundColor(class_dm_tero[1], 51);
- TextDrawFont(class_dm_tero[1], 2);
- TextDrawSetProportional(class_dm_tero[1], 1);
- class_dm_tero[2]= TextDrawCreate(617.400024, 144.524047, "usebox");
- TextDrawLetterSize(class_dm_tero[2], 0.000000, 21.772224);
- TextDrawTextSize(class_dm_tero[2], 408.400085, 0.000000);
- TextDrawAlignment(class_dm_tero[2], 1);
- TextDrawColor(class_dm_tero[2], 0);
- TextDrawUseBox(class_dm_tero[2], true);
- TextDrawBoxColor(class_dm_tero[2], 102);
- TextDrawSetShadow(class_dm_tero[2], 0);
- TextDrawSetOutline(class_dm_tero[2], 0);
- TextDrawFont(class_dm_tero[2], 0);
- class_dm_tero[3] = TextDrawCreate(618.049743, 185.571945, "usebox");
- TextDrawLetterSize(class_dm_tero[3], 0.000000, 0.221667);
- TextDrawTextSize(class_dm_tero[3], 409.199920, 0.000000);
- TextDrawAlignment(class_dm_tero[3], 1);
- TextDrawColor(class_dm_tero[3], 0);
- TextDrawUseBox(class_dm_tero[3], true);
- TextDrawBoxColor(class_dm_tero[3], -16776961);
- TextDrawSetShadow(class_dm_tero[3], 0);
- TextDrawSetOutline(class_dm_tero[3], 0);
- TextDrawFont(class_dm_tero[3], 0);
- class_dm_tero[4] = TextDrawCreate(617.299987, 144.908065, "usebox");
- TextDrawLetterSize(class_dm_tero[4], 0.000000, 0.236667);
- TextDrawTextSize(class_dm_tero[4], 408.449951, 0.000000);
- TextDrawAlignment(class_dm_tero[4], 1);
- TextDrawColor(class_dm_tero[4], 0);
- TextDrawUseBox(class_dm_tero[4], true);
- TextDrawBoxColor(class_dm_tero[4], -16776961);
- TextDrawSetShadow(class_dm_tero[4], 0);
- TextDrawSetOutline(class_dm_tero[4], 0);
- TextDrawFont(class_dm_tero[4], 0);
- class_dm_tero[5] = TextDrawCreate(617.349975, 338.156005, "usebox");
- TextDrawLetterSize(class_dm_tero[5], 0.000000, 0.196667);
- TextDrawTextSize(class_dm_tero[5], 408.799743, 0.000000);
- TextDrawAlignment(class_dm_tero[5], 1);
- TextDrawColor(class_dm_tero[5], 0);
- TextDrawUseBox(class_dm_tero[5], true);
- TextDrawBoxColor(class_dm_tero[5], -16776961);
- TextDrawSetShadow(class_dm_tero[5], 0);
- TextDrawSetOutline(class_dm_tero[5], 0);
- TextDrawFont(class_dm_tero[5], 0);
- class_dm_tero[6] = TextDrawCreate(429.050109, 146.608032, "Description");
- TextDrawLetterSize(class_dm_tero[6], 0.640500, 3.795199);
- TextDrawAlignment(class_dm_tero[6], 1);
- TextDrawColor(class_dm_tero[6], -1);
- TextDrawUseBox(class_dm_tero[6], true);
- TextDrawBoxColor(class_dm_tero[6], 0);
- TextDrawSetShadow(class_dm_tero[6], 0);
- TextDrawSetOutline(class_dm_tero[6], 1);
- TextDrawBackgroundColor(class_dm_tero[6], 51);
- TextDrawFont(class_dm_tero[6], 2);
- TextDrawSetProportional(class_dm_tero[6], 1);
- class_dm_tero[7] = TextDrawCreate(414.799896, 195.888031, "Rejoignez_le_coter_obscure");
- TextDrawLetterSize(class_dm_tero[7], 0.414550, 1.518239);
- TextDrawAlignment(class_dm_tero[7], 1);
- TextDrawColor(class_dm_tero[7], -1);
- TextDrawUseBox(class_dm_tero[7], true);
- TextDrawBoxColor(class_dm_tero[7], 0);
- TextDrawSetShadow(class_dm_tero[7], 0);
- TextDrawSetOutline(class_dm_tero[7], 1);
- TextDrawBackgroundColor(class_dm_tero[7], 51);
- TextDrawFont(class_dm_tero[7], 1);
- TextDrawSetProportional(class_dm_tero[7], 1);
- class_dm_tero[8] = TextDrawCreate(415.849914, 217.383987, "pour_vous_rebelez_contre");
- TextDrawLetterSize(class_dm_tero[8], 0.414550, 1.518239);
- TextDrawAlignment(class_dm_tero[8], 1);
- TextDrawColor(class_dm_tero[8], -1);
- TextDrawUseBox(class_dm_tero[8], true);
- TextDrawBoxColor(class_dm_tero[8], 0);
- TextDrawSetShadow(class_dm_tero[8], 0);
- TextDrawSetOutline(class_dm_tero[8], 1);
- TextDrawBackgroundColor(class_dm_tero[8], 51);
- TextDrawFont(class_dm_tero[8], 1);
- TextDrawSetProportional(class_dm_tero[8], 1);
- class_dm_tero[9] = TextDrawCreate(416.449981, 238.935958, "les_americains_et_defendre");
- TextDrawLetterSize(class_dm_tero[9], 0.414550, 1.518239);
- TextDrawAlignment(class_dm_tero[9], 1);
- TextDrawColor(class_dm_tero[9], -1);
- TextDrawUseBox(class_dm_tero[9], true);
- TextDrawBoxColor(class_dm_tero[9], 0);
- TextDrawSetShadow(class_dm_tero[9], 0);
- TextDrawSetOutline(class_dm_tero[9], 1);
- TextDrawBackgroundColor(class_dm_tero[9], 51);
- TextDrawFont(class_dm_tero[9], 1);
- TextDrawSetProportional(class_dm_tero[9], 1);
- class_dm_tero[10] = TextDrawCreate(416.849914, 262.735961, "votre_honneur_!");
- TextDrawLetterSize(class_dm_tero[10], 0.414550, 1.518239);
- TextDrawAlignment(class_dm_tero[10], 1);
- TextDrawColor(class_dm_tero[10], -1);
- TextDrawUseBox(class_dm_tero[10], true);
- TextDrawBoxColor(class_dm_tero[10], 0);
- TextDrawSetShadow(class_dm_tero[10], 0);
- TextDrawSetOutline(class_dm_tero[10], 1);
- TextDrawBackgroundColor(class_dm_tero[10], 51);
- TextDrawFont(class_dm_tero[10], 1);
- TextDrawSetProportional(class_dm_tero[10], 1);
- class_dm_tero[11] = TextDrawCreate(521.450012, 303.128021, "TERO-Team");
- TextDrawLetterSize(class_dm_tero[11], 0.449999, 1.600000);
- TextDrawAlignment(class_dm_tero[11], 1);
- TextDrawColor(class_dm_tero[11], COLOR_RED);
- TextDrawSetShadow(class_dm_tero[11], 0);
- TextDrawSetOutline(class_dm_tero[11], 1);
- TextDrawBackgroundColor(class_dm_tero[11], 51);
- TextDrawFont(class_dm_tero[11], 1);
- TextDrawSetProportional(class_dm_tero[11], 1);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 219.4820,1822.7864,7.5271);
- SetPlayerCameraPos(playerid, 225.7349,1822.9067, 7.521);
- SetPlayerFacingAngle( playerid, 270);
- SetPlayerCameraLookAt(playerid, 219.4820,1822.7864,7.5271);
- ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.1, 1, 1, 1, 1, 1, 1);
- textdraw_class(playerid, classid);
- SetPlayerVirtualWorld(playerid, 3);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- showtextdraw_co(playerid);
- PlayAudioStreamForPlayer(playerid, "http://avstdm.cf/Test.mp3");
- TogglePlayerSpectating(playerid, true);
- //SetPlayerVirtualWorld(playerid, 3);
- //===============================Mapping =======================================
- RemoveBuildingForPlayer(playerid, 3345, 400.1172, 2543.5703, 15.4844, 0.25);
- RemoveBuildingForPlayer(playerid, 3366, 276.6563, 2023.7578, 16.6328, 0.25);
- RemoveBuildingForPlayer(playerid, 3367, 149.9141, 2614.6172, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3368, 161.7891, 2411.3828, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3369, 123.0469, 2587.7422, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3366, 276.6563, 1989.5469, 16.6328, 0.25);
- RemoveBuildingForPlayer(playerid, 3366, 276.6563, 1955.7656, 16.6328, 0.25);
- RemoveBuildingForPlayer(playerid, 3368, 311.1328, 2614.6172, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3368, 176.7891, 2587.7422, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3368, 338.0078, 2587.7422, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3368, 323.0078, 2411.3828, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3369, 203.6563, 2614.6172, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3369, 230.5234, 2641.4844, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3369, 349.8750, 2438.2500, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3369, 269.2656, 2411.3828, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3369, 242.3984, 2438.2500, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3369, 188.6563, 2438.2500, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3369, 108.0469, 2411.3828, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3367, 176.7891, 2641.4844, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3367, 230.5234, 2587.7422, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3367, 257.3984, 2614.6172, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3367, 284.2656, 2641.4844, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3367, 284.2656, 2587.7422, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3367, 296.1406, 2438.2500, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3367, 215.5313, 2411.3828, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3367, 134.9141, 2438.2500, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 16596, 412.8281, 2542.8672, 15.5391, 0.25);
- RemoveBuildingForPlayer(playerid, 16597, 437.3828, 2547.5156, 15.1484, 0.25);
- RemoveBuildingForPlayer(playerid, 16598, 231.2813, 2545.7969, 20.0234, 0.25);
- RemoveBuildingForPlayer(playerid, 3296, 255.9844, 2549.3281, 20.2031, 0.25);
- RemoveBuildingForPlayer(playerid, 3295, 392.7109, 2596.4531, 17.6328, 0.25);
- RemoveBuildingForPlayer(playerid, 3296, 376.2969, 2606.3438, 20.1719, 0.25);
- RemoveBuildingForPlayer(playerid, 3295, 390.8203, 2604.0703, 20.0234, 0.25);
- RemoveBuildingForPlayer(playerid, 3295, 389.1328, 2611.0625, 20.1719, 0.25);
- RemoveBuildingForPlayer(playerid, 3295, 382.1875, 2609.4766, 19.8203, 0.25);
- RemoveBuildingForPlayer(playerid, 16600, 435.6250, 2532.0859, 20.1797, 0.25);
- RemoveBuildingForPlayer(playerid, 16602, 307.9531, 2543.4531, 20.3984, 0.25);
- RemoveBuildingForPlayer(playerid, 16687, 329.8984, 2504.2656, 15.5703, 0.25);
- RemoveBuildingForPlayer(playerid, 16772, 404.7969, 2454.7188, 22.0547, 0.25);
- RemoveBuildingForPlayer(playerid, 3267, 188.2422, 2081.6484, 22.4453, 0.25);
- RemoveBuildingForPlayer(playerid, 3277, 188.2422, 2081.6484, 22.4063, 0.25);
- RemoveBuildingForPlayer(playerid, 3269, 108.0469, 2411.3828, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3270, 161.7891, 2411.3828, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3269, 188.6563, 2438.2500, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3271, 134.9141, 2438.2500, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3271, 215.5313, 2411.3828, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3269, 242.3984, 2438.2500, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3287, 255.9844, 2549.3281, 20.2031, 0.25);
- RemoveBuildingForPlayer(playerid, 16599, 231.2813, 2545.7969, 20.0234, 0.25);
- RemoveBuildingForPlayer(playerid, 3269, 269.2656, 2411.3828, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 278.1484, 2555.1875, 15.7969, 0.25);
- RemoveBuildingForPlayer(playerid, 16098, 307.9531, 2543.4531, 20.3984, 0.25);
- RemoveBuildingForPlayer(playerid, 3271, 296.1406, 2438.2500, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 200.3594, 2571.9219, 15.5781, 0.25);
- RemoveBuildingForPlayer(playerid, 16373, 160.2031, 2571.9688, 27.3047, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 244.5938, 2573.1328, 15.3984, 0.25);
- RemoveBuildingForPlayer(playerid, 3269, 123.0469, 2587.7422, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3270, 176.7891, 2587.7422, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3271, 230.5234, 2587.7422, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3271, 284.2656, 2587.7422, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3271, 149.9141, 2614.6172, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3271, 176.7891, 2641.4844, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3269, 230.5234, 2641.4844, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3269, 203.6563, 2614.6172, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3271, 257.3984, 2614.6172, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3271, 284.2656, 2641.4844, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3270, 323.0078, 2411.3828, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 16101, 321.6719, 2463.4922, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 16368, 321.6719, 2463.4922, 25.6641, 0.25);
- RemoveBuildingForPlayer(playerid, 3269, 349.8750, 2438.2500, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 864, 352.7734, 2444.4063, 15.8828, 0.25);
- RemoveBuildingForPlayer(playerid, 864, 346.4141, 2445.2969, 15.9922, 0.25);
- RemoveBuildingForPlayer(playerid, 864, 357.5938, 2449.6172, 15.6406, 0.25);
- RemoveBuildingForPlayer(playerid, 864, 364.2266, 2450.7578, 15.5469, 0.25);
- RemoveBuildingForPlayer(playerid, 16684, 329.8984, 2504.2656, 15.5703, 0.25);
- RemoveBuildingForPlayer(playerid, 1224, 316.3672, 2531.6094, 16.1563, 0.25);
- RemoveBuildingForPlayer(playerid, 1224, 316.1641, 2534.6484, 16.1563, 0.25);
- RemoveBuildingForPlayer(playerid, 1224, 316.2656, 2533.0781, 16.1563, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 316.3984, 2570.3672, 15.3047, 0.25);
- RemoveBuildingForPlayer(playerid, 1224, 316.3516, 2545.1406, 16.1563, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 361.3750, 2571.8125, 15.4063, 0.25);
- RemoveBuildingForPlayer(playerid, 3270, 338.0078, 2587.7422, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3270, 311.1328, 2614.6172, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3287, 376.2969, 2606.3438, 20.1719, 0.25);
- RemoveBuildingForPlayer(playerid, 3286, 382.1875, 2609.4766, 19.8203, 0.25);
- RemoveBuildingForPlayer(playerid, 16771, 404.7969, 2454.7188, 22.0547, 0.25);
- RemoveBuildingForPlayer(playerid, 16775, 412.1172, 2476.6328, 19.5156, 0.25);
- RemoveBuildingForPlayer(playerid, 1224, 410.8281, 2528.5703, 16.1563, 0.25);
- RemoveBuildingForPlayer(playerid, 1224, 409.8047, 2529.6328, 16.1563, 0.25);
- RemoveBuildingForPlayer(playerid, 1224, 408.7188, 2530.7656, 16.1563, 0.25);
- RemoveBuildingForPlayer(playerid, 1224, 407.1563, 2530.4688, 16.1563, 0.25);
- RemoveBuildingForPlayer(playerid, 3172, 400.1172, 2543.5703, 15.4844, 0.25);
- RemoveBuildingForPlayer(playerid, 1224, 407.8828, 2532.0078, 16.1563, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 405.3594, 2563.0859, 15.6250, 0.25);
- RemoveBuildingForPlayer(playerid, 16370, 385.3438, 2598.6250, 17.0156, 0.25);
- RemoveBuildingForPlayer(playerid, 3286, 390.8203, 2604.0703, 20.0234, 0.25);
- RemoveBuildingForPlayer(playerid, 3286, 392.7109, 2596.4531, 17.6328, 0.25);
- RemoveBuildingForPlayer(playerid, 3286, 389.1328, 2611.0625, 20.1719, 0.25);
- RemoveBuildingForPlayer(playerid, 16327, 412.8281, 2542.8672, 15.5391, 0.25);
- RemoveBuildingForPlayer(playerid, 16374, 425.4688, 2531.0000, 22.5547, 0.25);
- RemoveBuildingForPlayer(playerid, 16501, 429.9844, 2546.5156, 17.3516, 0.25);
- RemoveBuildingForPlayer(playerid, 16409, 437.3828, 2547.5156, 15.1484, 0.25);
- RemoveBuildingForPlayer(playerid, 16601, 435.6250, 2532.0859, 20.1797, 0.25);
- RemoveBuildingForPlayer(playerid, 3279, 262.0938, 1807.6719, 16.8203, 0.25);
- RemoveBuildingForPlayer(playerid, 3279, 113.3828, 1814.4531, 16.8203, 0.25);
- RemoveBuildingForPlayer(playerid, 3279, 165.9531, 1849.9922, 16.8203, 0.25);
- RemoveBuildingForPlayer(playerid, 16095, 279.1328, 1829.7813, 16.6328, 0.25);
- RemoveBuildingForPlayer(playerid, 16094, 191.1406, 1870.0391, 21.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3279, 103.8906, 1901.1016, 16.8203, 0.25);
- RemoveBuildingForPlayer(playerid, 3279, 161.9063, 1933.0938, 16.8203, 0.25);
- RemoveBuildingForPlayer(playerid, 3279, 233.4297, 1934.8438, 16.8203, 0.25);
- RemoveBuildingForPlayer(playerid, 3279, 267.0625, 1895.2969, 16.8203, 0.25);
- RemoveBuildingForPlayer(playerid, 3268, 276.6563, 2023.7578, 16.6328, 0.25);
- RemoveBuildingForPlayer(playerid, 3268, 276.6563, 1989.5469, 16.6328, 0.25);
- RemoveBuildingForPlayer(playerid, 3268, 276.6563, 1955.7656, 16.6328, 0.25);
- RemoveBuildingForPlayer(playerid, 3267, 354.4297, 2028.4922, 22.4141, 0.25);
- RemoveBuildingForPlayer(playerid, 3277, 354.4141, 2028.5000, 22.3750, 0.25);
- //==============================================================================
- //===================================Textdraw===================================
- stats_td[1][playerid] = CreatePlayerTextDraw(playerid, 630.399597, 216.035949, "usebox");
- PlayerTextDrawLetterSize(playerid, stats_td[1][playerid], 0.000000, 11.102783);
- PlayerTextDrawTextSize(playerid, stats_td[1][playerid], 510.750030, 0.000000);
- PlayerTextDrawAlignment(playerid, stats_td[1][playerid], 1);
- PlayerTextDrawColor(playerid, stats_td[1][playerid], 0);
- PlayerTextDrawUseBox(playerid, stats_td[1][playerid], true);
- PlayerTextDrawBoxColor(playerid, stats_td[1][playerid], 102);
- PlayerTextDrawSetShadow(playerid, stats_td[1][playerid], 0);
- PlayerTextDrawSetOutline(playerid, stats_td[1][playerid], 0);
- PlayerTextDrawFont(playerid, stats_td[1][playerid], 0);
- stats_td[2][playerid] = CreatePlayerTextDraw(playerid, 540.299987, 220.248031, "stats");
- PlayerTextDrawLetterSize(playerid, stats_td[2][playerid], 0.458799, 1.742799);
- PlayerTextDrawAlignment(playerid, stats_td[2][playerid], 1);
- PlayerTextDrawColor(playerid, stats_td[2][playerid], -1);
- PlayerTextDrawUseBox(playerid, stats_td[2][playerid], true);
- PlayerTextDrawBoxColor(playerid, stats_td[2][playerid], 0);
- PlayerTextDrawSetShadow(playerid, stats_td[2][playerid], 0);
- PlayerTextDrawSetOutline(playerid, stats_td[2][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, stats_td[2][playerid], 51);
- PlayerTextDrawFont(playerid, stats_td[2][playerid], 2);
- PlayerTextDrawSetProportional(playerid, stats_td[2][playerid], 1);
- stats_td[3][playerid] = CreatePlayerTextDraw(playerid, 517.000000, 241.360000, "Kills");
- PlayerTextDrawLetterSize(playerid, stats_td[3][playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, stats_td[3][playerid], 1);
- PlayerTextDrawColor(playerid, stats_td[3][playerid], -1);
- PlayerTextDrawUseBox(playerid, stats_td[3][playerid], true);
- PlayerTextDrawBoxColor(playerid, stats_td[3][playerid], 0);
- PlayerTextDrawSetShadow(playerid, stats_td[3][playerid], 0);
- PlayerTextDrawSetOutline(playerid, stats_td[3][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, stats_td[3][playerid], 51);
- PlayerTextDrawFont(playerid, stats_td[3][playerid], 1);
- PlayerTextDrawSetProportional(playerid, stats_td[3][playerid], 1);
- stats_td[4][playerid] = CreatePlayerTextDraw(playerid, 568.650573, 242.200012, "_");
- PlayerTextDrawLetterSize(playerid, stats_td[4][playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, stats_td[4][playerid], 1);
- PlayerTextDrawColor(playerid, stats_td[4][playerid], 8388863);
- PlayerTextDrawUseBox(playerid, stats_td[4][playerid], true);
- PlayerTextDrawBoxColor(playerid, stats_td[4][playerid], 0);
- PlayerTextDrawSetShadow(playerid, stats_td[4][playerid], 0);
- PlayerTextDrawSetOutline(playerid, stats_td[4][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, stats_td[4][playerid], 51);
- PlayerTextDrawFont(playerid, stats_td[4][playerid], 2);
- PlayerTextDrawSetProportional(playerid, stats_td[4][playerid], 1);
- stats_td[5][playerid] = CreatePlayerTextDraw(playerid, 516.200012, 261.231933, "Morts");
- PlayerTextDrawLetterSize(playerid, stats_td[5][playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, stats_td[5][playerid], 1);
- PlayerTextDrawColor(playerid, stats_td[5][playerid], -1);
- PlayerTextDrawUseBox(playerid, stats_td[5][playerid], true);
- PlayerTextDrawBoxColor(playerid, stats_td[5][playerid], 0);
- PlayerTextDrawSetShadow(playerid, stats_td[5][playerid], 0);
- PlayerTextDrawSetOutline(playerid, stats_td[5][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, stats_td[5][playerid], 51);
- PlayerTextDrawFont(playerid, stats_td[5][playerid], 1);
- PlayerTextDrawSetProportional(playerid, stats_td[5][playerid], 1);
- stats_td[6][playerid] = CreatePlayerTextDraw(playerid, 568.600769, 261.175964, "_");
- PlayerTextDrawLetterSize(playerid, stats_td[6][playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, stats_td[6][playerid], 1);
- PlayerTextDrawColor(playerid, stats_td[6][playerid], -16776961);
- PlayerTextDrawUseBox(playerid, stats_td[6][playerid], true);
- PlayerTextDrawBoxColor(playerid, stats_td[6][playerid], 0);
- PlayerTextDrawSetShadow(playerid, stats_td[6][playerid], 0);
- PlayerTextDrawSetOutline(playerid, stats_td[6][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, stats_td[6][playerid], 51);
- PlayerTextDrawFont(playerid, stats_td[6][playerid], 2);
- PlayerTextDrawSetProportional(playerid, stats_td[6][playerid], 1);
- stats_td[7][playerid] = CreatePlayerTextDraw(playerid, 517.899963, 280.655914, "Ratio");
- PlayerTextDrawLetterSize(playerid, stats_td[7][playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, stats_td[7][playerid], 1);
- PlayerTextDrawColor(playerid, stats_td[7][playerid], -1);
- PlayerTextDrawUseBox(playerid, stats_td[7][playerid], true);
- PlayerTextDrawBoxColor(playerid, stats_td[7][playerid], 0);
- PlayerTextDrawSetShadow(playerid, stats_td[7][playerid], 0);
- PlayerTextDrawSetOutline(playerid, stats_td[7][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, stats_td[7][playerid], 51);
- PlayerTextDrawFont(playerid, stats_td[7][playerid], 1);
- PlayerTextDrawSetProportional(playerid, stats_td[7][playerid], 1);
- stats_td[8][playerid] = CreatePlayerTextDraw(playerid, 569.150878, 280.095886, "_");
- PlayerTextDrawLetterSize(playerid, stats_td[8][playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, stats_td[8][playerid], 1);
- PlayerTextDrawColor(playerid, stats_td[8][playerid], -65281);
- PlayerTextDrawUseBox(playerid, stats_td[8][playerid], true);
- PlayerTextDrawBoxColor(playerid, stats_td[8][playerid], 0);
- PlayerTextDrawSetShadow(playerid, stats_td[8][playerid], 0);
- PlayerTextDrawSetOutline(playerid, stats_td[8][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, stats_td[8][playerid], 51);
- PlayerTextDrawFont(playerid, stats_td[8][playerid], 2);
- PlayerTextDrawSetProportional(playerid, stats_td[8][playerid], 1);
- stats_td[9][playerid] = CreatePlayerTextDraw(playerid, 518.450134, 298.455841, "Score");
- PlayerTextDrawLetterSize(playerid, stats_td[9][playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, stats_td[9][playerid], 1);
- PlayerTextDrawColor(playerid, stats_td[9][playerid], -1);
- PlayerTextDrawUseBox(playerid, stats_td[9][playerid], true);
- PlayerTextDrawBoxColor(playerid, stats_td[9][playerid], 0);
- PlayerTextDrawSetShadow(playerid, stats_td[9][playerid], 0);
- PlayerTextDrawSetOutline(playerid, stats_td[9][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, stats_td[9][playerid], 51);
- PlayerTextDrawFont(playerid, stats_td[9][playerid], 1);
- PlayerTextDrawSetProportional(playerid, stats_td[9][playerid], 1);
- stats_td[10][playerid] = CreatePlayerTextDraw(playerid, 569.300842, 297.839813, "_");
- PlayerTextDrawLetterSize(playerid, stats_td[10][playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, stats_td[10][playerid], 1);
- PlayerTextDrawColor(playerid, stats_td[10][playerid], -1);
- PlayerTextDrawUseBox(playerid, stats_td[10][playerid], true);
- PlayerTextDrawBoxColor(playerid, stats_td[10][playerid], 0);
- PlayerTextDrawSetShadow(playerid, stats_td[10][playerid], 0);
- PlayerTextDrawSetOutline(playerid, stats_td[10][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, stats_td[10][playerid], 51);
- PlayerTextDrawFont(playerid, stats_td[10][playerid], 2);
- PlayerTextDrawSetProportional(playerid, stats_td[10][playerid], 1);
- //==============================================================================
- //=====================textdraw achat ==========================================
- achat_td[1][playerid] = CreatePlayerTextDraw(playerid, 520.999938, 106.556037, "usebox");
- PlayerTextDrawLetterSize(playerid, achat_td[1][playerid], 0.000000, 26.874444);
- PlayerTextDrawTextSize(playerid, achat_td[1][playerid], 111.999992, 0.000000);
- PlayerTextDrawAlignment(playerid, achat_td[1][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[1][playerid], 0);
- PlayerTextDrawUseBox(playerid, achat_td[1][playerid], true);
- PlayerTextDrawBoxColor(playerid, achat_td[1][playerid], 102);
- PlayerTextDrawSetShadow(playerid, achat_td[1][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[1][playerid], 0);
- PlayerTextDrawFont(playerid, achat_td[1][playerid], 0);
- achat_td[2][playerid] = CreatePlayerTextDraw(playerid, 118.050025, 104.720001, ">_Achat_<");
- PlayerTextDrawLetterSize(playerid, achat_td[2][playerid], 0.655499, 2.708799);
- PlayerTextDrawAlignment(playerid, achat_td[2][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[2][playerid], 8388863);
- PlayerTextDrawUseBox(playerid, achat_td[2][playerid], true);
- PlayerTextDrawBoxColor(playerid, achat_td[2][playerid], 0);
- PlayerTextDrawSetShadow(playerid, achat_td[2][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[2][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[2][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[2][playerid], 0);
- PlayerTextDrawSetProportional(playerid, achat_td[2][playerid], 1);
- achat_td[3][playerid] = CreatePlayerTextDraw(playerid, 139.949981, 161.952041, "New Textdraw");
- PlayerTextDrawSetPreviewModel(playerid, achat_td[3][playerid], 19101);
- PlayerTextDrawSetPreviewRot(playerid, achat_td[3][playerid], 1.0, 270.0, 1.0, 1.0);
- PlayerTextDrawLetterSize(playerid, achat_td[3][playerid], 0.449999, 1.600000);
- PlayerTextDrawTextSize(playerid, achat_td[3][playerid], 93.500000, 83.440025);
- PlayerTextDrawAlignment(playerid, achat_td[3][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[3][playerid], -1);
- PlayerTextDrawUseBox(playerid, achat_td[3][playerid], true);
- PlayerTextDrawBoxColor(playerid, achat_td[3][playerid], 0);
- PlayerTextDrawSetShadow(playerid, achat_td[3][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[3][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[3][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[3][playerid], 5);
- PlayerTextDrawSetProportional(playerid, achat_td[3][playerid], 1);
- achat_td[4][playerid] = CreatePlayerTextDraw(playerid, 151.450012, 223.775955, "Casque");
- PlayerTextDrawLetterSize(playerid, achat_td[4][playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, achat_td[4][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[4][playerid], -1);
- PlayerTextDrawUseBox(playerid, achat_td[4][playerid], true);
- PlayerTextDrawBoxColor(playerid, achat_td[4][playerid], 0);
- PlayerTextDrawSetShadow(playerid, achat_td[4][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[4][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[4][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[4][playerid], 2);
- PlayerTextDrawSetProportional(playerid, achat_td[4][playerid], 1);
- achat_td[5][playerid] = CreatePlayerTextDraw(playerid, 124.850006, 249.703979, "Pour_vous_proteger");
- PlayerTextDrawLetterSize(playerid, achat_td[5][playerid], 0.337500, 1.415200);
- PlayerTextDrawAlignment(playerid, achat_td[5][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[5][playerid], -1);
- PlayerTextDrawSetShadow(playerid, achat_td[5][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[5][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[5][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[5][playerid], 1);
- PlayerTextDrawSetProportional(playerid, achat_td[5][playerid], 1);
- achat_td[6][playerid] = CreatePlayerTextDraw(playerid, 127.999893, 263.807952, "des_coups_critique");
- PlayerTextDrawLetterSize(playerid, achat_td[6][playerid], 0.337500, 1.415200);
- PlayerTextDrawAlignment(playerid, achat_td[6][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[6][playerid], -1);
- PlayerTextDrawSetShadow(playerid, achat_td[6][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[6][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[6][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[6][playerid], 1);
- PlayerTextDrawSetProportional(playerid, achat_td[6][playerid], 1);
- achat_td[7][playerid] = CreatePlayerTextDraw(playerid, 269.650054, 163.120071, "New Textdraw");
- PlayerTextDrawSetPreviewModel(playerid, achat_td[7][playerid], 19142);
- PlayerTextDrawSetPreviewRot(playerid, achat_td[7][playerid], 1.0, 270.0, 1.0, 1.0);
- PlayerTextDrawLetterSize(playerid, achat_td[7][playerid], 0.449999, 1.600000);
- PlayerTextDrawTextSize(playerid, achat_td[7][playerid], 93.500000, 83.440025);
- PlayerTextDrawAlignment(playerid, achat_td[7][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[7][playerid], -1);
- PlayerTextDrawUseBox(playerid, achat_td[7][playerid], true);
- PlayerTextDrawBoxColor(playerid, achat_td[7][playerid], 0);
- PlayerTextDrawSetShadow(playerid, achat_td[7][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[7][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[7][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[7][playerid], 5);
- PlayerTextDrawSetProportional(playerid, achat_td[7][playerid], 1);
- achat_td[8][playerid] = CreatePlayerTextDraw(playerid, 279.600036, 228.583999, "Kevlar");
- PlayerTextDrawLetterSize(playerid, achat_td[8][playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, achat_td[8][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[8][playerid], -1);
- PlayerTextDrawUseBox(playerid, achat_td[8][playerid], true);
- PlayerTextDrawBoxColor(playerid, achat_td[8][playerid], 0);
- PlayerTextDrawSetShadow(playerid, achat_td[8][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[8][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[8][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[8][playerid], 2);
- PlayerTextDrawSetProportional(playerid, achat_td[8][playerid], 1);
- achat_td[9][playerid] = CreatePlayerTextDraw(playerid, 260.549682, 247.680007, "Pour_vous_proteger");
- PlayerTextDrawLetterSize(playerid, achat_td[9][playerid], 0.337500, 1.415200);
- PlayerTextDrawAlignment(playerid, achat_td[9][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[9][playerid], -1);
- PlayerTextDrawSetShadow(playerid, achat_td[9][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[9][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[9][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[9][playerid], 1);
- PlayerTextDrawSetProportional(playerid, achat_td[9][playerid], 1);
- achat_td[10][playerid] = CreatePlayerTextDraw(playerid, 247.449874, 168.784057, "LD_SPAC:white");
- PlayerTextDrawLetterSize(playerid, achat_td[10][playerid], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, achat_td[10][playerid], 4.300003, 105.447975);
- PlayerTextDrawAlignment(playerid, achat_td[10][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[10][playerid], 41215);
- PlayerTextDrawSetShadow(playerid, achat_td[10][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[10][playerid], 0);
- PlayerTextDrawFont(playerid, achat_td[10][playerid], 4);
- achat_td[11][playerid] = CreatePlayerTextDraw(playerid, 259.599609, 261.895965, "des_balles_mais_pas");
- PlayerTextDrawLetterSize(playerid, achat_td[11][playerid], 0.337500, 1.415200);
- PlayerTextDrawAlignment(playerid, achat_td[11][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[11][playerid], -1);
- PlayerTextDrawSetShadow(playerid, achat_td[11][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[11][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[11][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[11][playerid], 1);
- PlayerTextDrawSetProportional(playerid, achat_td[11][playerid], 1);
- achat_td[12][playerid] = CreatePlayerTextDraw(playerid, 259.749786, 276.111938, "des_critique");
- PlayerTextDrawLetterSize(playerid, achat_td[12][playerid], 0.337500, 1.415200);
- PlayerTextDrawAlignment(playerid, achat_td[12][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[12][playerid], -1);
- PlayerTextDrawSetShadow(playerid, achat_td[12][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[12][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[12][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[12][playerid], 1);
- PlayerTextDrawSetProportional(playerid, achat_td[12][playerid], 1);
- achat_td[13][playerid] = CreatePlayerTextDraw(playerid, 383.799560, 170.792053, "LD_SPAC:white");
- PlayerTextDrawLetterSize(playerid, achat_td[13][playerid], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, achat_td[13][playerid], 4.300003, 105.447975);
- PlayerTextDrawAlignment(playerid, achat_td[13][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[13][playerid], 41215);
- PlayerTextDrawSetShadow(playerid, achat_td[13][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[13][playerid], 0);
- PlayerTextDrawFont(playerid, achat_td[13][playerid], 4);
- achat_td[14][playerid] = CreatePlayerTextDraw(playerid, 401.650054, 167.480117, "New Textdraw");
- PlayerTextDrawSetPreviewRot(playerid, achat_td[14][playerid], 1.0, 1.0, 1.0, 1.0);
- PlayerTextDrawSetPreviewModel(playerid, achat_td[14][playerid], 19921);
- PlayerTextDrawLetterSize(playerid, achat_td[14][playerid], 0.449999, 1.600000);
- PlayerTextDrawTextSize(playerid, achat_td[14][playerid], 93.500000, 83.440025);
- PlayerTextDrawAlignment(playerid, achat_td[14][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[14][playerid], -1);
- PlayerTextDrawUseBox(playerid, achat_td[14][playerid], true);
- PlayerTextDrawBoxColor(playerid, achat_td[14][playerid], 0);
- PlayerTextDrawSetShadow(playerid, achat_td[14][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[14][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[14][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[14][playerid], 5);
- PlayerTextDrawSetProportional(playerid, achat_td[14][playerid], 1);
- achat_td[15][playerid] = CreatePlayerTextDraw(playerid, 429.599884, 215.136047, "Kit");
- PlayerTextDrawLetterSize(playerid, achat_td[15][playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, achat_td[15][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[15][playerid], -1);
- PlayerTextDrawUseBox(playerid, achat_td[15][playerid], true);
- PlayerTextDrawBoxColor(playerid, achat_td[15][playerid], 0);
- PlayerTextDrawSetShadow(playerid, achat_td[15][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[15][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[15][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[15][playerid], 2);
- PlayerTextDrawSetProportional(playerid, achat_td[15][playerid], 1);
- achat_td[16][playerid] = CreatePlayerTextDraw(playerid, 405.549835, 231.927963, "secours");
- PlayerTextDrawLetterSize(playerid, achat_td[16][playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, achat_td[16][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[16][playerid], -1);
- PlayerTextDrawUseBox(playerid, achat_td[16][playerid], true);
- PlayerTextDrawBoxColor(playerid, achat_td[16][playerid], 0);
- PlayerTextDrawSetShadow(playerid, achat_td[16][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[16][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[16][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[16][playerid], 2);
- PlayerTextDrawSetProportional(playerid, achat_td[16][playerid], 1);
- achat_td[17][playerid] = CreatePlayerTextDraw(playerid, 391.049804, 250.912017, "Pour_vous_soigner");
- PlayerTextDrawLetterSize(playerid, achat_td[17][playerid], 0.337500, 1.415200);
- PlayerTextDrawAlignment(playerid, achat_td[17][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[17][playerid], -1);
- PlayerTextDrawSetShadow(playerid, achat_td[17][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[17][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[17][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[17][playerid], 1);
- PlayerTextDrawSetProportional(playerid, achat_td[17][playerid], 1);
- achat_td[18][playerid] = CreatePlayerTextDraw(playerid, 391.549804, 263.111968, "ou_soigner_vos");
- PlayerTextDrawLetterSize(playerid, achat_td[18][playerid], 0.337500, 1.415200);
- PlayerTextDrawAlignment(playerid, achat_td[18][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[18][playerid], -1);
- PlayerTextDrawSetShadow(playerid, achat_td[18][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[18][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[18][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[18][playerid], 1);
- PlayerTextDrawSetProportional(playerid, achat_td[18][playerid], 1);
- achat_td[19][playerid] = CreatePlayerTextDraw(playerid, 391.950042, 275.927917, "camarade_(+20hp)");
- PlayerTextDrawLetterSize(playerid, achat_td[19][playerid], 0.337500, 1.415200);
- PlayerTextDrawAlignment(playerid, achat_td[19][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[19][playerid], -1);
- PlayerTextDrawSetShadow(playerid, achat_td[19][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[19][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[19][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[19][playerid], 1);
- PlayerTextDrawSetProportional(playerid, achat_td[19][playerid], 1);
- achat_td[20][playerid] = CreatePlayerTextDraw(playerid, 500.899993, 106.008018, "X");
- PlayerTextDrawLetterSize(playerid, achat_td[20][playerid], 0.509000, 2.134239);
- PlayerTextDrawAlignment(playerid, achat_td[20][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[20][playerid], -16776961);
- PlayerTextDrawSetShadow(playerid, achat_td[20][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[20][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[20][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[20][playerid], 1);
- PlayerTextDrawSetProportional(playerid, achat_td[20][playerid], 1);
- PlayerTextDrawSetSelectable(playerid, achat_td[20][playerid], true);
- achat_td[21][playerid] = CreatePlayerTextDraw(playerid, 146.899978, 288.680053, "LD_SPAC:white");
- PlayerTextDrawLetterSize(playerid, achat_td[21][playerid], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, achat_td[21][playerid], 61.500000, 21.839996);
- PlayerTextDrawAlignment(playerid, achat_td[21][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[21][playerid], 255);
- PlayerTextDrawSetShadow(playerid, achat_td[21][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[21][playerid], 0);
- PlayerTextDrawFont(playerid, achat_td[21][playerid], 4);
- PlayerTextDrawSetSelectable(playerid, achat_td[21][playerid], true);
- achat_td[22][playerid] = CreatePlayerTextDraw(playerid, 150.350021, 292.207946, "Acheter");
- PlayerTextDrawLetterSize(playerid, achat_td[22][playerid], 0.403200, 1.428639);
- PlayerTextDrawAlignment(playerid, achat_td[22][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[22][playerid], -1);
- PlayerTextDrawSetShadow(playerid, achat_td[22][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[22][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[22][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[22][playerid], 1);
- PlayerTextDrawSetProportional(playerid, achat_td[22][playerid], 1);
- achat_td[23][playerid] = CreatePlayerTextDraw(playerid, 283.649902, 293.487976, "LD_SPAC:white");
- PlayerTextDrawLetterSize(playerid, achat_td[23][playerid], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, achat_td[23][playerid], 61.500000, 21.839996);
- PlayerTextDrawAlignment(playerid, achat_td[23][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[23][playerid], 255);
- PlayerTextDrawSetShadow(playerid, achat_td[23][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[23][playerid], 0);
- PlayerTextDrawFont(playerid, achat_td[23][playerid], 4);
- PlayerTextDrawSetSelectable(playerid, achat_td[23][playerid], true);
- achat_td[24][playerid] = CreatePlayerTextDraw(playerid, 413.549835, 295.047973, "LD_SPAC:white");
- PlayerTextDrawLetterSize(playerid, achat_td[24][playerid], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, achat_td[24][playerid], 61.500000, 21.839996);
- PlayerTextDrawAlignment(playerid, achat_td[24][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[24][playerid], 255);
- PlayerTextDrawSetShadow(playerid, achat_td[24][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[24][playerid], 0);
- PlayerTextDrawFont(playerid, achat_td[24][playerid], 4);
- PlayerTextDrawSetSelectable(playerid, achat_td[24][playerid], true);
- achat_td[25][playerid] = CreatePlayerTextDraw(playerid, 288.850036, 296.567932, "Acheter");
- PlayerTextDrawLetterSize(playerid, achat_td[25][playerid], 0.403200, 1.428639);
- PlayerTextDrawAlignment(playerid, achat_td[25][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[25][playerid], -1);
- PlayerTextDrawSetShadow(playerid, achat_td[25][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[25][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[25][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[25][playerid], 1);
- PlayerTextDrawSetProportional(playerid, achat_td[25][playerid], 1);
- achat_td[26][playerid] = CreatePlayerTextDraw(playerid, 416.850036, 298.127899, "Acheter");
- PlayerTextDrawLetterSize(playerid, achat_td[26][playerid], 0.403200, 1.428639);
- PlayerTextDrawAlignment(playerid, achat_td[26][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[26][playerid], -1);
- PlayerTextDrawSetShadow(playerid, achat_td[26][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[26][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[26][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[26][playerid], 1);
- PlayerTextDrawSetProportional(playerid, achat_td[26][playerid], 1);
- achat_td[27][playerid] = CreatePlayerTextDraw(playerid, 164.750045, 165.815887, "2000$");
- PlayerTextDrawLetterSize(playerid, achat_td[27][playerid], 0.391499, 1.432000);
- PlayerTextDrawAlignment(playerid, achat_td[27][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[27][playerid], -1);
- PlayerTextDrawSetShadow(playerid, achat_td[27][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[27][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[27][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[27][playerid], 1);
- PlayerTextDrawSetProportional(playerid, achat_td[27][playerid], 1);
- achat_td[28][playerid] = CreatePlayerTextDraw(playerid, 292.899902, 165.247909, "1000$");
- PlayerTextDrawLetterSize(playerid, achat_td[28][playerid], 0.391499, 1.432000);
- PlayerTextDrawAlignment(playerid, achat_td[28][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[28][playerid], -1);
- PlayerTextDrawSetShadow(playerid, achat_td[28][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[28][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[28][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[28][playerid], 1);
- PlayerTextDrawSetProportional(playerid, achat_td[28][playerid], 1);
- achat_td[29][playerid] = CreatePlayerTextDraw(playerid, 424.249664, 171.511901, "1000$");
- PlayerTextDrawLetterSize(playerid, achat_td[29][playerid], 0.391499, 1.432000);
- PlayerTextDrawAlignment(playerid, achat_td[29][playerid], 1);
- PlayerTextDrawColor(playerid, achat_td[29][playerid], -1);
- PlayerTextDrawSetShadow(playerid, achat_td[29][playerid], 0);
- PlayerTextDrawSetOutline(playerid, achat_td[29][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, achat_td[29][playerid], 51);
- PlayerTextDrawFont(playerid, achat_td[29][playerid], 1);
- PlayerTextDrawSetProportional(playerid, achat_td[29][playerid], 1);
- //==============================================================================
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- if(Logged[playerid] == false)
- {
- gQuery[0] = EOS;
- format(gQuery, 256, "SELECT `Name` FROM `Users` WHERE `Name` = '%s' LIMIT 0,1", GetName(playerid));
- mysql_function_query(1, gQuery, true, "DeletePlayerAccount", "s", GetName(playerid));
- }
- else
- {
- SavePlayerData(playerid);
- }
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- switch(gTeam[playerid])
- {
- case SWAT : SetPlayerPos(playerid, 224.9019,1872.5885,13.7344);
- case TERO : SetPlayerPos(playerid, 413.7930,2533.0293,19.1484);
- }
- StopAudioStreamForPlayer(playerid);
- hidetextdraw_class(playerid);
- showtextdraw_global(playerid);
- SetPlayerScore(playerid, P_DATA[playerid][pScore]);
- SetPlayerMoney(playerid, P_DATA[playerid][pMoney]);
- SetPlayerVirtualWorld(playerid, 0);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- P_DATA[playerid][pDeaths] ++;
- P_DATA[killerid][pKills] ++;
- P_DATA[killerid][pScore] ++;
- hidetextdraw_global(playerid);
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- /*public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }*/
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- new string[127];
- new Float:ratio=floatdiv(P_DATA[playerid][pDeaths], P_DATA[playerid][pKills]);
- format(string,sizeof(string),"%d",P_DATA[playerid][pDeaths]);
- PlayerTextDrawSetString(playerid, stats_td[6][playerid],string);
- format(string,sizeof(string),"%d",P_DATA[playerid][pKills]);
- PlayerTextDrawSetString(playerid, stats_td[4][playerid],string);
- format(string,sizeof(string),"%d",P_DATA[playerid][pScore]);
- PlayerTextDrawSetString(playerid, stats_td[10][playerid],string);
- format(string, sizeof(string), "%.2f", ratio);
- PlayerTextDrawSetString(playerid, stats_td[8][playerid],string);
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch(dialogid)
- {
- case THREAD_DIALOG_REGISTER:
- {
- if(!response)
- return SetTimerEx("KickRegister",500,false,"i",playerid);
- if(response)
- {
- new string[500];
- gQuery[0] = EOS;
- format(gQuery, 256, ""W"Vous n'avez pas saisi un mot de passe!\n"W"Tapez un Mot De Passe pour vous inscrire!");
- if(!strlen(inputtext)) return SPD(playerid,THREAD_DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,""GR"Inscription",gQuery,"Inscription","Annuler");
- format(string, sizeof(string),"INSERT INTO `Users`(Name,Password,Kills,Deaths,Money,Score) VALUES('%s','%s','0','0','2000','0')",GetName(playerid),inputtext);
- mysql_function_query(1,string,false,"","");
- format(gQuery, 256,""W"Bienvenue a toi "LB"%s!\nSaisi ton Mot De Passe pour te connecter.",GetName(playerid));
- SPD(playerid,THREAD_DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,""GR"Connexion",gQuery,"Login","Cancel");
- }
- }
- case THREAD_DIALOG_LOGIN:
- {
- if(!response)
- return SetTimerEx("KickRegister",500,false,"i",playerid);
- if(response)
- {
- gQuery[0] = EOS;
- new q_str[256];
- format(q_str,sizeof(q_str),"SELECT `Name` FROM `Users` WHERE `Name` = '%s' AND `Password` = '%s'", GetName(playerid),inputtext);
- mysql_function_query(1,q_str,true,"Query_LoadP_DATA","is",playerid,GetName(playerid));
- hidetextdraw_co(playerid);
- Logged[playerid] = true;
- CancelSelectTextDraw(playerid);
- TogglePlayerSpectating(playerid, false);
- }
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- public OnPlayerClickTextDraw(playerid, Text:clickedid)
- {
- new pName[MAX_PLAYER_NAME],
- pName1[MAX_PLAYER_NAME],
- string[256];
- if(clickedid == panel_co[11])
- {
- GetPlayerName(playerid,pName,sizeof(pName));
- mysql_real_escape_string(pName,pName1);
- format(string,sizeof(string),"SELECT `Name` FROM `Users` WHERE `Name` = '%s' LIMIT 0,1",pName1);
- mysql_function_query(1,string,true,"AccountLoad","is",playerid,pName1);
- //CancelSelectTextDraw(playerid);
- }
- else if(clickedid == panel_co[13])
- {
- GetPlayerName(playerid,pName,sizeof(pName));
- mysql_real_escape_string(pName,pName1);
- format(string,sizeof(string),"SELECT `Name` FROM `Users` WHERE `Name` = '%s' LIMIT 0,1",pName1);
- mysql_function_query(1,string,true,"AccountLoad2","is",playerid,pName1);
- //CancelSelectTextDraw(playerid);
- }
- return 1;
- }
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- new money_prix[MAX_PLAYERS];
- money_prix[playerid] = GetPlayerMoney(playerid);
- if(playertextid == achat_td[21][playerid] )
- {
- if(money_prix[playerid] >= 2000)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Felicitation vous avez acheter un Casque.");
- casque[playerid] = true;
- hidetextdraw_achat(playerid);
- showtextdraw_global(playerid);
- CancelSelectTextDraw(playerid);
- }
- else SCM(playerid, COLOR_RED,"Vous n'avez pas assez d'argent");
- }
- return 1;
- }
- public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
- {
- if(issuerid != INVALID_PLAYER_ID && casque[playerid] == false && bodypart == 9)
- {
- SetPlayerHealth(playerid, 0.0);
- GameTextForPlayer(playerid, "HEADSHOT !!", 5000, 2);
- }
- else if(issuerid != INVALID_PLAYER_ID && casque[playerid] == true && bodypart == 9)
- {
- casque[playerid] = false;
- SetPlayerHealth(playerid, 10.0);
- GameTextForPlayer(playerid, "Ton casque c'est envoler !!", 5000, 2);
- }
- return 1;
- }
- /*================================== Cmd et Mysql ==================*/
- CMD:stats(playerid, params[])
- {
- SCMF(playerid, -1,""SRV"Nom: %s Kills: %d Mort: %d Argent: %d Score: %d",GetName(playerid),P_DATA[playerid][pKills],P_DATA[playerid][pDeaths],P_DATA[playerid][pMoney],P_DATA[playerid][pScore]);
- return 1;
- }
- CMD:acheter(playerid, params[])
- {
- if(Logged[playerid] == true)showtextdraw_achat(playerid),hidetextdraw_global(playerid),SelectTextDraw(playerid, 0x00FF00FF);
- return 1;
- }
- CMD:aide(playerid, params[])
- {
- if(Logged[playerid] == true)SCM(playerid ,COLOR_BLUE,"_________________________________________"),SCM(playerid ,COLOR_YELLOW,"Commandes : /stats ; /acheter");
- return 1;
- }
- //=============================Function ==========================*/
- Function:: Query_LoadP_DATA(playerid,q_acc[])
- {
- new q_rows,
- q_fields,
- q_str[150];
- cache_get_data(q_rows,q_fields);
- if(!q_rows)
- {
- new str[300];
- format(str,sizeof(str),""W"Hey "LB"%s !\nVous avez entrer un mot de passe eroner \nRetaper votre mot de passe pour vous connecter .",GetName(playerid));
- SPD(playerid,THREAD_DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,""GR"Connexion",str,"Connexion","Annuler");
- }
- else
- {
- format(q_str, sizeof(q_str),"SELECT * FROM `Users` WHERE Name = '%s'",q_acc);
- mysql_function_query(1, q_str,true,"OnPlayerCheckedLogin","ds",playerid,q_acc);
- }
- return 1;
- }
- Function:: OnPlayerCheckedLogin(playerid)
- {
- P_DATA[playerid][ID] = cache_get_field_content_int(0, "ID");
- P_DATA[playerid][pKills] = cache_get_field_content_int(0, "Kills");
- P_DATA[playerid][pDeaths] = cache_get_field_content_int(0, "Deaths");
- P_DATA[playerid][pMoney] = cache_get_field_content_int(0, "Money");
- P_DATA[playerid][pScore] = cache_get_field_content_int(0, "Score");
- return 1;
- }
- Function:: AccountLoad(playerid,q_acc[])
- {
- new q_rows,
- q_fields;
- cache_get_data(q_rows,q_fields);
- if(q_rows)
- {
- gQuery[0] = EOS;
- print("Compte Loader ... ");
- format(gQuery,256,""W"Re-Bienvenue à Toi, "LB"%s!\nTapez votre Mot De Passe pour vous connecter.",q_acc);
- SPD(playerid,THREAD_DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,""GR"Connexion",gQuery,"Connexion","Annuler");
- TogglePlayerSpectating(playerid, true);
- }
- return 1;
- }
- Function:: AccountLoad2(playerid,q_acc[])
- {
- new q_rows,
- q_fields;
- cache_get_data(q_rows,q_fields);
- if(!q_rows)
- {
- gQuery[0] = EOS;
- print("Compte Loader ... ");
- format(gQuery, 256,""W"Bienvenue à Toi, "LB"%s!\nTapez un Mot De Passe pour vous inscrire!",q_acc);
- SPD(playerid,THREAD_DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,""GR"Inscription",gQuery,"Inscription","Annuler");
- TogglePlayerSpectating(playerid, true);
- }
- return 1;
- }
- Function:: SavePlayerData(playerid)
- {
- new ks = P_DATA[playerid][pKills],
- dth = P_DATA[playerid][pDeaths],
- mn = P_DATA[playerid][pMoney],
- sc = P_DATA[playerid][pScore];
- gQuery[0] = EOS;
- format(gQuery, 500,"UPDATE `Users` SET `Kills`='%d',`Deaths`='%d',`Money`='%d',`Score`='%d' WHERE `Name`='%s'",ks,dth,mn,sc,GetName(playerid));
- mysql_function_query(1,gQuery,false,"","");
- print("Les comptes ont été enregistrés dans la base de données ..");
- return 1;
- }
- Function:: DeletePlayerAccount(q_acc[])
- {
- new rows, fields;
- cache_get_data(rows, fields);
- if(rows)
- {
- gQuery[0] = EOS;
- format(gQuery, 256, "DELETE FROM `Users` WHERE `Name` = '%s'", q_acc);
- mysql_function_query(1, gQuery, false, "", "");
- }
- return 1;
- }
- stock GetName(playerid)
- {
- new AlEx[24];
- GetPlayerName(playerid,AlEx,sizeof(AlEx));
- return AlEx;
- }
- // *** Kick Function
- Function:: KickRegister(playerid)
- {
- Kick(playerid);
- //SCMF(playerid,-1,""SRV"%s a etait kick!",GetName(playerid));
- return 1;
- }
- stock SetPlayerMoney(playerid, money)
- {
- GivePlayerMoney(playerid, GetPlayerMoney(playerid));
- GivePlayerMoney(playerid, money);
- return 1;
- }
- /*==================== Public Textdraw ==========*/
- public showtextdraw_co(playerid)
- {
- TDSFP(playerid, panel_co[1]);
- TDSFP(playerid, panel_co[2]);
- TDSFP(playerid, panel_co[3]);
- TDSFP(playerid, panel_co[4]);
- TDSFP(playerid, panel_co[5]);
- TDSFP(playerid, panel_co[6]);
- TDSFP(playerid, panel_co[7]);
- TDSFP(playerid, panel_co[8]);
- TDSFP(playerid, panel_co[9]);
- TDSFP(playerid, panel_co[10]);
- TDSFP(playerid, panel_co[11]);
- TDSFP(playerid, panel_co[12]);
- TDSFP(playerid, panel_co[13]);
- TDSFP(playerid, panel_co[14]);
- SelectTextDraw(playerid, 0x00FF00FF);
- return 1;
- }
- public hidetextdraw_co(playerid)
- {
- TDHFP(playerid, panel_co[1]);
- TDHFP(playerid, panel_co[2]);
- TDHFP(playerid, panel_co[3]);
- TDHFP(playerid, panel_co[4]);
- TDHFP(playerid, panel_co[5]);
- TDHFP(playerid, panel_co[6]);
- TDHFP(playerid, panel_co[7]);
- TDHFP(playerid, panel_co[8]);
- TDHFP(playerid, panel_co[9]);
- TDHFP(playerid, panel_co[10]);
- TDHFP(playerid, panel_co[11]);
- TDHFP(playerid, panel_co[12]);
- TDHFP(playerid, panel_co[13]);
- TDHFP(playerid, panel_co[14]);
- return 1;
- }
- public textdraw_class(playerid, classid)
- {
- switch (classid)
- {
- case 0:
- {
- txd_class[playerid] = 1;
- gTeam[playerid] = SWAT;
- TDSFP(playerid, class_dm_swat[1]);
- TDSFP(playerid, class_dm_swat[2]);
- TDSFP(playerid, class_dm_swat[3]);
- TDSFP(playerid, class_dm_swat[4]);
- TDSFP(playerid, class_dm_swat[5]);
- TDSFP(playerid, class_dm_swat[6]);
- TDSFP(playerid, class_dm_swat[7]);
- TDSFP(playerid, class_dm_swat[8]);
- TDSFP(playerid, class_dm_swat[9]);
- TDSFP(playerid, class_dm_swat[10]);
- TDSFP(playerid, class_dm_swat[11]);
- TDHFP(playerid, class_dm_tero[1]);
- TDHFP(playerid, class_dm_tero[2]);
- TDHFP(playerid, class_dm_tero[3]);
- TDHFP(playerid, class_dm_tero[4]);
- TDHFP(playerid, class_dm_tero[5]);
- TDHFP(playerid, class_dm_tero[6]);
- TDHFP(playerid, class_dm_tero[7]);
- TDHFP(playerid, class_dm_tero[8]);
- TDHFP(playerid, class_dm_tero[9]);
- TDHFP(playerid, class_dm_tero[10]);
- TDHFP(playerid, class_dm_tero[11]);
- }
- case 1:
- {
- txd_class[playerid] = 2;
- gTeam[playerid] = TERO;
- TDSFP(playerid, class_dm_tero[1]);
- TDSFP(playerid, class_dm_tero[2]);
- TDSFP(playerid, class_dm_tero[3]);
- TDSFP(playerid, class_dm_tero[4]);
- TDSFP(playerid, class_dm_tero[5]);
- TDSFP(playerid, class_dm_tero[6]);
- TDSFP(playerid, class_dm_tero[7]);
- TDSFP(playerid, class_dm_tero[8]);
- TDSFP(playerid, class_dm_tero[9]);
- TDSFP(playerid, class_dm_tero[10]);
- TDSFP(playerid, class_dm_tero[11]);
- TDHFP(playerid, class_dm_swat[1]);
- TDHFP(playerid, class_dm_swat[2]);
- TDHFP(playerid, class_dm_swat[3]);
- TDHFP(playerid, class_dm_swat[4]);
- TDHFP(playerid, class_dm_swat[5]);
- TDHFP(playerid, class_dm_swat[6]);
- TDHFP(playerid, class_dm_swat[7]);
- TDHFP(playerid, class_dm_swat[8]);
- TDHFP(playerid, class_dm_swat[9]);
- TDHFP(playerid, class_dm_swat[10]);
- TDHFP(playerid, class_dm_swat[11]);
- }
- }
- return 1;
- }
- public hidetextdraw_class(playerid)
- {
- switch(txd_class[playerid])
- {
- case 1:
- {
- TDHFP(playerid, class_dm_swat[1]);
- TDHFP(playerid, class_dm_swat[2]);
- TDHFP(playerid, class_dm_swat[3]);
- TDHFP(playerid, class_dm_swat[4]);
- TDHFP(playerid, class_dm_swat[5]);
- TDHFP(playerid, class_dm_swat[6]);
- TDHFP(playerid, class_dm_swat[7]);
- TDHFP(playerid, class_dm_swat[8]);
- TDHFP(playerid, class_dm_swat[9]);
- TDHFP(playerid, class_dm_swat[10]);
- TDHFP(playerid, class_dm_swat[11]);
- txd_class[playerid] = 0;
- }
- case 2:
- {
- TDHFP(playerid, class_dm_tero[1]);
- TDHFP(playerid, class_dm_tero[2]);
- TDHFP(playerid, class_dm_tero[3]);
- TDHFP(playerid, class_dm_tero[4]);
- TDHFP(playerid, class_dm_tero[5]);
- TDHFP(playerid, class_dm_tero[6]);
- TDHFP(playerid, class_dm_tero[7]);
- TDHFP(playerid, class_dm_tero[8]);
- TDHFP(playerid, class_dm_tero[9]);
- TDHFP(playerid, class_dm_tero[10]);
- TDHFP(playerid, class_dm_tero[11]);
- txd_class[playerid] = 0;
- }
- }
- return 1;
- }
- public showtextdraw_global(playerid)
- {
- PlayerTextDrawShow(playerid, stats_td[1][playerid]);
- PlayerTextDrawShow(playerid, stats_td[2][playerid]);
- PlayerTextDrawShow(playerid, stats_td[3][playerid]);
- PlayerTextDrawShow(playerid, stats_td[4][playerid]);
- PlayerTextDrawShow(playerid, stats_td[5][playerid]);
- PlayerTextDrawShow(playerid, stats_td[6][playerid]);
- PlayerTextDrawShow(playerid, stats_td[7][playerid]);
- PlayerTextDrawShow(playerid, stats_td[8][playerid]);
- PlayerTextDrawShow(playerid, stats_td[9][playerid]);
- PlayerTextDrawShow(playerid, stats_td[10][playerid]);
- return 1;
- }
- public hidetextdraw_global(playerid)
- {
- PlayerTextDrawHide(playerid, stats_td[1][playerid]);
- PlayerTextDrawHide(playerid, stats_td[2][playerid]);
- PlayerTextDrawHide(playerid, stats_td[3][playerid]);
- PlayerTextDrawHide(playerid, stats_td[4][playerid]);
- PlayerTextDrawHide(playerid, stats_td[5][playerid]);
- PlayerTextDrawHide(playerid, stats_td[6][playerid]);
- PlayerTextDrawHide(playerid, stats_td[7][playerid]);
- PlayerTextDrawHide(playerid, stats_td[8][playerid]);
- PlayerTextDrawHide(playerid, stats_td[9][playerid]);
- PlayerTextDrawHide(playerid, stats_td[10][playerid]);
- return 1;
- }
- public hidetextdraw_achat(playerid)
- {
- PlayerTextDrawHide(playerid, achat_td[1][playerid]);
- PlayerTextDrawHide(playerid, achat_td[2][playerid]);
- PlayerTextDrawHide(playerid, achat_td[3][playerid]);
- PlayerTextDrawHide(playerid, achat_td[4][playerid]);
- PlayerTextDrawHide(playerid, achat_td[5][playerid]);
- PlayerTextDrawHide(playerid, achat_td[6][playerid]);
- PlayerTextDrawHide(playerid, achat_td[7][playerid]);
- PlayerTextDrawHide(playerid, achat_td[8][playerid]);
- PlayerTextDrawHide(playerid, achat_td[9][playerid]);
- PlayerTextDrawHide(playerid, achat_td[10][playerid]);
- PlayerTextDrawHide(playerid, achat_td[11][playerid]);
- PlayerTextDrawHide(playerid, achat_td[12][playerid]);
- PlayerTextDrawHide(playerid, achat_td[13][playerid]);
- PlayerTextDrawHide(playerid, achat_td[14][playerid]);
- PlayerTextDrawHide(playerid, achat_td[15][playerid]);
- PlayerTextDrawHide(playerid, achat_td[16][playerid]);
- PlayerTextDrawHide(playerid, achat_td[17][playerid]);
- PlayerTextDrawHide(playerid, achat_td[18][playerid]);
- PlayerTextDrawHide(playerid, achat_td[19][playerid]);
- PlayerTextDrawHide(playerid, achat_td[20][playerid]);
- PlayerTextDrawHide(playerid, achat_td[21][playerid]);
- PlayerTextDrawHide(playerid, achat_td[22][playerid]);
- PlayerTextDrawHide(playerid, achat_td[23][playerid]);
- PlayerTextDrawHide(playerid, achat_td[24][playerid]);
- PlayerTextDrawHide(playerid, achat_td[25][playerid]);
- PlayerTextDrawHide(playerid, achat_td[26][playerid]);
- PlayerTextDrawHide(playerid, achat_td[27][playerid]);
- PlayerTextDrawHide(playerid, achat_td[28][playerid]);
- PlayerTextDrawHide(playerid, achat_td[29][playerid]);
- return 1;
- }
- public showtextdraw_achat(playerid)
- {
- PlayerTextDrawShow(playerid, achat_td[1][playerid]);
- PlayerTextDrawShow(playerid, achat_td[2][playerid]);
- PlayerTextDrawShow(playerid, achat_td[3][playerid]);
- PlayerTextDrawShow(playerid, achat_td[4][playerid]);
- PlayerTextDrawShow(playerid, achat_td[5][playerid]);
- PlayerTextDrawShow(playerid, achat_td[6][playerid]);
- PlayerTextDrawShow(playerid, achat_td[7][playerid]);
- PlayerTextDrawShow(playerid, achat_td[8][playerid]);
- PlayerTextDrawShow(playerid, achat_td[9][playerid]);
- PlayerTextDrawShow(playerid, achat_td[10][playerid]);
- PlayerTextDrawShow(playerid, achat_td[11][playerid]);
- PlayerTextDrawShow(playerid, achat_td[12][playerid]);
- PlayerTextDrawShow(playerid, achat_td[13][playerid]);
- PlayerTextDrawShow(playerid, achat_td[14][playerid]);
- PlayerTextDrawShow(playerid, achat_td[15][playerid]);
- PlayerTextDrawShow(playerid, achat_td[16][playerid]);
- PlayerTextDrawShow(playerid, achat_td[17][playerid]);
- PlayerTextDrawShow(playerid, achat_td[18][playerid]);
- PlayerTextDrawShow(playerid, achat_td[19][playerid]);
- PlayerTextDrawShow(playerid, achat_td[20][playerid]);
- PlayerTextDrawShow(playerid, achat_td[21][playerid]);
- PlayerTextDrawShow(playerid, achat_td[22][playerid]);
- PlayerTextDrawShow(playerid, achat_td[23][playerid]);
- PlayerTextDrawShow(playerid, achat_td[24][playerid]);
- PlayerTextDrawShow(playerid, achat_td[25][playerid]);
- PlayerTextDrawShow(playerid, achat_td[26][playerid]);
- PlayerTextDrawShow(playerid, achat_td[27][playerid]);
- PlayerTextDrawShow(playerid, achat_td[28][playerid]);
- PlayerTextDrawShow(playerid, achat_td[29][playerid]);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment