Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.54 KB | None | 0 0
  1. #include < amxmodx >
  2.  
  3.  
  4.  
  5. #include < amxmisc >
  6.  
  7.  
  8.  
  9. #include < cstrike >
  10.  
  11.  
  12.  
  13. #include < fakemeta >
  14.  
  15.  
  16.  
  17. #include < hamsandwich >
  18.  
  19.  
  20.  
  21. #include < nvault >
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29. #pragma semicolon 1
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41. #define PLUGIN "BaseBuilder Euro System"
  42.  
  43.  
  44.  
  45. #define VERSION "1.9"
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53. #define ONE_DAY_IN_SECONDS 86400
  54.  
  55.  
  56.  
  57. #define TASK_PTR 06091993
  58.  
  59.  
  60.  
  61. #define FCS_TEAM_FURIEN CS_TEAM_T
  62.  
  63.  
  64.  
  65. #define FCS_TEAM_ANTIFURIEN CS_TEAM_CT
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73. enum Color
  74.  
  75.  
  76.  
  77. {
  78.  
  79.  
  80.  
  81. NORMAL = 1, // Culoarea care o are jucatorul setata in cvar-ul scr_concolor.
  82.  
  83.  
  84.  
  85. GREEN, // Culoare Verde.
  86.  
  87.  
  88.  
  89. TEAM_COLOR, // Culoare Rosu, Albastru, Gri.
  90.  
  91.  
  92.  
  93. GREY, // Culoarea Gri.
  94.  
  95.  
  96.  
  97. RED, // Culoarea Rosu.
  98.  
  99.  
  100.  
  101. BLUE, // Culoarea Albastru.
  102.  
  103.  
  104.  
  105. };
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113. new TeamName[ ][ ] =
  114.  
  115.  
  116.  
  117. {
  118.  
  119.  
  120.  
  121. "",
  122.  
  123.  
  124.  
  125. "TERRORIST",
  126.  
  127.  
  128.  
  129. "CT",
  130.  
  131.  
  132.  
  133. "SPECTATOR"
  134.  
  135.  
  136.  
  137. };
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145. new const g_szTag[ ] = "[Euro System]";
  146.  
  147.  
  148.  
  149. new const g_szGiveCreditsFlag[ ] = "a";
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157. new g_iCvarPruneDays;
  158.  
  159.  
  160.  
  161. new g_iCvarEntry;
  162.  
  163.  
  164.  
  165. new g_iCvarRetire;
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173. new g_iCvarPTREnable;
  174.  
  175.  
  176.  
  177. new g_iCvarPTRMinutes;
  178.  
  179.  
  180.  
  181. new g_iCvarPTRCredits;
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189. new g_iCvarKREnable;
  190.  
  191.  
  192.  
  193. new g_iCvarKRCredits;
  194.  
  195.  
  196.  
  197. new g_iCvarKRHSCredits;
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205. new g_iCvarTSEnable;
  206.  
  207.  
  208.  
  209. new g_iCvarTSMaxCredits;
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217. new g_iCvarWTREnable;
  218.  
  219.  
  220.  
  221. new g_iCvarWTRFurien;
  222.  
  223.  
  224.  
  225. new g_iCvarWTRAnti;
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233. new g_szName[ 33 ][ 32 ];
  234.  
  235.  
  236.  
  237. new g_iUserCredits[ 33 ];
  238.  
  239.  
  240.  
  241. new g_iUserTime[ 33 ];
  242.  
  243.  
  244.  
  245. new g_iUserRetired[ 33 ];
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253. new iVault;
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261. public plugin_init( )
  262.  
  263.  
  264.  
  265. {
  266.  
  267.  
  268.  
  269. register_plugin( PLUGIN, VERSION, "eVo" );
  270.  
  271.  
  272.  
  273. register_cvar( "fcs_version_aio", VERSION, FCVAR_SERVER | FCVAR_SPONLY );
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281. g_iCvarPruneDays = register_cvar( "fcs_prunedays", "0" );
  282.  
  283.  
  284.  
  285. g_iCvarEntry = register_cvar( "fcs_entry_credits", "10000" );
  286.  
  287.  
  288.  
  289. g_iCvarRetire = register_cvar( "fcs_maxretrive", "0" );
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297. g_iCvarPTREnable = register_cvar( "fcs_ptr_enable", "1" );
  298.  
  299.  
  300.  
  301. g_iCvarPTRMinutes = register_cvar( "fcs_ptr_minutes", "10" );
  302.  
  303.  
  304.  
  305. g_iCvarPTRCredits = register_cvar( "fcs_ptr_credits", "75" );
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313. g_iCvarKREnable = register_cvar( "fcs_kr_enable", "1" );
  314.  
  315.  
  316.  
  317. g_iCvarKRCredits = register_cvar( "fcs_kr_credits", "10" );
  318.  
  319.  
  320.  
  321. g_iCvarKRHSCredits = register_cvar( "fcs_kr_hscredits", "20" );//( bonus, fcs_kr_credits + fcs_kr_hscredits )
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329. g_iCvarTSEnable = register_cvar("fcs_transfer_enable", "0" );
  330.  
  331.  
  332.  
  333. g_iCvarTSMaxCredits = register_cvar("fcs_transfer_maxcredits", "50300" );
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341. g_iCvarWTREnable = register_cvar( "fcs_wtr_enable", "1" );
  342.  
  343.  
  344.  
  345. g_iCvarWTRFurien = register_cvar( "fcs_wtr_furien", "100" );
  346.  
  347.  
  348.  
  349. g_iCvarWTRAnti = register_cvar( "fcs_wtr_antifurien", "100" );
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357. register_clcmd( "say", "ClCmdSay" );
  358.  
  359.  
  360.  
  361. register_clcmd( "say_team", "ClCmdSay" );
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369. register_clcmd( "say /depozit", "ClCmdSayDepozit" );
  370.  
  371.  
  372.  
  373. register_clcmd( "say /deposit", "ClCmdSayDepozit" );
  374.  
  375.  
  376.  
  377. register_clcmd( "say_team /depozit", "ClCmdSayDepozit" );
  378.  
  379.  
  380.  
  381. register_clcmd( "say_team /deposit", "ClCmdSayDepozit" );
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389. register_clcmd( "say /retrage", "ClCmdSayRetrage" );
  390.  
  391.  
  392.  
  393. register_clcmd( "say /withdraw", "ClCmdSayRetrage" );
  394.  
  395.  
  396.  
  397. register_clcmd( "say_team /retrage", "ClCmdSayRetrage" );
  398.  
  399.  
  400.  
  401. register_clcmd( "say_team /withdraw", "ClCmdSayRetrage" );
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409. register_clcmd( "fcs_euro", "ClCmdCredits" );
  410.  
  411.  
  412.  
  413. register_clcmd( "fcs_credits", "ClCmdCredits" );
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421. register_clcmd( "donate", "ClCmdFcsDonate" );
  422.  
  423.  
  424.  
  425. register_clcmd( "transfer", "ClCmdFcsDonate" );
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433. register_clcmd( "amx_give_euro", "ClCmdGiveCredits" );
  434.  
  435.  
  436.  
  437. register_clcmd( "amx_take_euro", "ClCmdTakeCredits" );
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445. RegisterHam( Ham_Spawn, "player", "ham_SpawnPlayerPost", true );
  446.  
  447.  
  448.  
  449. register_forward( FM_ClientUserInfoChanged, "Fwd_ClientUserInfoChanged" );
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457. register_event( "DeathMsg","ev_DeathMsg", "a" );
  458.  
  459.  
  460.  
  461. register_event( "SendAudio", "ev_SendAudioTerWin", "a", "2=%!MRAD_terwin" );
  462.  
  463.  
  464.  
  465. register_event( "SendAudio", "ev_SendAudioCtWin", "a", "2=%!MRAD_ctwin" );
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473. set_task( 1.0, "task_PTRFunctions", TASK_PTR, _, _, "b", 0 );
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481. }
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489. public plugin_natives()
  490.  
  491.  
  492.  
  493. {
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501. register_library( "fcs" );
  502.  
  503.  
  504.  
  505. register_native( "fcs_get_user_credits", "_fcs_get_user_credits" );
  506.  
  507.  
  508.  
  509. register_native( "fcs_set_user_credits", "_fcs_set_user_credits" );
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517. }
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525. public _fcs_get_user_credits( iPlugin, iParams )
  526.  
  527.  
  528.  
  529. {
  530.  
  531.  
  532.  
  533. return g_iUserCredits[ get_param( 1 ) ];
  534.  
  535.  
  536.  
  537. }
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545. public _fcs_set_user_credits( iPlugin, iParams )
  546.  
  547.  
  548.  
  549. {
  550.  
  551.  
  552.  
  553. new id = get_param( 1 );
  554.  
  555.  
  556.  
  557. g_iUserCredits[ id ] = max( 0, get_param( 2 ) );
  558.  
  559.  
  560.  
  561. SaveCredits( id );
  562.  
  563.  
  564.  
  565. return g_iUserCredits[ id ];
  566.  
  567.  
  568.  
  569. }
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577. public client_authorized( id )
  578.  
  579.  
  580.  
  581. {
  582.  
  583.  
  584.  
  585. if( is_user_bot( id ) )
  586.  
  587.  
  588.  
  589. return PLUGIN_CONTINUE;
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597. get_user_name( id, g_szName[ id ], sizeof ( g_szName[] ) -1 );
  598.  
  599.  
  600.  
  601. LoadCredits( id );
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609. g_iUserTime[ id ] = 0;
  610.  
  611.  
  612.  
  613. g_iUserRetired[ id ] = 0;
  614.  
  615.  
  616.  
  617. return PLUGIN_CONTINUE;
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625. }
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633. public client_disconnect( id )
  634.  
  635.  
  636.  
  637. {
  638.  
  639.  
  640.  
  641. if( is_user_bot( id ) )
  642.  
  643.  
  644.  
  645. return PLUGIN_CONTINUE;
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653. SaveCredits( id );
  654.  
  655.  
  656.  
  657. g_iUserRetired[ id ] = 0;
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665. return PLUGIN_CONTINUE;
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673. }
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681. public ClCmdSay( id )
  682.  
  683.  
  684.  
  685. {
  686.  
  687.  
  688.  
  689. static szArgs[192];
  690.  
  691.  
  692.  
  693. read_args( szArgs, sizeof ( szArgs ) -1 );
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701. if( !szArgs[ 0 ] )
  702.  
  703.  
  704.  
  705. return PLUGIN_CONTINUE;
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713. new szCommand[ 15 ];
  714.  
  715.  
  716.  
  717. remove_quotes( szArgs[ 0 ] );
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725. if( equal( szArgs, "/euro", strlen( "/euro" ) )
  726.  
  727.  
  728.  
  729. || equal( szArgs, "/credits", strlen( "/credits" ) ) )
  730.  
  731.  
  732.  
  733. {
  734.  
  735.  
  736.  
  737. replace( szArgs, sizeof ( szArgs ) -1, "/", "" );
  738.  
  739.  
  740.  
  741. formatex( szCommand, sizeof ( szCommand ) -1, "fcs_%s", szArgs );
  742.  
  743.  
  744.  
  745. client_cmd( id, szCommand );
  746.  
  747.  
  748.  
  749. return PLUGIN_HANDLED;
  750.  
  751.  
  752.  
  753. }
  754.  
  755.  
  756.  
  757. else if( equal( szArgs, "/transfer", strlen( "/transfer" ) )
  758.  
  759.  
  760.  
  761. || equal( szArgs, "/donate", strlen( "/donate" ) ) )
  762.  
  763.  
  764.  
  765. {
  766.  
  767.  
  768.  
  769. replace( szArgs, sizeof ( szArgs ) -1, "/", "" );
  770.  
  771.  
  772.  
  773. formatex( szCommand, sizeof ( szCommand ) -1, "%s", szArgs );
  774.  
  775.  
  776.  
  777. client_cmd( id, szCommand );
  778.  
  779.  
  780.  
  781. return PLUGIN_HANDLED;
  782.  
  783.  
  784.  
  785. }
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793. return PLUGIN_CONTINUE;
  794.  
  795.  
  796.  
  797. }
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805. public ClCmdCredits( id )
  806.  
  807.  
  808.  
  809. {
  810.  
  811.  
  812.  
  813. if( !is_user_connected( id ) )
  814.  
  815.  
  816.  
  817. return PLUGIN_HANDLED;
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825. new szArg[ 32 ];
  826.  
  827.  
  828.  
  829. read_argv( 1, szArg, sizeof ( szArg ) -1 );
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837. if( equal( szArg, "" ) )
  838.  
  839.  
  840.  
  841. {
  842.  
  843.  
  844.  
  845. client_printc(id, "!g%s !tIn acest moment in Contul tau sunt !g%i Euro!t.", g_szTag, g_iUserCredits[ id ] );
  846.  
  847.  
  848.  
  849. return PLUGIN_HANDLED;
  850.  
  851.  
  852.  
  853. }
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861. new iPlayer = cmd_target( id, szArg, 8 );
  862.  
  863.  
  864.  
  865. if( !iPlayer || !is_user_connected( iPlayer ) )
  866.  
  867.  
  868.  
  869. {
  870.  
  871.  
  872.  
  873. ColorChat( id, RED,"^x04%s^x01 Jucatorul specificat nu a fost gasit!", g_szTag, szArg );
  874.  
  875.  
  876.  
  877. return PLUGIN_HANDLED;
  878.  
  879.  
  880.  
  881. }
  882.  
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889. new szName[ 32 ];
  890.  
  891.  
  892.  
  893. get_user_name( iPlayer, szName, sizeof ( szName ) -1 );
  894.  
  895.  
  896.  
  897. client_printc(id, "!g%s !t%s !gJucatorul !t%s !gare !t%iEuro!g%s!t", g_szTag, szName, g_iUserCredits[ iPlayer ], g_iUserCredits[ iPlayer ] == 1 ? "." : "." );
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905. return PLUGIN_HANDLED;
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913. }
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921. public ClCmdSayDepozit( id)
  922.  
  923.  
  924.  
  925. {
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933. if( !is_user_connected( id ) )
  934.  
  935.  
  936.  
  937. return PLUGIN_HANDLED;
  938.  
  939.  
  940.  
  941.  
  942.  
  943.  
  944.  
  945. new CsTeams:iTeam = cs_get_user_team( id );
  946.  
  947.  
  948.  
  949.  
  950.  
  951.  
  952.  
  953. if( CS_TEAM_T <= iTeam <= CS_TEAM_CT )
  954.  
  955.  
  956.  
  957. {
  958.  
  959.  
  960.  
  961. new iMoney = cs_get_user_money( id );
  962.  
  963.  
  964.  
  965. if( iMoney >= 16000 )
  966.  
  967.  
  968.  
  969. {
  970.  
  971.  
  972.  
  973.  
  974.  
  975.  
  976.  
  977. ColorChat( id, RED, "^x04%s^x01 Ai depozitat^x03 16000$^x01 si ai primit^x03 1^x01 credit.", g_szTag );
  978.  
  979.  
  980.  
  981. cs_set_user_money( id, iMoney - 16000 );
  982.  
  983.  
  984.  
  985. g_iUserCredits[ id ] += 1;
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993. SaveCredits( id );
  994.  
  995.  
  996.  
  997. return PLUGIN_HANDLED;
  998.  
  999.  
  1000.  
  1001. }
  1002.  
  1003.  
  1004.  
  1005. else
  1006.  
  1007.  
  1008.  
  1009. {
  1010.  
  1011.  
  1012.  
  1013. ColorChat( id, RED, "^x04%s^x01 Iti trebuie^x03 16000$^x01 pentru a putea depozita.", g_szTag );
  1014.  
  1015.  
  1016.  
  1017. return PLUGIN_HANDLED;
  1018.  
  1019.  
  1020.  
  1021. }
  1022.  
  1023.  
  1024.  
  1025. }
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033. return PLUGIN_HANDLED;
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041. }
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049. public ClCmdSayRetrage( id)
  1050.  
  1051.  
  1052.  
  1053. {
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061. new CsTeams:iTeam = cs_get_user_team( id );
  1062.  
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069. if( CS_TEAM_T <= iTeam <= CS_TEAM_CT )
  1070.  
  1071.  
  1072.  
  1073. {
  1074.  
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080.  
  1081. if( g_iUserCredits[ id ] > 0 )
  1082.  
  1083.  
  1084.  
  1085. {
  1086.  
  1087.  
  1088.  
  1089. new iMaxRetrieve = get_pcvar_num( g_iCvarRetire );
  1090.  
  1091.  
  1092.  
  1093. if( iMaxRetrieve > 0 )
  1094.  
  1095.  
  1096.  
  1097. {
  1098.  
  1099.  
  1100.  
  1101. if( g_iUserRetired[ id ] >= iMaxRetrieve )
  1102.  
  1103.  
  1104.  
  1105. {
  1106.  
  1107.  
  1108.  
  1109. ColorChat( id, RED, "^x04%s^x01 Ai retras deja^x03 %i^x01 credit%s runda asta^x01.", g_szTag, iMaxRetrieve, iMaxRetrieve == 1 ? "" : "" );
  1110.  
  1111.  
  1112.  
  1113. return PLUGIN_HANDLED;
  1114.  
  1115.  
  1116.  
  1117. }
  1118.  
  1119.  
  1120.  
  1121. }
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129. new iMoney = cs_get_user_money( id );
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137. ColorChat( id, RED, "^x04%s^x01 Ai retras^x03 1^x01 credit si, ai primi^x03 16000$^x01.", g_szTag );
  1138.  
  1139.  
  1140.  
  1141. cs_set_user_money( id, iMoney + 16000 );
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149. g_iUserCredits[ id ] -=1;
  1150.  
  1151.  
  1152.  
  1153. g_iUserRetired[ id ]++;
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161. SaveCredits( id );
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169. if( ( iMoney + 16000 ) > 16000 )
  1170.  
  1171.  
  1172.  
  1173. {
  1174.  
  1175.  
  1176.  
  1177. ColorChat( id, RED, "^x04%s^x03 ATENTIE^x01, ai^x03 %i$^x01 !", g_szTag, iMoney + 16000 );
  1178.  
  1179.  
  1180.  
  1181. ColorChat( id, RED, "^x04%s^x01 La spawn, vei pierde tot ce depaseste suma de^x03 16000$^x01.", g_szTag );
  1182.  
  1183.  
  1184.  
  1185. return PLUGIN_HANDLED;
  1186.  
  1187.  
  1188.  
  1189. }
  1190.  
  1191.  
  1192.  
  1193. }
  1194.  
  1195.  
  1196.  
  1197. else
  1198.  
  1199.  
  1200.  
  1201. {
  1202.  
  1203.  
  1204.  
  1205. ColorChat(id, RED, "^x04%s^x03 NU^x01 ai ce sa retragi, ai^x03 0^x01 credite.", g_szTag );
  1206.  
  1207.  
  1208.  
  1209. return PLUGIN_HANDLED;
  1210.  
  1211.  
  1212.  
  1213. }
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221. }
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229. return PLUGIN_HANDLED;
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237. }
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245. public ClCmdGiveCredits( id )
  1246.  
  1247.  
  1248.  
  1249. {
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257. if( !( get_user_flags( id ) & read_flags( g_szGiveCreditsFlag ) ) )
  1258.  
  1259.  
  1260.  
  1261. {
  1262.  
  1263.  
  1264.  
  1265. client_cmd( id, "echo NU ai acces la aceasta comanda!" );
  1266.  
  1267.  
  1268.  
  1269. return PLUGIN_HANDLED;
  1270.  
  1271.  
  1272.  
  1273. }
  1274.  
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280.  
  1281. new szFirstArg[ 32 ], szSecondArg[ 10 ];
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289. read_argv( 1, szFirstArg, sizeof ( szFirstArg ) -1 );
  1290.  
  1291.  
  1292.  
  1293. read_argv( 2, szSecondArg, sizeof ( szSecondArg ) -1 );
  1294.  
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301. if( equal( szFirstArg, "" ) || equal( szSecondArg, "" ) )
  1302.  
  1303.  
  1304.  
  1305. {
  1306.  
  1307.  
  1308.  
  1309. client_cmd( id, "echo amx_give_credits < nume/ @ALL/ @T/ @CT > < credite >" );
  1310.  
  1311.  
  1312.  
  1313. return PLUGIN_HANDLED;
  1314.  
  1315.  
  1316.  
  1317. }
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325. new iPlayers[ 32 ];
  1326.  
  1327.  
  1328.  
  1329. new iPlayersNum;
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.  
  1336.  
  1337. new iCredits = str_to_num( szSecondArg );
  1338.  
  1339.  
  1340. if( iCredits <= 0 )
  1341.  
  1342.  
  1343.  
  1344. {
  1345.  
  1346.  
  1347.  
  1348. client_cmd( id, "echo Valoare creditelor trebuie sa fie mai mare decat 0!" );
  1349.  
  1350.  
  1351.  
  1352. return PLUGIN_HANDLED;
  1353.  
  1354.  
  1355.  
  1356. }
  1357.  
  1358.  
  1359.  
  1360.  
  1361.  
  1362.  
  1363.  
  1364. if( szFirstArg[ 0 ] == '@' )
  1365.  
  1366.  
  1367.  
  1368. {
  1369.  
  1370.  
  1371.  
  1372.  
  1373.  
  1374.  
  1375.  
  1376. switch ( szFirstArg[ 1 ] )
  1377.  
  1378.  
  1379.  
  1380. {
  1381.  
  1382.  
  1383.  
  1384. case 'A':
  1385.  
  1386.  
  1387.  
  1388. {
  1389.  
  1390.  
  1391.  
  1392. if( equal( szFirstArg, "@ALL" ) )
  1393.  
  1394.  
  1395.  
  1396. {
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403.  
  1404. get_players( iPlayers, iPlayersNum, "ch" );
  1405.  
  1406.  
  1407.  
  1408. for( new i = 0; i < iPlayersNum ; i++ )
  1409.  
  1410.  
  1411.  
  1412. g_iUserCredits[ iPlayers[ i ] ] += iCredits;
  1413.  
  1414.  
  1415.  
  1416.  
  1417.  
  1418.  
  1419.  
  1420. new szName[ 32 ];
  1421.  
  1422.  
  1423.  
  1424. get_user_name( id, szName, sizeof ( szName ) -1 );
  1425.  
  1426.  
  1427.  
  1428. client_printc(id, "!g%s !tFondator !g%s !ta depus !g%i Euro!t in conturile tuturor jucatorilor.", g_szTag, szName, iCredits );
  1429.  
  1430.  
  1431.  
  1432. return PLUGIN_HANDLED;
  1433.  
  1434.  
  1435.  
  1436. }
  1437.  
  1438.  
  1439.  
  1440. }
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448. case 'T':
  1449.  
  1450.  
  1451.  
  1452. {
  1453.  
  1454.  
  1455.  
  1456. if( equal( szFirstArg, "@T" ) )
  1457.  
  1458.  
  1459.  
  1460. {
  1461.  
  1462.  
  1463.  
  1464.  
  1465.  
  1466.  
  1467.  
  1468. get_players( iPlayers, iPlayersNum, "ceh", "TERRORIST" );
  1469.  
  1470.  
  1471.  
  1472. if( iPlayersNum == 0 )
  1473.  
  1474.  
  1475.  
  1476. {
  1477.  
  1478.  
  1479.  
  1480. client_cmd( id, "echo NU se afla niciun jucator in aceasta echipa!" );
  1481.  
  1482.  
  1483.  
  1484. return PLUGIN_HANDLED;
  1485.  
  1486.  
  1487.  
  1488. }
  1489.  
  1490.  
  1491.  
  1492. for( new i = 0; i < iPlayersNum ; i++ )
  1493.  
  1494.  
  1495.  
  1496. g_iUserCredits[ iPlayers[ i ] ] += iCredits;
  1497.  
  1498.  
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504. new szName[ 32 ];
  1505.  
  1506.  
  1507.  
  1508. get_user_name( id, szName, sizeof ( szName ) -1 );
  1509.  
  1510.  
  1511.  
  1512. ColorChat( 0, RED, "^x04^%s^x01 Adminul^x03 %s^x01 le-a dat^x03 %i^x01 credite jucatorilor de la^x03 TERO^x01!", g_szTag, szName, iCredits );
  1513.  
  1514.  
  1515.  
  1516. return PLUGIN_HANDLED;
  1517.  
  1518.  
  1519.  
  1520. }
  1521.  
  1522.  
  1523.  
  1524. }
  1525.  
  1526.  
  1527.  
  1528.  
  1529.  
  1530.  
  1531.  
  1532. case 'C':
  1533.  
  1534.  
  1535.  
  1536. {
  1537.  
  1538.  
  1539.  
  1540. if( equal( szFirstArg, "@CT" ) )
  1541.  
  1542.  
  1543.  
  1544. {
  1545.  
  1546.  
  1547.  
  1548.  
  1549.  
  1550.  
  1551.  
  1552. get_players( iPlayers, iPlayersNum, "ceh", "CT" );
  1553.  
  1554.  
  1555.  
  1556. if( iPlayersNum == 0 )
  1557.  
  1558.  
  1559.  
  1560. {
  1561.  
  1562.  
  1563.  
  1564. client_cmd( id, "echo NU se afla niciun jucator in aceasta echipa!" );
  1565.  
  1566.  
  1567.  
  1568. return PLUGIN_HANDLED;
  1569.  
  1570.  
  1571.  
  1572. }
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580. for( new i = 0; i < iPlayersNum ; i++ )
  1581.  
  1582.  
  1583.  
  1584. g_iUserCredits[ iPlayers[ i ] ] += iCredits;
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592. new szName[ 32 ];
  1593.  
  1594.  
  1595.  
  1596. get_user_name( id, szName, sizeof ( szName ) -1 );
  1597.  
  1598.  
  1599.  
  1600. ColorChat( 0, RED, "^x04^%s^x01 Adminul^x03 %s^x01 le-a dat^x03 %i^x01 credite jucatorilor de la^x03 CT^x01!", g_szTag, szName, iCredits );
  1601.  
  1602.  
  1603.  
  1604. return PLUGIN_HANDLED;
  1605.  
  1606.  
  1607.  
  1608. }
  1609.  
  1610.  
  1611.  
  1612. }
  1613.  
  1614.  
  1615.  
  1616. }
  1617.  
  1618.  
  1619.  
  1620. }
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626.  
  1627.  
  1628. new iPlayer = cmd_target( id, szFirstArg, 8 );
  1629.  
  1630.  
  1631.  
  1632. if( !iPlayer )
  1633.  
  1634.  
  1635.  
  1636. {
  1637.  
  1638.  
  1639.  
  1640. client_cmd( id, "echo Jucatorul %s nu a fost gasit!", szFirstArg );
  1641.  
  1642.  
  1643.  
  1644. return PLUGIN_HANDLED;
  1645.  
  1646.  
  1647.  
  1648. }
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655.  
  1656. g_iUserCredits[ iPlayer ] += iCredits;
  1657.  
  1658.  
  1659.  
  1660.  
  1661.  
  1662.  
  1663.  
  1664. new szName[ 32 ], _szName[ 32 ];
  1665.  
  1666.  
  1667.  
  1668. get_user_name( id, szName, sizeof ( szName ) -1 );
  1669.  
  1670.  
  1671.  
  1672. get_user_name( iPlayer, _szName, sizeof ( _szName ) -1 );
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680. client_printc(id, "!g%s !tFondator !g%s !ta depus !g%i Euro !tin contul lui !g%s!t.", g_szTag, szName, iCredits, _szName );
  1681.  
  1682.  
  1683.  
  1684.  
  1685.  
  1686.  
  1687.  
  1688. return PLUGIN_HANDLED;
  1689.  
  1690.  
  1691.  
  1692.  
  1693.  
  1694.  
  1695.  
  1696.  
  1697.  
  1698.  
  1699.  
  1700. }
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708. public ClCmdTakeCredits( id )
  1709.  
  1710.  
  1711.  
  1712. {
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720. if( !( get_user_flags( id ) & read_flags( g_szGiveCreditsFlag ) ) )
  1721.  
  1722.  
  1723.  
  1724. {
  1725.  
  1726.  
  1727.  
  1728. client_cmd( id, "echo NU ai acces la aceasta comanda!" );
  1729.  
  1730.  
  1731.  
  1732. return PLUGIN_HANDLED;
  1733.  
  1734.  
  1735.  
  1736. }
  1737.  
  1738.  
  1739.  
  1740.  
  1741.  
  1742.  
  1743.  
  1744. new szFirstArg[ 32 ], szSecondArg[ 10 ];
  1745.  
  1746.  
  1747.  
  1748.  
  1749.  
  1750.  
  1751.  
  1752. read_argv( 1, szFirstArg, sizeof ( szFirstArg ) -1 );
  1753.  
  1754.  
  1755.  
  1756. read_argv( 2, szSecondArg, sizeof ( szSecondArg ) -1 );
  1757.  
  1758.  
  1759.  
  1760.  
  1761.  
  1762.  
  1763.  
  1764. if( equal( szFirstArg, "" ) || equal( szSecondArg, "" ) )
  1765.  
  1766.  
  1767.  
  1768. {
  1769.  
  1770.  
  1771.  
  1772. client_cmd( id, "echo amx_take_credits < nume > < credite >" );
  1773.  
  1774.  
  1775.  
  1776. return PLUGIN_HANDLED;
  1777.  
  1778.  
  1779.  
  1780. }
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788. new iCredits = str_to_num( szSecondArg );
  1789.  
  1790.  
  1791.  
  1792. if( iCredits <= 0 )
  1793.  
  1794.  
  1795.  
  1796. {
  1797.  
  1798.  
  1799.  
  1800. client_cmd( id, "echo Valoare creditelor trebuie sa fie mai mare decat 0!" );
  1801.  
  1802.  
  1803.  
  1804. return PLUGIN_HANDLED;
  1805.  
  1806.  
  1807.  
  1808. }
  1809.  
  1810.  
  1811.  
  1812.  
  1813.  
  1814.  
  1815.  
  1816. new iPlayer = cmd_target( id, szFirstArg, 8 );
  1817.  
  1818.  
  1819.  
  1820. if( !iPlayer )
  1821.  
  1822.  
  1823.  
  1824. {
  1825.  
  1826.  
  1827.  
  1828. client_cmd( id, "echo Jucatorul %s nu a fost gasit!", szFirstArg );
  1829.  
  1830.  
  1831.  
  1832. return PLUGIN_HANDLED;
  1833.  
  1834.  
  1835.  
  1836. }
  1837.  
  1838.  
  1839.  
  1840.  
  1841.  
  1842.  
  1843.  
  1844. if( g_iUserCredits[ iPlayer ] < iCredits )
  1845.  
  1846.  
  1847.  
  1848. {
  1849.  
  1850.  
  1851.  
  1852. client_cmd( id, "echo Jucatorul %s nu are atatea credite!Are doar %i", szFirstArg, g_iUserCredits[ iPlayer ] );
  1853.  
  1854.  
  1855.  
  1856. return PLUGIN_HANDLED;
  1857.  
  1858.  
  1859.  
  1860. }
  1861.  
  1862.  
  1863.  
  1864.  
  1865.  
  1866.  
  1867.  
  1868. g_iUserCredits[ iPlayer ] -= iCredits;
  1869.  
  1870.  
  1871.  
  1872.  
  1873.  
  1874.  
  1875.  
  1876. new szName[ 32 ], _szName[ 32 ];
  1877.  
  1878.  
  1879.  
  1880. get_user_name( id, szName, sizeof ( szName ) -1 );
  1881.  
  1882.  
  1883.  
  1884. get_user_name( iPlayer, _szName, sizeof ( _szName ) -1 );
  1885.  
  1886.  
  1887.  
  1888.  
  1889.  
  1890.  
  1891.  
  1892. client_printc(id, "!g%s !tFondator !g%s !ta retras !g%i Euro !tdin contul lui !g%s1!t.", g_szTag, szName, iCredits, _szName );
  1893.  
  1894.  
  1895.  
  1896.  
  1897.  
  1898.  
  1899.  
  1900. return PLUGIN_HANDLED;
  1901.  
  1902.  
  1903.  
  1904.  
  1905.  
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.  
  1912. }
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919.  
  1920. public ClCmdFcsDonate( id )
  1921.  
  1922.  
  1923.  
  1924. {
  1925.  
  1926.  
  1927.  
  1928. if( get_pcvar_num( g_iCvarTSEnable ) != 1 )
  1929.  
  1930.  
  1931.  
  1932. {
  1933.  
  1934.  
  1935.  
  1936. ColorChat( id, RED, "^x04%s^x03 Comanda dezactivata de catre server!", g_szTag );
  1937.  
  1938.  
  1939.  
  1940. return PLUGIN_HANDLED;
  1941.  
  1942.  
  1943.  
  1944. }
  1945.  
  1946.  
  1947.  
  1948.  
  1949.  
  1950.  
  1951.  
  1952. new szFirstArg[ 32 ], szSecondArg[ 10 ];
  1953.  
  1954.  
  1955.  
  1956.  
  1957.  
  1958.  
  1959.  
  1960. read_argv( 1, szFirstArg, sizeof ( szFirstArg ) -1 );
  1961.  
  1962.  
  1963.  
  1964. read_argv( 2, szSecondArg, sizeof ( szSecondArg ) -1 );
  1965.  
  1966.  
  1967.  
  1968.  
  1969.  
  1970.  
  1971.  
  1972. if( equal( szFirstArg, "" ) || equal( szSecondArg, "" ) )
  1973.  
  1974.  
  1975.  
  1976. {
  1977.  
  1978.  
  1979.  
  1980. ColorChat( id, RED, "^x04%s^x03 Folosire:^x04 /transfer ^x01< ^x03nume ^x01> <^x04 Suma de Euro^x01 >", g_szTag );
  1981.  
  1982.  
  1983.  
  1984. return PLUGIN_HANDLED;
  1985.  
  1986.  
  1987.  
  1988. }
  1989.  
  1990.  
  1991.  
  1992.  
  1993.  
  1994.  
  1995.  
  1996. new iPlayer = cmd_target( id, szFirstArg, 8 );
  1997.  
  1998.  
  1999.  
  2000.  
  2001.  
  2002.  
  2003.  
  2004. if( !iPlayer )
  2005.  
  2006.  
  2007.  
  2008. {
  2009.  
  2010.  
  2011.  
  2012. ColorChat( id, RED, "^x04%s^x03 Acel jucator nu a fost gasit.", g_szTag );
  2013.  
  2014.  
  2015.  
  2016. return PLUGIN_HANDLED;
  2017.  
  2018.  
  2019.  
  2020. }
  2021.  
  2022.  
  2023.  
  2024.  
  2025.  
  2026.  
  2027.  
  2028. //if( iPlayer == id )
  2029.  
  2030.  
  2031.  
  2032. //{
  2033.  
  2034.  
  2035.  
  2036. // ColorChat( id, RED, "^x04%s^x03 Nu-ti poti transfera Euro.", g_szTag );
  2037.  
  2038.  
  2039.  
  2040. // return PLUGIN_HANDLED;
  2041.  
  2042.  
  2043.  
  2044. //}
  2045.  
  2046.  
  2047.  
  2048.  
  2049.  
  2050.  
  2051.  
  2052.  
  2053.  
  2054.  
  2055.  
  2056. new iCredits;
  2057.  
  2058.  
  2059.  
  2060. iCredits = str_to_num( szSecondArg );
  2061.  
  2062.  
  2063.  
  2064.  
  2065.  
  2066.  
  2067.  
  2068.  
  2069.  
  2070.  
  2071.  
  2072. if( iCredits <= 0 )
  2073.  
  2074.  
  2075.  
  2076. {
  2077.  
  2078.  
  2079.  
  2080. ColorChat( id, RED, "^x04%s^x03 Trebuie sa introduci o valoare mai mare de 0.", g_szTag );
  2081.  
  2082.  
  2083.  
  2084. return PLUGIN_HANDLED;
  2085.  
  2086.  
  2087.  
  2088. }
  2089.  
  2090.  
  2091.  
  2092.  
  2093.  
  2094.  
  2095.  
  2096. new iMaxCredits = get_pcvar_num( g_iCvarTSMaxCredits );
  2097.  
  2098.  
  2099.  
  2100. if( iCredits > iMaxCredits )
  2101.  
  2102.  
  2103.  
  2104. {
  2105.  
  2106.  
  2107.  
  2108. ColorChat( id, RED, "^x04%s^x03 Poti transfera maxim^x04 %i Euro^x03%s o data!", g_szTag, iMaxCredits, iMaxCredits == 1 ? "" : "" );
  2109.  
  2110.  
  2111.  
  2112. return PLUGIN_HANDLED;
  2113.  
  2114.  
  2115.  
  2116. }
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124. if( g_iUserCredits[ id ] < iCredits )
  2125.  
  2126.  
  2127.  
  2128. {
  2129.  
  2130.  
  2131.  
  2132. ColorChat( id, RED, "^x04%s^x03 Nu ai destui^x04 Euro^x03, ai doar^x04 %i Euro %s^x03.", g_szTag, g_iUserCredits[ id ], g_iUserCredits[ id ] == 1 ? "" : "" );
  2133.  
  2134.  
  2135.  
  2136. return PLUGIN_HANDLED;
  2137.  
  2138.  
  2139.  
  2140. }
  2141.  
  2142.  
  2143.  
  2144.  
  2145.  
  2146.  
  2147.  
  2148. g_iUserCredits[ id ] -= iCredits;
  2149.  
  2150.  
  2151.  
  2152. g_iUserCredits[ iPlayer ] += iCredits;
  2153.  
  2154.  
  2155.  
  2156.  
  2157.  
  2158.  
  2159.  
  2160. SaveCredits( id );
  2161.  
  2162.  
  2163.  
  2164. SaveCredits( iPlayer );
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172. new szFirstName[ 32 ], szSecondName[ 32 ];
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180. get_user_name( id, szFirstName, sizeof ( szFirstName ) -1 );
  2181.  
  2182.  
  2183.  
  2184. get_user_name( iPlayer, szSecondName, sizeof ( szSecondName ) -1 );
  2185.  
  2186.  
  2187.  
  2188.  
  2189.  
  2190.  
  2191.  
  2192. ColorChat( 0, RED, "^x04%s^x03 %s^x04 i-a transferat^03 %i Euro%s^x04 lui^x03 %s^x04 .", g_szTag, szFirstName, iCredits, iCredits == 1 ? "" : "", szSecondName );
  2193.  
  2194.  
  2195.  
  2196. return PLUGIN_HANDLED;
  2197.  
  2198.  
  2199.  
  2200. }
  2201.  
  2202.  
  2203.  
  2204.  
  2205.  
  2206.  
  2207.  
  2208. public ham_SpawnPlayerPost( id )
  2209.  
  2210.  
  2211.  
  2212. {
  2213.  
  2214.  
  2215.  
  2216. if( is_user_alive( id ) )
  2217.  
  2218.  
  2219.  
  2220. g_iUserRetired[ id ] = 0;
  2221.  
  2222.  
  2223.  
  2224. }
  2225.  
  2226.  
  2227.  
  2228.  
  2229.  
  2230.  
  2231.  
  2232. public Fwd_ClientUserInfoChanged( id, szBuffer )
  2233.  
  2234.  
  2235.  
  2236. {
  2237.  
  2238.  
  2239.  
  2240. if ( !is_user_connected( id ) )
  2241.  
  2242.  
  2243.  
  2244. return FMRES_IGNORED;
  2245.  
  2246.  
  2247.  
  2248.  
  2249.  
  2250.  
  2251.  
  2252. static szNewName[ 32 ];
  2253.  
  2254.  
  2255.  
  2256.  
  2257.  
  2258.  
  2259.  
  2260. engfunc( EngFunc_InfoKeyValue, szBuffer, "name", szNewName, sizeof ( szNewName ) -1 );
  2261.  
  2262.  
  2263.  
  2264.  
  2265.  
  2266.  
  2267.  
  2268. if ( equal( szNewName, g_szName[ id ] ) )
  2269.  
  2270.  
  2271.  
  2272. return FMRES_IGNORED;
  2273.  
  2274.  
  2275.  
  2276.  
  2277.  
  2278.  
  2279.  
  2280. SaveCredits( id );
  2281.  
  2282.  
  2283.  
  2284.  
  2285.  
  2286.  
  2287.  
  2288. ColorChat( id, RED, "^x04%s^x03 Tocmai ti-ai schimbat numele din^x04 %s^x03 in^x04 %s^x03 !", g_szTag, g_szName[ id ], szNewName );
  2289.  
  2290.  
  2291.  
  2292. ColorChat( id, RED, "^x04%s^x03 Am salvat^x04 %i Euro^x03 pe numele^x04 %s^x03 !", g_szTag, g_iUserCredits[ id ], g_szName[ id ] );
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298.  
  2299.  
  2300. copy( g_szName[ id ], sizeof ( g_szName[] ) -1, szNewName );
  2301.  
  2302.  
  2303.  
  2304. LoadCredits( id );
  2305.  
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312. ColorChat( id, RED, "^x04%s^x03 Am incarcat^x04 %i^x03 Euro de pe noul nume ^x04(^x03 %s^x04 )", g_szTag, g_iUserCredits[ id ], g_szName[ id ] );
  2313.  
  2314.  
  2315.  
  2316.  
  2317.  
  2318.  
  2319.  
  2320. return FMRES_IGNORED;
  2321.  
  2322.  
  2323.  
  2324. }
  2325.  
  2326.  
  2327.  
  2328.  
  2329.  
  2330.  
  2331.  
  2332.  
  2333.  
  2334.  
  2335.  
  2336. public LoadCredits( id )
  2337.  
  2338.  
  2339.  
  2340. {
  2341.  
  2342.  
  2343.  
  2344. iVault = nvault_open( "FurienCreditsSystem" );
  2345.  
  2346.  
  2347.  
  2348.  
  2349.  
  2350.  
  2351.  
  2352. if( iVault == INVALID_HANDLE )
  2353.  
  2354.  
  2355.  
  2356. {
  2357.  
  2358.  
  2359.  
  2360. set_fail_state( "nValut returned invalid handle!" );
  2361.  
  2362.  
  2363.  
  2364. }
  2365.  
  2366.  
  2367.  
  2368.  
  2369.  
  2370.  
  2371.  
  2372. static szData[ 256 ], iTimestamp;
  2373.  
  2374.  
  2375.  
  2376.  
  2377.  
  2378.  
  2379.  
  2380. if( nvault_lookup( iVault, g_szName[ id ], szData, sizeof ( szData ) -1, iTimestamp ) )
  2381.  
  2382.  
  2383.  
  2384. {
  2385.  
  2386.  
  2387.  
  2388. static szCredits[ 15 ];
  2389.  
  2390.  
  2391.  
  2392. parse( szData, szCredits, sizeof ( szCredits ) -1 );
  2393.  
  2394.  
  2395.  
  2396. g_iUserCredits[ id ] = str_to_num( szCredits );
  2397.  
  2398.  
  2399.  
  2400. return;
  2401.  
  2402.  
  2403.  
  2404. }
  2405.  
  2406.  
  2407.  
  2408. else
  2409.  
  2410.  
  2411.  
  2412. {
  2413.  
  2414.  
  2415.  
  2416. g_iUserCredits[ id ] = get_pcvar_num( g_iCvarEntry );
  2417.  
  2418.  
  2419.  
  2420. }
  2421.  
  2422.  
  2423.  
  2424.  
  2425.  
  2426.  
  2427.  
  2428. nvault_close( iVault );
  2429.  
  2430.  
  2431.  
  2432.  
  2433.  
  2434.  
  2435.  
  2436. }
  2437.  
  2438.  
  2439.  
  2440.  
  2441.  
  2442.  
  2443.  
  2444.  
  2445.  
  2446.  
  2447.  
  2448. public SaveCredits( id )
  2449.  
  2450.  
  2451.  
  2452. {
  2453.  
  2454.  
  2455.  
  2456.  
  2457.  
  2458.  
  2459.  
  2460. iVault = nvault_open( "FurienCreditsSystem" );
  2461.  
  2462.  
  2463.  
  2464.  
  2465.  
  2466.  
  2467.  
  2468. if( iVault == INVALID_HANDLE )
  2469.  
  2470.  
  2471.  
  2472. {
  2473.  
  2474.  
  2475.  
  2476. set_fail_state( "nValut returned invalid handle!" );
  2477.  
  2478.  
  2479.  
  2480. }
  2481.  
  2482.  
  2483.  
  2484.  
  2485.  
  2486.  
  2487.  
  2488. static szData[ 256 ];
  2489.  
  2490.  
  2491.  
  2492. formatex( szData, sizeof ( szData ) -1, "%i", g_iUserCredits[ id ] );
  2493.  
  2494.  
  2495.  
  2496.  
  2497.  
  2498.  
  2499.  
  2500. nvault_set( iVault, g_szName[ id ], szData );
  2501.  
  2502.  
  2503.  
  2504. nvault_close( iVault );
  2505.  
  2506.  
  2507.  
  2508. }
  2509.  
  2510.  
  2511.  
  2512.  
  2513.  
  2514.  
  2515.  
  2516.  
  2517.  
  2518.  
  2519.  
  2520. public task_PTRFunctions( )
  2521.  
  2522.  
  2523.  
  2524. {
  2525.  
  2526.  
  2527.  
  2528. if( get_pcvar_num( g_iCvarPTREnable ) != 1 )
  2529.  
  2530.  
  2531.  
  2532. return;
  2533.  
  2534.  
  2535.  
  2536.  
  2537.  
  2538.  
  2539.  
  2540. static iPlayers[ 32 ];
  2541.  
  2542.  
  2543.  
  2544. static iPlayersNum;
  2545.  
  2546.  
  2547.  
  2548.  
  2549.  
  2550.  
  2551.  
  2552. get_players( iPlayers, iPlayersNum, "ch" );
  2553.  
  2554.  
  2555.  
  2556. if( !iPlayersNum )
  2557.  
  2558.  
  2559.  
  2560. return;
  2561.  
  2562.  
  2563.  
  2564.  
  2565.  
  2566.  
  2567.  
  2568. static id, i;
  2569.  
  2570.  
  2571.  
  2572. for( i = 0; i < iPlayersNum; i++ )
  2573.  
  2574.  
  2575.  
  2576. {
  2577.  
  2578.  
  2579.  
  2580. id = iPlayers[ i ];
  2581.  
  2582.  
  2583.  
  2584.  
  2585.  
  2586.  
  2587.  
  2588. g_iUserTime[ id ]++;
  2589.  
  2590.  
  2591.  
  2592. static iTime;
  2593.  
  2594.  
  2595.  
  2596. iTime = get_pcvar_num( g_iCvarPTRMinutes ) ;
  2597.  
  2598.  
  2599.  
  2600.  
  2601.  
  2602.  
  2603.  
  2604. if( g_iUserTime[ id ] >= iTime * 60 )
  2605.  
  2606.  
  2607.  
  2608. {
  2609.  
  2610.  
  2611.  
  2612. g_iUserTime[ id ] -= iTime * 60;
  2613.  
  2614.  
  2615.  
  2616.  
  2617.  
  2618.  
  2619.  
  2620. static iCredits;
  2621.  
  2622.  
  2623.  
  2624. iCredits = get_pcvar_num( g_iCvarPTRCredits );
  2625.  
  2626.  
  2627.  
  2628.  
  2629.  
  2630.  
  2631.  
  2632. g_iUserCredits[ id ] += iCredits;
  2633.  
  2634.  
  2635.  
  2636. client_printc(id, "!g%s !tAi primit !g%i Euro !tpentru !g%i !tminute jucate.",
  2637.  
  2638.  
  2639.  
  2640. g_szTag, iCredits, iTime );
  2641.  
  2642.  
  2643.  
  2644.  
  2645.  
  2646.  
  2647.  
  2648. SaveCredits( id );
  2649.  
  2650.  
  2651.  
  2652.  
  2653.  
  2654.  
  2655.  
  2656. }
  2657.  
  2658.  
  2659.  
  2660. }
  2661.  
  2662.  
  2663.  
  2664.  
  2665.  
  2666.  
  2667.  
  2668. }
  2669.  
  2670.  
  2671.  
  2672.  
  2673.  
  2674.  
  2675.  
  2676. public ev_DeathMsg( )
  2677.  
  2678.  
  2679.  
  2680. {
  2681.  
  2682.  
  2683.  
  2684. if( get_pcvar_num( g_iCvarKREnable ) != 1 )
  2685.  
  2686.  
  2687.  
  2688. return;
  2689.  
  2690.  
  2691.  
  2692.  
  2693.  
  2694.  
  2695.  
  2696. new iKiller = read_data( 1 );
  2697.  
  2698.  
  2699.  
  2700. if( iKiller == read_data( 2 ) )
  2701.  
  2702.  
  2703.  
  2704. return;
  2705.  
  2706.  
  2707.  
  2708.  
  2709.  
  2710.  
  2711.  
  2712. new iCredits = get_pcvar_num( g_iCvarKRCredits );
  2713.  
  2714.  
  2715.  
  2716.  
  2717.  
  2718.  
  2719.  
  2720. if( read_data( 3 ) )
  2721.  
  2722.  
  2723.  
  2724. iCredits += get_pcvar_num( g_iCvarKRHSCredits );
  2725.  
  2726.  
  2727.  
  2728.  
  2729.  
  2730.  
  2731.  
  2732. g_iUserCredits[ iKiller ] += iCredits;
  2733.  
  2734.  
  2735.  
  2736. SaveCredits( iKiller );
  2737.  
  2738.  
  2739.  
  2740.  
  2741.  
  2742.  
  2743.  
  2744. }
  2745.  
  2746.  
  2747.  
  2748.  
  2749.  
  2750.  
  2751.  
  2752.  
  2753.  
  2754.  
  2755.  
  2756. public ev_SendAudioTerWin( )
  2757.  
  2758.  
  2759.  
  2760. {
  2761.  
  2762.  
  2763.  
  2764. static iCvarEnable, iCvarFurienReward;
  2765.  
  2766.  
  2767.  
  2768. iCvarEnable = get_pcvar_num( g_iCvarWTREnable );
  2769.  
  2770.  
  2771.  
  2772. iCvarFurienReward = get_pcvar_num( g_iCvarWTRFurien );
  2773.  
  2774.  
  2775.  
  2776.  
  2777.  
  2778.  
  2779.  
  2780. if( iCvarEnable != 1 || iCvarFurienReward == 0 )
  2781.  
  2782.  
  2783.  
  2784. return;
  2785.  
  2786.  
  2787.  
  2788.  
  2789.  
  2790.  
  2791.  
  2792. GiveTeamReward( FCS_TEAM_FURIEN, iCvarFurienReward );
  2793.  
  2794.  
  2795.  
  2796.  
  2797.  
  2798.  
  2799.  
  2800. }
  2801.  
  2802.  
  2803.  
  2804.  
  2805.  
  2806.  
  2807.  
  2808.  
  2809.  
  2810.  
  2811.  
  2812. public ev_SendAudioCtWin( )
  2813.  
  2814.  
  2815.  
  2816. {
  2817.  
  2818.  
  2819.  
  2820.  
  2821.  
  2822.  
  2823.  
  2824. static iCvarEnable, iCvarAntiReward;
  2825.  
  2826.  
  2827.  
  2828. iCvarEnable = get_pcvar_num( g_iCvarWTREnable );
  2829.  
  2830.  
  2831.  
  2832. iCvarAntiReward = get_pcvar_num( g_iCvarWTRAnti );
  2833.  
  2834.  
  2835.  
  2836.  
  2837.  
  2838.  
  2839.  
  2840. if( iCvarEnable != 1 || iCvarAntiReward == 0 )
  2841.  
  2842.  
  2843.  
  2844. return;
  2845.  
  2846.  
  2847.  
  2848.  
  2849.  
  2850.  
  2851.  
  2852. GiveTeamReward( FCS_TEAM_ANTIFURIEN, iCvarAntiReward );
  2853.  
  2854.  
  2855.  
  2856. }
  2857.  
  2858.  
  2859.  
  2860.  
  2861.  
  2862.  
  2863.  
  2864. public GiveTeamReward( const CsTeams:iTeam, iCredits )
  2865.  
  2866.  
  2867.  
  2868. {
  2869.  
  2870.  
  2871.  
  2872.  
  2873.  
  2874.  
  2875.  
  2876. static iPlayers[ 32 ];
  2877.  
  2878.  
  2879.  
  2880. static iPlayersNum;
  2881.  
  2882.  
  2883.  
  2884.  
  2885.  
  2886.  
  2887.  
  2888. get_players( iPlayers, iPlayersNum, "ch" );
  2889.  
  2890.  
  2891.  
  2892. if( !iPlayersNum )
  2893.  
  2894.  
  2895.  
  2896. return;
  2897.  
  2898.  
  2899.  
  2900.  
  2901.  
  2902.  
  2903.  
  2904. static id, i;
  2905.  
  2906.  
  2907.  
  2908. for( i = 0; i < iPlayersNum; i++ )
  2909.  
  2910.  
  2911.  
  2912. {
  2913.  
  2914.  
  2915.  
  2916. id = iPlayers[ i ];
  2917.  
  2918.  
  2919.  
  2920. if( cs_get_user_team( id ) == iTeam )
  2921.  
  2922.  
  2923.  
  2924. {
  2925.  
  2926.  
  2927.  
  2928. client_printc(id, "!g%s !tAi primit !g%i Euro%s !tpentru castigarea rundei.", g_szTag, iCredits, iCredits == 1 ? "" : "" );
  2929.  
  2930.  
  2931.  
  2932. g_iUserCredits[ id ] += iCredits;
  2933.  
  2934.  
  2935.  
  2936. }
  2937.  
  2938.  
  2939.  
  2940. }
  2941.  
  2942.  
  2943.  
  2944. }
  2945.  
  2946.  
  2947.  
  2948.  
  2949.  
  2950.  
  2951.  
  2952. public plugin_end( )
  2953.  
  2954.  
  2955.  
  2956. {
  2957.  
  2958.  
  2959.  
  2960. iVault = nvault_open( "FurienCreditsSystem" );
  2961.  
  2962.  
  2963.  
  2964.  
  2965.  
  2966.  
  2967.  
  2968. if( iVault == INVALID_HANDLE )
  2969.  
  2970.  
  2971.  
  2972. {
  2973.  
  2974.  
  2975.  
  2976. set_fail_state( "nValut returned invalid handle!" );
  2977.  
  2978.  
  2979.  
  2980. }
  2981.  
  2982.  
  2983.  
  2984.  
  2985.  
  2986.  
  2987.  
  2988. new iDays = get_pcvar_num( g_iCvarPruneDays );
  2989.  
  2990.  
  2991.  
  2992. if( iDays > 0 )
  2993.  
  2994.  
  2995.  
  2996. {
  2997.  
  2998.  
  2999.  
  3000. nvault_prune( iVault, 0, get_systime( ) - ( iDays * ONE_DAY_IN_SECONDS ) );
  3001.  
  3002.  
  3003.  
  3004. }
  3005.  
  3006.  
  3007.  
  3008.  
  3009.  
  3010.  
  3011.  
  3012. nvault_close( iVault );
  3013.  
  3014.  
  3015.  
  3016. }
  3017.  
  3018.  
  3019.  
  3020.  
  3021.  
  3022.  
  3023.  
  3024. ColorChat( id, Color:iType, const msg[ ], { Float, Sql, Result, _}:... )
  3025.  
  3026.  
  3027.  
  3028. {
  3029.  
  3030.  
  3031.  
  3032.  
  3033.  
  3034.  
  3035.  
  3036. // Daca nu se afla nici un jucator pe server oprim TOT. Altfel dam de erori..
  3037.  
  3038.  
  3039.  
  3040. if( !get_playersnum( ) ) return;
  3041.  
  3042.  
  3043.  
  3044.  
  3045.  
  3046.  
  3047.  
  3048. new szMessage[ 256 ];
  3049.  
  3050.  
  3051.  
  3052.  
  3053.  
  3054.  
  3055.  
  3056. switch( iType )
  3057.  
  3058.  
  3059.  
  3060. {
  3061.  
  3062.  
  3063.  
  3064. // Culoarea care o are jucatorul setata in cvar-ul scr_concolor.
  3065.  
  3066.  
  3067.  
  3068. case NORMAL: szMessage[ 0 ] = 0x01;
  3069.  
  3070.  
  3071.  
  3072.  
  3073.  
  3074.  
  3075.  
  3076. // Culoare Verde.
  3077.  
  3078.  
  3079.  
  3080. case GREEN: szMessage[ 0 ] = 0x04;
  3081.  
  3082.  
  3083.  
  3084.  
  3085.  
  3086.  
  3087.  
  3088. // Alb, Rosu, Albastru.
  3089.  
  3090.  
  3091.  
  3092. default: szMessage[ 0 ] = 0x03;
  3093.  
  3094.  
  3095.  
  3096. }
  3097.  
  3098.  
  3099.  
  3100.  
  3101.  
  3102.  
  3103.  
  3104. vformat( szMessage[ 1 ], 251, msg, 4 );
  3105.  
  3106.  
  3107.  
  3108.  
  3109.  
  3110.  
  3111.  
  3112. // Ne asiguram ca mesajul nu este mai lung de 192 de caractere.Altfel pica server-ul.
  3113.  
  3114.  
  3115.  
  3116. szMessage[ 192 ] = '^0';
  3117.  
  3118.  
  3119.  
  3120.  
  3121.  
  3122.  
  3123.  
  3124.  
  3125.  
  3126.  
  3127.  
  3128. new iTeam, iColorChange, iPlayerIndex, MSG_Type;
  3129.  
  3130.  
  3131.  
  3132.  
  3133.  
  3134.  
  3135.  
  3136. if( id )
  3137.  
  3138.  
  3139.  
  3140. {
  3141.  
  3142.  
  3143.  
  3144. MSG_Type = MSG_ONE_UNRELIABLE;
  3145.  
  3146.  
  3147.  
  3148. iPlayerIndex = id;
  3149.  
  3150.  
  3151.  
  3152. }
  3153.  
  3154.  
  3155.  
  3156. else
  3157.  
  3158.  
  3159.  
  3160. {
  3161.  
  3162.  
  3163.  
  3164. iPlayerIndex = CC_FindPlayer( );
  3165.  
  3166.  
  3167.  
  3168. MSG_Type = MSG_ALL;
  3169.  
  3170.  
  3171.  
  3172. }
  3173.  
  3174.  
  3175.  
  3176.  
  3177.  
  3178.  
  3179.  
  3180. iTeam = get_user_team( iPlayerIndex );
  3181.  
  3182.  
  3183.  
  3184. iColorChange = CC_ColorSelection( iPlayerIndex, MSG_Type, iType);
  3185.  
  3186.  
  3187.  
  3188.  
  3189.  
  3190.  
  3191.  
  3192. CC_ShowColorMessage( iPlayerIndex, MSG_Type, szMessage );
  3193.  
  3194.  
  3195.  
  3196.  
  3197.  
  3198.  
  3199.  
  3200. if( iColorChange ) CC_Team_Info( iPlayerIndex, MSG_Type, TeamName[ iTeam ] );
  3201.  
  3202.  
  3203.  
  3204.  
  3205.  
  3206.  
  3207.  
  3208. }
  3209.  
  3210.  
  3211.  
  3212.  
  3213.  
  3214.  
  3215.  
  3216. CC_ShowColorMessage( id, const iType, const szMessage[ ] )
  3217.  
  3218.  
  3219.  
  3220. {
  3221.  
  3222.  
  3223.  
  3224.  
  3225.  
  3226.  
  3227.  
  3228. static bool:bSayTextUsed;
  3229.  
  3230.  
  3231.  
  3232. static iMsgSayText;
  3233.  
  3234.  
  3235.  
  3236.  
  3237.  
  3238.  
  3239.  
  3240. if( !bSayTextUsed )
  3241.  
  3242.  
  3243.  
  3244. {
  3245.  
  3246.  
  3247.  
  3248. iMsgSayText = get_user_msgid( "SayText" );
  3249.  
  3250.  
  3251.  
  3252. bSayTextUsed = true;
  3253.  
  3254.  
  3255.  
  3256. }
  3257.  
  3258.  
  3259.  
  3260.  
  3261.  
  3262.  
  3263.  
  3264. message_begin( iType, iMsgSayText, _, id );
  3265.  
  3266.  
  3267.  
  3268. write_byte( id );
  3269.  
  3270.  
  3271.  
  3272. write_string( szMessage );
  3273.  
  3274.  
  3275.  
  3276. message_end( );
  3277.  
  3278.  
  3279.  
  3280. }
  3281.  
  3282.  
  3283.  
  3284.  
  3285.  
  3286.  
  3287.  
  3288. CC_Team_Info( id, const iType, const szTeam[ ] )
  3289.  
  3290.  
  3291.  
  3292. {
  3293.  
  3294.  
  3295.  
  3296. static bool:bTeamInfoUsed;
  3297.  
  3298.  
  3299.  
  3300. static iMsgTeamInfo;
  3301.  
  3302.  
  3303.  
  3304. if( !bTeamInfoUsed )
  3305.  
  3306.  
  3307.  
  3308. {
  3309.  
  3310.  
  3311.  
  3312. iMsgTeamInfo = get_user_msgid( "TeamInfo" );
  3313.  
  3314.  
  3315.  
  3316. bTeamInfoUsed = true;
  3317.  
  3318.  
  3319.  
  3320. }
  3321.  
  3322.  
  3323.  
  3324.  
  3325.  
  3326.  
  3327.  
  3328. message_begin( iType, iMsgTeamInfo, _, id );
  3329.  
  3330.  
  3331.  
  3332. write_byte( id );
  3333.  
  3334.  
  3335.  
  3336. write_string( szTeam );
  3337.  
  3338.  
  3339.  
  3340. message_end( );
  3341.  
  3342.  
  3343.  
  3344.  
  3345.  
  3346.  
  3347.  
  3348. return PLUGIN_HANDLED;
  3349.  
  3350.  
  3351.  
  3352. }
  3353.  
  3354.  
  3355.  
  3356.  
  3357.  
  3358.  
  3359.  
  3360. CC_ColorSelection( id, const iType, Color:iColorType)
  3361.  
  3362.  
  3363.  
  3364. {
  3365.  
  3366.  
  3367.  
  3368. switch( iColorType )
  3369.  
  3370.  
  3371.  
  3372. {
  3373.  
  3374.  
  3375.  
  3376.  
  3377.  
  3378.  
  3379.  
  3380. case RED: return CC_Team_Info( id, iType, TeamName[ 1 ] );
  3381.  
  3382.  
  3383.  
  3384. case BLUE: return CC_Team_Info( id, iType, TeamName[ 2 ] );
  3385.  
  3386.  
  3387.  
  3388. case GREY: return CC_Team_Info( id, iType, TeamName[ 0 ] );
  3389.  
  3390.  
  3391.  
  3392.  
  3393.  
  3394.  
  3395.  
  3396. }
  3397.  
  3398.  
  3399.  
  3400.  
  3401.  
  3402.  
  3403.  
  3404. return PLUGIN_CONTINUE;
  3405.  
  3406.  
  3407.  
  3408. }
  3409.  
  3410.  
  3411.  
  3412.  
  3413.  
  3414.  
  3415.  
  3416. CC_FindPlayer( )
  3417.  
  3418.  
  3419.  
  3420. {
  3421.  
  3422.  
  3423.  
  3424. new iMaxPlayers = get_maxplayers( );
  3425.  
  3426.  
  3427.  
  3428.  
  3429.  
  3430.  
  3431.  
  3432. for( new i = 1; i <= iMaxPlayers; i++ )
  3433.  
  3434.  
  3435.  
  3436. if( is_user_connected( i ) )
  3437.  
  3438.  
  3439.  
  3440. return i;
  3441.  
  3442.  
  3443.  
  3444.  
  3445.  
  3446.  
  3447.  
  3448. return -1;
  3449.  
  3450.  
  3451.  
  3452. }
  3453.  
  3454.  
  3455.  
  3456. // Colour Chat
  3457.  
  3458.  
  3459.  
  3460. stock client_printc(const id, const input[], any:...)
  3461.  
  3462.  
  3463.  
  3464. {
  3465.  
  3466.  
  3467.  
  3468. new count = 1, players[32];
  3469.  
  3470.  
  3471.  
  3472. static msg[191];
  3473.  
  3474.  
  3475.  
  3476. vformat(msg, 190, input, 3);
  3477.  
  3478.  
  3479.  
  3480.  
  3481.  
  3482.  
  3483.  
  3484. replace_all(msg, 190, "!g", "^x04"); // Green Color
  3485.  
  3486.  
  3487.  
  3488. replace_all(msg, 190, "!n", "^x01"); // Default Color
  3489.  
  3490.  
  3491.  
  3492. replace_all(msg, 190, "!t", "^x03"); // Team Color
  3493.  
  3494.  
  3495.  
  3496.  
  3497.  
  3498.  
  3499.  
  3500. if (id) players[0] = id; else get_players(players, count, "ch");
  3501.  
  3502.  
  3503.  
  3504.  
  3505.  
  3506.  
  3507.  
  3508. for (new i = 0; i < count; i++)
  3509.  
  3510.  
  3511.  
  3512. {
  3513.  
  3514.  
  3515.  
  3516. if (is_user_connected(players[i]))
  3517.  
  3518.  
  3519.  
  3520. {
  3521.  
  3522.  
  3523.  
  3524. message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
  3525.  
  3526.  
  3527.  
  3528. write_byte(players[i]);
  3529.  
  3530.  
  3531.  
  3532. write_string(msg);
  3533.  
  3534.  
  3535.  
  3536. message_end();
  3537.  
  3538.  
  3539.  
  3540. }
  3541.  
  3542.  
  3543.  
  3544. }
  3545.  
  3546.  
  3547.  
  3548. }
  3549.  
  3550.  
  3551.  
  3552. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  3553.  
  3554.  
  3555.  
  3556. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
  3557.  
  3558.  
  3559.  
  3560. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement