! - . . , , . , , , (, ) . !







Visage Role Play - . /adminka , ! http://visage-rp.ru
VK: vk.com/sergey68

76890 - 1000,46860 - 500, 300
** V.I.P --> **

: VKcoin

1 1 1

  1. #1

      execution

    :
    :23.06.2017
    :165
    :18 [+/-] 

    VKcoin

    PHP :
    #include "pch.h"
    #include <iostream>
    #include <Windows.h>

    #define MIN_ITEM_COUNT                (0)
    #define MAX_ITEM_COUNT                (4)
    #define MAX_ITEM_NAME_LEGTH            (11)
    #define DEFAULT_TIME_TO_SCORE_SEC    (5)
    #define UPDATE_GAMGE_IN_SEC            (1)

    using namespace std;

    const 
    char ITEM_NAME[MAX_ITEM_COUNT][MAX_ITEM_NAME_LEGTH 1] =
    {
        
    "",
        
    "",
        
    "",
        
    "-"
    };

    const 
    float ITEM_PECENT_PRICE[MAX_ITEM_COUNT] =
    {
        
    30,
        
    40,
        
    50,
        
    80
    };

    const 
    float ITEM_ADD_COIN[MAX_ITEM_COUNT] =
    {
        
    0.0005,
        
    0.003,
        
    0.08,
        
    0.1
    };

    struct Player
    {
        
    double p_coin;
        
    float p_addmoney_sec;
        
    int p_count_item[MAX_ITEM_COUNT];
        
    float p_item_price[MAX_ITEM_COUNT];
    };

    int main()
    {
        
    SetConsoleCP(1251);
        
    SetConsoleOutputCP(1251);

        
    Player Player_1 = { 0.00000.0001, { 000}, { 0.00020.0050.015.0 } };

        
    int i 0;

        while (
    true
        {
            
    Player_1.p_coin += Player_1.p_addmoney_sec;

            
    cout << ": " << Player_1.p_coin << " VKcoin (" << Player_1.p_addmoney_sec << "/)" << endl;

            if (++
    == DEFAULT_TIME_TO_SCORE_SEC
            {
                
    cout << "  : " << endl;

                for (
    size_t j 0MAX_ITEM_COUNTj++)
                {
                    
    cout << (1)  << ". " << ITEM_NAME[j] << "  "
                        
    << (Player_1.p_count_item[j] > ? (Player_1.p_item_price[j] * (ITEM_PECENT_PRICE[j] / 100)) : (Player_1.p_item_price[j]))
                        << 
    " VKcoin" << endl;
                }

                
    int choose;

                while (
    true
                {
                    
    cout << "  ,   .    : -1" << endl;

                    
    cin >> choose;

                    if (
    choose != -1
                    {
                        if (
    choose MAX_ITEM_COUNT || choose MIN_ITEM_COUNT 1
                        {
                            
    cout << "     " << MAX_ITEM_COUNT << "    " << MIN_ITEM_COUNT << endl;
                            continue;
                        }
                        else 
                        {
                            
    float need_coin = (Player_1.p_count_item[choose 1] > ? (Player_1.p_item_price[choose 1] * (ITEM_PECENT_PRICE[choose 1] / 100)) : (Player_1.p_item_price[choose 1]));

                            if (
    need_coin Player_1.p_coin
                            {
                                
    cout << "   VKcoin,   " << ITEM_NAME[choose 1] << endl;
                                continue;
                            }
                            else 
                            {
                                
    0;

                                
    Player_1.p_coin -= need_coin;
                                
    Player_1.p_count_item[choose 1] ++;
                                
    Player_1.p_item_price[choose 1] = need_coin;
                                
    Player_1.p_addmoney_sec += ITEM_ADD_COIN[choose 1];

                                
    cout << "   " << ITEM_NAME[choose 1] << "  " << need_coin << " VKcoin" << endl;
                                break;
                            }
                        }
                    }
                    else 
                    {
                        
    0;

                        break;
                    }
                }
            }
            else 
            {
                
    Sleep(1000 UPDATE_GAMGE_IN_SEC);
            }
        }


        
    cin.get();

        return 
    0;

    execution; 09.05.2019 23:23. :

, : 27

0.0001, 001, 100, 1000, 125, add, , define, , , , include, ios, item, , , , , php, score, size, time, update, windows,

(, , , , , ), , .
!
samp-rp advanvce pawn s0beit cs 1.6 0.3x World of Tanks samp-rp, samp-rp, - PAWNO SA-MP IV-MP MTA cleo s0beit sobeit sa-mp sa-mp pawno pawno pawno iv-mp iv-mp iv-mp godfather SAMP gta 4 4 GTA 4 GTA 4 GTA 4 SAMP SAMP Pen1 LS Pen1 Fugitive The Godfather rp roleplay samp-rp sa-mp sa-mp pawno gta-iv gta-v gta-sa gta-3 gta-III gta-4 gta-5 gta-vc mta mta-dm mta-race mta-sa pawno info ru pawno pawno gta-iv gta-iv gta-v gta-v gta-iv keygen gta sa gta 4 multiplayer gta san adnreas multiplayer sa-mp forum sa-mp pawno sa-mp pawno sa-mp gta-sa pawno pawno errors sa-mp 0.3c SA-MP 0.3d 4 GTA 4 GTA 4 GTA 4 SAMP SAMP Pen1 LS Pen1 Fugitive The Godfather SAMP hack rat android instagram twitter ddos root linux ubuntu mac android advance arizona 4g