Info Boost

Pluginuri pentru modul AmxModX.

Moderators: Moderatori ajutatori, Moderatori

User avatar
puNx
Membru, skill 0
Membru, skill 0
Posts: 81
Joined: 07 Aug 2015, 17:26
Detinator Steam: Da
CS Status: :)
SteamID: puNx
Fond eXtream: 0
Contact:

30 Mar 2019, 12:46

am si eu o problema...
Image
Image
Hell.Mixarena.Ro[+18][VIP CLASSIC][Admine Free]

Ofer suport tehnic si incredere pentru servere de CS 1.6 !
Contact me:
Skype: vlad.vlad604
Y!M: andruvlad@ymail.com
Steam: zeT # ANUBIS (link: http://steamcommunity.com/id/vladpuNx/ )
Forum: puNx (PM me)
Pretul difera in functie de ce doreste clientul !
eXtreamSHOP
User avatar
Rainq
Moderator
Moderator
Posts: 2642
Joined: 21 Jul 2015, 18:50
Detinator Steam: Da
CS Status: Busy
Detinator server CS: ---
Reputatie: Moderator
Fost detinator ZM.eXtreamCS.COM
Fost Membru Club eXtreamCS (trei luni)
Fond eXtream: 0
Location: Bucuresti
Has thanked: 1 time
Been thanked: 17 times
Contact:

30 Mar 2019, 13:38

puNx wrote:
30 Mar 2019, 12:46
am si eu o problema...
Image

Code: Select all

#include <amxmodx>
#include <colorchat>

new const COUNTRY[][] =
{
    "Serbia",
    "Croatia",
    "Bosnia and Herzegovina",
    "Macedonia",
    "Montenegro",
    "Norway",
    "Bulgaria",
    "Czech Republic",
    "Estonia",
    "Finland",
    "Romania",
    "Kosovo (Pokrajina)",
    "Albania",
    "Austria",
    "France",
    "Germany",
    "Switzerland",
    "Pakistan",
    "Poland",
    "Slovenia",
    "Sweden",
    "Argentina",
    "Brazil",
    "Peru",
    "Ukraine",
    "Greece",
    "India"
}
 
new const NUMBERS[][] =
{
    "1310",
    "866866",
    "091810700",
    "141551",
    "14741",
    "2201",
    "1916",
    "90309",
    "13013",
    "17163",
    "1235",
    "55050",
    "54345",
    "0900506506",
    "83355",
    "89000",
    "565",
    "5716",
    "7668",
    "3838",
    "72401",
    "22533",
    "49602",
    "35100",
    "3161",
    "54344",
    "9287090010"
}
 
new const CONTENTS[][] =
{
    "100",
    "TXT6",
    "TXT",
    "TAP",
    "FOR",
    "TXT",
    "TXT",
    "TXT3",
    "TXT",
    "TXT",
    "TXT",
    "TXT",
    "TXT",
    "TXT",
    "TXT",
    "FOR",
    "TAP",
    "FOR",
    "TXT",
    "TXT",
    "TXT",
    "FOR",
    "FOR",
    "TXT",
    "WLW",
    "TXT",
    "GMT"
}
 
new const PRICE_SMS[][] =
{
    "120,00 RSD",
    "6,20 KN",
    "2,00 BAM + PDV",
    "59,00 MKD",
    "1,00 EURO",
    "10,00 NOK",
    "2,40 BGN",
    "30,00 CZK",
    "1,60 EURO",
    "1,00 EURO",
    "1,00 EURO",
    "1,00 EURO",
    "120,00 ALL",
    "1,10 EURO",
    "1,00 EURO",
    "0,99 EURO",
    "2,00 CHF",
    "100,00 Rs",
    "7,38 PLN",
    "0,99 EURO",
    "15,00 SEK",
    "9,99 ARS",
    "R$ 4,00",
    "7.00 PEN",
    "15,00 UAH",
    "1.23 EURO",
    "99.00 INR"
}
 
new const COMMANDS[][]=
{
    "say /boost",
    "say_team /boost",
    "say /howtoboost",
    "say_team /howtoboost"
}
 
new const LANG_FILE[][] =
{
    "[en]",
    "BOOST_ADVERTISMENT = ^1Type ^3/boost^1 to open up the ^4Boost Menu^1!",
    "BOOST_COUNTRY = To boost from",
    "BOOST_SMS = Send SMS to",
    "BOOST_SMS_FORMAT = SMS Format (Content of Message - Message Body)",
    "BOOST_TEXT_FOR_SENDING = %s GTRS %s %s",
    "BOOST_PRICE_SMS = SMS Price",
    "BOOST_FORUM_INFO = For more info visit GameTracker.rs",
    "BOOST_MENU = \w[\rBOOST\w] \yCountry:",
    " ",
    "[ro]",
    "BOOST_ADVERTISMENT = ^1Type ^3/boost^1 to open up the ^4Boost Menu^1!",
    "BOOST_COUNTRY = To boost from",
    "BOOST_SMS = Send SMS to",
    "BOOST_SMS_FORMAT = SMS Format (Content of Message - Message Body)",
    "BOOST_TEXT_FOR_SENDING = %s GTRS %s %s",
    "BOOST_PRICE_SMS = SMS Price",
    "BOOST_FORUM_INFO = For more info visit GameTracker.rs",
    "BOOST_MENU = \w[\rBOOST\w] \yCountry:"
}
 
new Nick[32], TitleMenu[32], AdvTime;

public plugin_init()
{
    AdvTime = register_cvar("htbs_bym_vreme_reklame","120.0");     
    set_task(get_pcvar_float(AdvTime), "Advertisment");
    
    if(!file_exists("addons/amxmodx/data/lang/boost_manager.txt"))	for(new i=0;i< sizeof LANG_FILE;i++)	write_file("addons/amxmodx/data/lang/boost_manager.txt", LANG_FILE[i]);
    register_dictionary("boost_manager.txt")
    
    for(new i=0;i< sizeof COMMANDS;i++)	register_clcmd(COMMANDS[i], "ChooseState");
}

public ChooseState(id)
{
    formatex(TitleMenu, charsmax(TitleMenu), "%L", id, "BOOST_MENU")
    new meni = menu_create(TitleMenu, "ChooseStateMenu");
    for(new i=0;i<sizeof COUNTRY;i++)
        menu_additem(meni, COUNTRY[i]);
    menu_display(id, meni);
}
 
public ChooseStateMenu(id, meni, item)
{
    if(item == MENU_EXIT)
    {
        menu_destroy(meni);
        return PLUGIN_CONTINUE;
    }
   
    HowToBoost(id, item);
    return PLUGIN_CONTINUE
}
 
public HowToBoost(id, item)
{
    static motd[2001], Linija, IpServera[32];
    get_user_ip(0, IpServera, charsmax(IpServera));
    get_user_name(id, Nick, 31);
    Linija = format(motd, 2000,"<!DOCTYPE html><html><head><title>- Global Knife Gaming -</title></head><body bgcolor='#FFFFFF'>")
    Linija += format(motd[Linija], 2000-Linija,"<font style='font-family:Arial, Helwetica, Sans-Serif;font-weight:Bold;font-size:15px;'>");
    Linija += format(motd[Linija], 2000-Linija,"<span style='color:black'>%L:</span><span style='color:#3399ff'> %s</span><br />", id, "BOOST_COUNTRY", COUNTRY[item]);
    Linija += format(motd[Linija], 2000-Linija,"<span style='color:black'>%L:</span><span style='color:#3399ff'> %s</span><br />", id, "BOOST_SMS", NUMBERS[item]);
    Linija += format(motd[Linija], 2000-Linija,"<span style='color:black'>%L:</span><br />", id, "BOOST_SMS_FORMAT");
    Linija += format(motd[Linija], 2000-Linija,"<span style='color:red'>%L</span><br />", id, "BOOST_TEXT_FOR_SENDING", CONTENTS[item], IpServera, Nick);
    Linija += format(motd[Linija], 2000-Linija,"<span style='color:black'>%L:</span><br /><span style='color:#3399ff'> %s</span><br />", id, "BOOST_PRICE_SMS", PRICE_SMS[item]);
    Linija += format(motd[Linija], 2000-Linija,"<span style='color:green'>%L</span><br />", id, "BOOST_FORUM_INFO");
    Linija += format(motd[Linija], 2000-Linija,"</font></body></html>")
    show_motd(id, motd, "[Global Knife] Boost Manager")
    return 0
}
 
public Advertisment() ColorChat(0, GREEN, "^3[^4Boost Manager^3]^1 %L", LANG_PLAYER, "BOOST_ADVERTISMENT"), set_task(get_pcvar_float(AdvTime), "Advertisment");
Image
Leul si tigru sunt mai puternici ca lupul,dar lupul la circ nu participa.
Post Reply

Return to “AmxModX”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests