UWAGA
W związku z upgrade'em Forum Wiaderko do vB 4.x ewentualne błędy i nieprawidłowości proszę zgłaszać w tym temacie
Serwery Counter Strike 1.6 wiaderko.com

HashJama [TP] 193.33.176.148:27015 status serwera HashJama [TP] połącz

HashJama [FFA] 193.33.176.188:27015status serwera HashJama [FFA] połącz

HashJama [DM] 193.33.176.53:27015status serwera HashJama [DM] połącz

HashJama [Aim Hs] 193.33.176.15:27015status serwera HashJama [Aim Hs] połącz

HashJama [Flags] 193.33.176.111:27015status serwera HashJama  [Flags] połącz

HashJama [AWP/HG DM] 193.33.176.50:27015status serwera HashJama [AWP/HG DM] 193.33.176.50:27015 połącz

HashJama [TP #2] 193.33.176.54:27015status serwera HashJama [TP #2] 193.33.176.54:27015 połącz

wiaderko.com [Ventrilo] v1.svoice.pl:6416status serwera wiaderko.com [Ventrilo]

SPONSOR:
pukawka.pl

Wątek: Grawitacja na 25 sekund

Strona 1 z 2 1 2 OstatniOstatni
Pokaż wyniki od 1 do 20 z 39
  1. #1 Grawitacja na 25 sekund 
    Spamer
    Dołączył
    Jan 2009
    Posty
    243
    Witam przerobiłem sobie item grawitacja na 25 sekund ale:

    Nie wyświetla się nic ile sekund pozostało ani nie działa te 25 sek.Daje sma. proszę o pomoc.
    Kod php:
    #include <amxmodx>
    #include <amxmisc>
    #include <fakemeta>
    #include <fakemeta_util>
    #include <colorchat>
    #include <engine>
    #include <fun>

    #define PLUGIN "Deathrun Shop"
    #define VERSION "1.0"
    #define AUTHOR "tuty"

    #pragma semicolon 1
    #define PICKUP_SND    "items/gunpickup2.wav"
    #define OFFSET_MONEY    115
    #define ADVERTISE_JOIN_TIME 7.0

    new mDeathRunShop// Menu


    new gDrShopOn;
    new 
    gHeCost;
    new 
    gBothGrenadesCost;
    new 
    gSilentCost;
    new 
    gHealthCost;
    new 
    gArmorCost;
    new 
    gSpeedCost;
    new 
    gGravityCost;
    new 
    gInvisCost;
    new 
    gParCost;
    new 
    gApoCost;
    new 
    gRevCost;
    new 
    gMsgMoney;
    new 
    gMaxPlayers;
    new 
    gMenu;
    new 
    gSpeedCvar;
    new 
    gGravityCvar;
    new 
    gAdvertiseCvar;
    new 
    HasHe33 ];
    new 
    HasBothGren33 ];
    new 
    HasSilent33 ];
    new 
    HasHealth33 ];
    new 
    HasArmor33 ];
    new 
    HasSpeed33 ];
    new 
    HasGravity33 ];
    new 
    HasInvis33 ];
    new 
    HasPar33 ];
    new 
    bool:bSilent33 ];
    new 
    pFallSpeedpDetach;
    new 
    para_ent[33];
    new 
    pozostalo_apo;
    new 
    apo_used;
    new 
    g_fog;
    new 
    pozostalo_grav;
    public 
    plugin_init()
    {
    register_pluginPLUGINVERSIONAUTHOR );
    register_forwardFM_PlayerPreThink"forward_player_prethink" );
    register_logevent"logevent_round_start"2"1=Round_Start" );
    register_event"DeathMsg""Hook_Deathmessage""a" );

    register_clcmd"say /shop""DeathrunShop" );
    register_clcmd"say_team /shop""DeathrunShop" );
    register_clcmd"say shop""DeathrunShop" );
    register_clcmd"say_team shop""DeathrunShop" );
    register_clcmd"/shop""DeathrunShop" );

    /* Menu DeathRun Shop */

    /* Use menu_display(id, mDeathRunShop, 0) to show the menu to an user. */
    mDeathRunShop menu_create("\rDeathRun Shop by\y Dzielnica-Fragow""mh_DeathRunShop");
    menu_additem(mDeathRunShop"Granat Zamrazajacy Pulapke - \y 1000$""ma_DeathRunShop");
    menu_additem(mDeathRunShop"Ciche chodzenie - \y 2000$""ma_DeathRunShop");
    menu_additem(mDeathRunShop"Zestaw Granatow - \y 5000$""ma_DeathRunShop");
    menu_additem(mDeathRunShop"Dodatkowe 50 Zycia (\rdla TT\w) - \y 2500$""ma_DeathRunShop");
    menu_additem(mDeathRunShop"Dodatkowe 150 Zycia (\rdla CT\w)- \y 4500$""ma_DeathRunShop");
    menu_additem(mDeathRunShop"Szybsze Chodzenie - \y 7500$""ma_DeathRunShop");
    menu_additem(mDeathRunShop"Mniejsza Grawitacja - \y 8000$""ma_DeathRunShop");
    menu_additem(mDeathRunShop"95 Mniejszej Niewidzialnosci - \y 9000$""ma_DeathRunShop");
    menu_additem(mDeathRunShop"Nuclear Bomb - \y 10000$""ma_DeathRunShop");
    menu_additem(mDeathRunShop"Spadochron - \y 4000$ ""ma_DeathRunShop");
    menu_additem(mDeathRunShop"Ponowne Odrodzenie - \y 3000$ ""ma_DeathRunShop");
    menu_setprop(mDeathRunShopMPROP_EXITMEXIT_ALL);
    /* Menu End */

    gDrShopOn register_cvar"deathrun_shop""1" );
    gHeCost register_cvar"deathrun_he_cost""2500" );
    gBothGrenadesCost register_cvar"deathrun_bothgrenades_cost""5000" );
    gSilentCost register_cvar"deathrun_silent_cost""4000" );
    gHealthCost register_cvar"deathrun_health_cost""6000" );
    gArmorCost register_cvar"deathrun_armor_cost""6000" );
    gSpeedCost register_cvar"deathrun_speed_cost""16000" );
    gGravityCost register_cvar"deathrun_gravity_cost""8000" );
    gInvisCost register_cvar"deathrun_invisibility_cost""16000" );
    gParCost register_cvar"deathrun_parachute_cost""4000" );
    gApoCost register_cvar"deathrun_apo_cost""16000" );
    gRevCost register_cvar"deathrun_rev_cost""3000" );

    gSpeedCvar register_cvar"deathrun_speed_power""400.0" );
    gGravityCvar register_cvar"deathrun_gravity_power""0.5" );
    gAdvertiseCvar register_cvar"deathrun_advertise_message""1" );

    gMsgMoney get_user_msgid"Money" );
    gMaxPlayers get_maxplayers();
    pFallSpeed register_cvar("parachute_fallspeed""100");
    pDetach register_cvar("parachute_detach""1"); 
    register_dictionary"deathrunshop.txt" );
    }
    public 
    plugin_precache()
    {
    engfuncEngFunc_PrecacheSoundPICKUP_SND );
    precache_sound("ambience/alerts1.wav");
    precache_model("models/parachute.mdl");
    precache_sound("ambience/alert.wav");
    precache_sound("ambience/apo.wav"); 
    precache_sound("ambience/bomba.wav"); 
    }   
    public 
    client_connectid )
    {
    HasHeid ] = false;
    HasBothGrenid ] = false;
    HasSilentid ] = false;
    HasHealthid ] = false;
    HasArmorid] = false;
    HasSpeedid ] = false;
    HasGravityid ] = false;
    HasInvisid ] = false;
    }
    public 
    client_disconnectid )
    {
    bSilentid ] = false;
    HasHeid ] = false;
    HasBothGrenid ] = false;
    HasSilentid ] = false;
    HasHealthid ] = false;
    HasArmorid] = false;
    HasSpeedid ] = false;
    HasGravityid ] = false;
    HasInvisid ] = false;
    }
    public 
    client_putinserverid )
    {
    if( 
    get_pcvar_numgAdvertiseCvar ) != )
    {
    set_taskADVERTISE_JOIN_TIME"ShowPlayerInfo"id );
    }
    }
    public 
    forward_player_prethinkid )
    {
    if( 
    bSilentid ] )
    {
    set_pevidpev_flTimeStepSound999 );
    }
    }
    public 
    DeathrunShopid )
    {
    if( 
    get_pcvar_numgDrShopOn ) != )
    {
    ColorChatidGREEN"DeathRun^x01:^x03 DeathRun Sklep^x01 jest^x04 wylaczony" );
    return 
    PLUGIN_HANDLED;
    }
    /*if( !is_user_alive( id ) )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChat( id, GREEN, "DeathRun^x01:^x03 Musisz^x01 byc^x04 zywy^x01, aby cos kupic" );
    return PLUGIN_HANDLED;
    }
    */
    menu_display(idmDeathRunShop);
    }
    public 
    menu_shopidkey )
    {
    if(
    is_user_aliveid ) == && key != 10)
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChatidGREEN"DeathRun^x01:^x03 Musisz^x01 byc^x04 zywy^x01, aby cos kupic" );
    return 
    PLUGIN_HANDLED;
    }
    new 
    whichmoney fm_get_user_moneyid );
    switch( 
    key )
    {
    case 
    0:
    {
    if( 
    get_user_teamid ) == )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChatidGREEN"DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    return 
    PLUGIN_HANDLED;
    }
    if( 
    whichmoney get_pcvar_numgHeCost ) )
    {
    dont_haveid );
    return 
    PLUGIN_HANDLED;
    }
    fm_give_itemid"weapon_smokegrenade" );
    set_hudmessage(2551800, -1.00.301.05.0);
    show_hudmessage(id"Stop Policja! Teraz pulapke masz juz z glowy!");
    ColorChatidGREEN"DeathRun^x01: Kupiles^x03 Granat Zamrazajacy Pulapke" );
    fm_set_user_moneyidwhichmoney get_pcvar_numgHeCost ) );
    client_sound_playid );
    HasHeid ] = true;
    }
    case 
    1:
    {
    if( 
    HasSilentid ] )
    {
    allready_haveid );
    return 
    PLUGIN_HANDLED;
    }
    if( 
    get_user_teamid ) == )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChatidGREEN"DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    return 
    PLUGIN_HANDLED;
    }
    if( 
    whichmoney get_pcvar_numgSilentCost ) )
    {
    dont_haveid );
    return 
    PLUGIN_HANDLED;
    }
    fm_set_user_footstepsid);
    ColorChatidGREEN"DeathRun^x01: Kupiles mozliwosc^x03 chodzenia po cichu!" );
    fm_set_user_moneyidwhichmoney get_pcvar_numgSilentCost ) );
    client_sound_playid );
    HasSilentid ] = true;
    }
    case 
    2:
    {
    if( 
    HasBothGrenid ] )
    {
    allready_haveid );
    return 
    PLUGIN_HANDLED;
    }
    if( 
    get_user_teamid ) == )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChatidGREEN"DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    return 
    PLUGIN_HANDLED;
    }
    if( 
    whichmoney get_pcvar_numgBothGrenadesCost ) )
    {
    dont_haveid );
    return 
    PLUGIN_HANDLED;

    fm_give_itemid"weapon_hegrenade" );
    fm_give_itemid"weapon_flashbang" );
    fm_give_itemid"weapon_smokegrenade" );
    set_hudmessage(2551800, -1.00.301.05.0);
    show_hudmessage(id"Wojna jeszcze trwa - lap!");
    ColorChatidGREEN"DeathRun^x01: Kupiles^x03 Zestaw Granatow" );
    fm_set_user_moneyidwhichmoney get_pcvar_numgBothGrenadesCost ) );
    client_sound_playid );
    HasBothGrenid ] = true;
    }
    case 
    3:
    {
    if( 
    HasHealthid ] )
    {
    allready_haveid );
    return 
    PLUGIN_HANDLED;
    }
    if( 
    get_user_teamid ) == )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChatidGREEN"DeathRun^x01: Tylko^x03 Terrorysci^x01 moga to^x04 kupic!" );
    return 
    PLUGIN_HANDLED;
    }
    if( 
    whichmoney get_pcvar_numgHealthCost ) )
    {
    dont_haveid );
    return 
    PLUGIN_HANDLED;
    }
    fm_set_user_healthidget_user_healthid ) + 50 );
    ColorChatidGREEN"DeathRun^x01: Kupiles^x04 50^x01 dodatkowych punktow^x03 HP!" );
    fm_set_user_moneyidwhichmoney get_pcvar_numgHealthCost ) );
    client_sound_playid );
    HasHealthid ] = true;
    }
    case 
    4:
    {
    if( 
    HasArmorid ] )
    {
    allready_haveid );
    return 
    PLUGIN_HANDLED;
    }
    if( 
    get_user_teamid ) == )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChatidGREEN"DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    return 
    PLUGIN_HANDLED;
    }
    if( 
    whichmoney get_pcvar_numgArmorCost ) )
    {
    dont_haveid );
    return 
    PLUGIN_HANDLED;
    }
    fm_set_user_healthidget_user_healthid ) + 150 );
    set_hudmessage(2551800, -1.00.301.05.0);
    show_hudmessage(id"Teraz to juz masz HP!");
    ColorChatidGREEN"DeathRun^x01: Kupiles^x04 150^x01 dodatkowych punktow^x03 HP!" );
    fm_set_user_moneyidwhichmoney get_pcvar_numgArmorCost ) );
    client_sound_playid );
    HasArmorid ] = true;
    }
    case 
    5:
    {
    if( 
    HasSpeedid ] )
    {
    allready_haveid );
    return 
    PLUGIN_HANDLED;
    }
    if( 
    get_user_teamid ) == )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChatidGREEN"DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    return 
    PLUGIN_HANDLED;
    }
    if( 
    whichmoney get_pcvar_numgSpeedCost ) )
    {
    dont_haveid );
    return 
    PLUGIN_HANDLED;
    }
    fm_set_user_maxspeedidget_pcvar_floatgSpeedCvar ) );
    set_hudmessage(2551800, -1.00.301.05.0);
    show_hudmessage(id"Biegnij Forest!");
    ColorChatidGREEN"DeathRun^x01: Kupiles^x03 Wieksza Szybkosc!" );
    fm_set_user_moneyidwhichmoney get_pcvar_numgSpeedCost ) );
    client_sound_playid );
    HasSpeedid ] = true;
    }
    case 
    6:
    {
    if( 
    HasGravityid ] )
    {
    allready_haveid );
    return 
    PLUGIN_HANDLED;
    }
    if( 
    get_user_teamid ) == )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChatidGREEN"DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    return 
    PLUGIN_HANDLED;
    }
    if( 
    whichmoney get_pcvar_numgGravityCost ) )
    {
    dont_haveid );
    return 
    PLUGIN_HANDLED;
    }
    fm_set_user_gravityidget_pcvar_floatgGravityCvar ) );
    set_task(25.0"HasGravity",id);
    ColorChatidGREEN"DeathRun^x01: Kupiles^x03 Mniejsza Grawitacje" );
    fm_set_user_moneyidwhichmoney get_pcvar_numgGravityCost ) );
    client_sound_playid );
    HasGravityid ] = true;
    pozostalo_grav 25;
    set_task(1.0"grawitacja_timer" ,183""0"a"25);
    }
    case 
    7:
    {
    if( 
    HasInvisid ] )
    {
    allready_haveid );
    return 
    PLUGIN_HANDLED;
    }
    if( 
    get_user_teamid ) == )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChatidGREEN"DeathRun^x01: Tylko^x03 Terrorysci^x01 moga to^x04 kupic!" );
    return 
    PLUGIN_HANDLED;
    }
    if( 
    whichmoney get_pcvar_numgInvisCost ) )
    {
    dont_haveid );
    return 
    PLUGIN_HANDLED;
    }
    fm_set_renderingidkRenderFxNone000kRenderTransAlpha50 );
    ColorChatidGREEN"DeathRun^x01: Kupiles^x03 Mniejsza Niewidzialnosc" );
    fm_set_user_moneyidwhichmoney get_pcvar_numgInvisCost ) );
    client_sound_playid );
    HasInvisid ] = true;
    }
    case 
    8:
    {
    if( 
    apo_used )
    {
    allready_haveid );
    return 
    PLUGIN_HANDLED;
    }
    if( 
    get_user_teamid ) == )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChatidGREEN"DeathRun^x01: Tylko^x03 Terrorysci^x01 moga to^x04 kupic!" );
    return 
    PLUGIN_HANDLED;
    }
    if( 
    whichmoney get_pcvar_numgApoCost ) )
    {
    dont_haveid );
    return 
    PLUGIN_HANDLED;
    }
    ColorChatidGREEN"DeathRun^x01: Kupiles^x03 Nuclear Bomb" );
    set_hudmessage(2551800, -1.00.301.05.0);
    show_hudmessage(id"Bedzie bum bum...");
    fm_set_user_moneyidwhichmoney get_pcvar_numgApoCost ) );
    client_sound_playid );
    pozostalo_apo 10;
    makeFog(128);
    set_task(1.0"apokalipsa_timer" ,183""0"a"10);
    apo_used id;
    }
    case 
    9:
    {
    if( 
    HasParid ] )
    {
    allready_haveid );
    return 
    PLUGIN_HANDLED;
    }
    if( 
    get_user_teamid ) == )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChatidGREEN"DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    return 
    PLUGIN_HANDLED;
    }
    if( 
    whichmoney get_pcvar_numgParCost ) )
    {
    dont_haveid );
    return 
    PLUGIN_HANDLED;
    }
    ColorChatidGREEN"DeathRun^x01: Kupiles^x03 Spadochron" );
    fm_set_user_moneyidwhichmoney get_pcvar_numgParCost ) );
    client_sound_playid );
    HasParid ] = true;
    }
    case 
    10:
    {
    if(
    is_user_alive(id))
    {
    ColorChat(idGREEN"*^x01 Jestes^x03 zywy^x01, nie mozesz^x04 zostac odrodzony!");
    return 
    PLUGIN_HANDLED;
    }
    if( 
    get_user_teamid ) == )
    {
    //client_cmd(id,"spk ambience/alerts1.wav");
    ColorChatidGREEN"DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    return 
    PLUGIN_HANDLED;
    }
    if( 
    whichmoney get_pcvar_numgRevCost ) )
    {
    dont_haveid );
    return 
    PLUGIN_HANDLED;
    }
    //Ok
    ColorChatidGREEN"DeathRun^x01: Kupiles^x03 Ponowne Odrodzenie" );
    fm_set_user_moneyidwhichmoney get_pcvar_numgRevCost ) );
    client_sound_playid );
    new 
    args[1];
    args[0] = id;
    set_task(0.1"prepare_spawn"78+idargs1);
    set_task(0.5"prepare_spawn"78+idargs1);
    set_task(0.8"prepare_wapons"178+idargs1);
    }
    case 
    MENU_EXIT:
    {
    ColorChatidGREEN"DeathRun^x01: Zamknales^x03 menu^x01 sklepu" );
    return 
    PLUGIN_HANDLED;
    }

    }
    return 
    PLUGIN_HANDLED;
    }
    public 
    prepare_spawn(args[])
    {
    new 
    id args[0];
    spawn(id);
    }
    public 
    prepare_wapons(args[])
    {
    new 
    id args[0];
    fm_strip_user_weapons(id);
    fm_give_item(id"weapon_knife");
    }
    public 
    logevent_round_start()
    {
    apo_used false;
    if( 
    get_pcvar_numgDrShopOn ) == )
    {
    for( new 
    id 1id <= gMaxPlayersid++ )
    {
    HasHeid ] = false;
    HasBothGrenid ] = false;
    HasSilentid ] = false;
    HasHealthid ] = false;
    HasArmorid] = false;
    HasSpeedid ] = false;
    HasGravityid ] = false;
    HasInvisid ] = false;
    HasParid ] = false;
    remove_entity(g_fog);
    fm_set_user_gravityid1.0 );    
    fm_set_user_maxspeedid0.0 );
    fm_set_user_footstepsid);
    }
    }
    return 
    PLUGIN_CONTINUE;
    }
    public 
    Hook_Deathmessage()
    {
    if( 
    get_pcvar_numgDrShopOn ) == )
    {
    new 
    id read_data);

    HasHeid ] = false;
    HasBothGrenid ] = false;
    HasSilentid ] = false;
    HasHealthid ] = false;
    HasArmorid] = false;
    HasSpeedid ] = false;
    HasGravityid ] = false;
    HasInvisid ] = false;
    fm_set_renderingid );
    fm_set_user_gravityid1.0 );    
    fm_set_user_maxspeedid0.0 );
    fm_set_user_footstepsid);
    }
    return 
    PLUGIN_CONTINUE;
    }
    public 
    ShowPlayerInfoid )
    {
    set_hudmessage00255, -1.00.8206.012.0 );
    show_hudmessageid"%L"id"DRSHOP_HUD_INFO" );
    }    
    allready_haveid)
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChatidGREEN"DeathRun^x01:^x03 Masz^x01 juz ta^x04 rzecz." );
    }    
    dont_haveid )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChatidGREEN"DeathRun^x01:^x03 Nie masz^x04 kasy^x01 na to" );
    }
    client_sound_playindex )
    {
    client_cmdindex"speak %s"PICKUP_SND );
    }    
    stock fm_get_user_moneyindex )
    {
    new 
    money get_pdata_intindexOFFSET_MONEY );
    return 
    money;
    }
    stock fm_set_user_moneyindexmoneyflash )
    {
    set_pdata_intindexOFFSET_MONEYmoney );
    fm_set_moneyindexmoneyflash );
    return 
    1;
    }
    stock fm_set_moneyindexmoneyflash )
    {
    message_beginMSG_ONE_UNRELIABLEgMsgMoney, {000}, index );
    write_longmoney );
    write_byteflash );
    message_end();
    }
    stock fm_set_user_footstepsindexset )
    {
    if( 
    set )
    {
    set_pevindexpev_flTimeStepSound999 );
    bSilentindex ] = true;
    }
    else
    {
    set_pevindexpev_flTimeStepSound400 );
    bSilentindex ] = false;
    }
    return 
    1;  
    }

    public 
    client_PreThink(id)
    {
    //parachute.mdl animation information
    //0 - deploy - 84 frames
    //1 - idle - 39 frames
    //2 - detach - 29 frames

    if (!is_user_alive(id) || !HasPar[id]) return false;

    new 
    Float:fallspeed get_pcvar_float(pFallSpeed) * -1.0;
    new 
    Float:frame;

    new 
    button get_user_button(id);
    new 
    oldbutton get_user_oldbutton(id);
    new 
    flags get_entity_flags(id);

    if (
    para_ent[id] > && (flags FL_ONGROUND)) {

    if (
    get_pcvar_num(pDetach)) {

    if (
    get_user_gravity(id) == 0.1set_user_gravity(id1.0);

    if (
    entity_get_int(para_ent[id],EV_INT_sequence) != 2) {
    entity_set_int(para_ent[id], EV_INT_sequence2);
    entity_set_int(para_ent[id], EV_INT_gaitsequence1);
    entity_set_float(para_ent[id], EV_FL_frame0.0);
    entity_set_float(para_ent[id], EV_FL_fuser10.0);
    entity_set_float(para_ent[id], EV_FL_animtime0.0);
    entity_set_float(para_ent[id], EV_FL_framerate0.0);
    return 
    false;
    }

    frame entity_get_float(para_ent[id],EV_FL_fuser1) + 2.0;
    entity_set_float(para_ent[id],EV_FL_fuser1,frame);
    entity_set_float(para_ent[id],EV_FL_frame,frame);
    if (
    frame 254.0) {
    remove_entity(para_ent[id]);
    para_ent[id] = 0;
    }
    }
    else {
    remove_entity(para_ent[id]);
    set_user_gravity(id1.0);
    para_ent[id] = 0;
    }

    return 
    false;
    }

    if (
    button IN_USE) {

    new 
    Float:velocity[3];
    entity_get_vector(idEV_VEC_velocityvelocity);

    if (
    velocity[2] < 0.0) {

    if(
    para_ent[id] <= 0) {
    para_ent[id] = create_entity("info_target");
    if(
    para_ent[id] > 0) {
    entity_set_string(para_ent[id],EV_SZ_classname,"parachute");
    entity_set_edict(para_ent[id], EV_ENT_aimentid);
    entity_set_edict(para_ent[id], EV_ENT_ownerid);
    entity_set_int(para_ent[id], EV_INT_movetypeMOVETYPE_FOLLOW);
    entity_set_model(para_ent[id], "models/parachute.mdl");
    entity_set_int(para_ent[id], EV_INT_sequence0);
    entity_set_int(para_ent[id], EV_INT_gaitsequence1);
    entity_set_float(para_ent[id], EV_FL_frame0.0);
    entity_set_float(para_ent[id], EV_FL_fuser10.0);
    }
    }

    if (
    para_ent[id] > 0) {

    entity_set_int(idEV_INT_sequence3);
    entity_set_int(idEV_INT_gaitsequence1);
    entity_set_float(idEV_FL_frame1.0);
    entity_set_float(idEV_FL_framerate1.0);
    set_user_gravity(id0.1);

    velocity[2] = (velocity[2] + 40.0 fallspeed) ? velocity[2] + 40.0 fallspeed;
    entity_set_vector(idEV_VEC_velocityvelocity);

    if (
    entity_get_int(para_ent[id],EV_INT_sequence) == 0) {

    frame entity_get_float(para_ent[id],EV_FL_fuser1) + 1.0;
    entity_set_float(para_ent[id],EV_FL_fuser1,frame);
    entity_set_float(para_ent[id],EV_FL_frame,frame);

    if (
    frame 100.0) {
    entity_set_float(para_ent[id], EV_FL_animtime0.0);
    entity_set_float(para_ent[id], EV_FL_framerate0.4);
    entity_set_int(para_ent[id], EV_INT_sequence1);
    entity_set_int(para_ent[id], EV_INT_gaitsequence1);
    entity_set_float(para_ent[id], EV_FL_frame0.0);
    entity_set_float(para_ent[id], EV_FL_fuser10.0);
    }
    }
    }
    }
    else if (
    para_ent[id] > 0) {
    remove_entity(para_ent[id]);
    set_user_gravity(id1.0);
    para_ent[id] = 0;
    }
    }
    else if ((
    oldbutton IN_USE) && para_ent[id] > ) {
    remove_entity(para_ent[id]);
    set_user_gravity(id1.0);
    para_ent[id] = 0;
    }
    return 
    false;
    }
    public 
    makeFog(amount) {
    g_fog engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"env_fog"));
    g_fog fm_create_entity("env_fog");
    new 
    Float:density = (0.0002*(amount-90))+0.001;
    new 
    dens[7];
    float_to_str(density,dens,6);
    fm_set_kvd(g_fog,"density",dens);
    fm_set_kvd(g_fog,"rendercolor","255 100 000");
    }
    public 
    apokalipsa_timer()
    {
    set_hudmessage(2551000, -1.00.301.01.0);
    show_hudmessage(0"Bomba wybuchnie za: %d "pozostalo_apo);
    pozostalo_apo--;
    if(
    pozostalo_apo 1)
    {
    new 
    i;
    for(
    i<=32i++)
    {
    if(
    is_user_connected(i))
    {
    if(
    is_user_alive(i))
    {
    if(
    get_user_team(i) == && != apo_used)
    {
    user_kill(i);
    }
    }
    }
    }
    client_cmd(0"spk ambience/apo.wav");
    }
    else
    {
    client_cmd(0"spk ambience/alert.wav");
    }

    }  


    /* Menu DeathRun Shop */

    public mh_DeathRunShop(idmenuitem)
    {
    menu_shop(iditem);
    }  
    public 
    grawitacja_timer()
    {
    set_hudmessage(02122550.30.806.01.0);
    show_hudmessage(0"Pozostalo Grawitacji %d",pozostalo_grav);
    pozostalo_grav--;

     

  2. #2 Odp: Grawitacja na 25 sekund 
    Super Mod Awatar peku33
    Dołączył
    Oct 2008
    Posty
    7,256
    to jest oryginał, czy przeróbka?
    PISANIE DO MNIE NA GG Z PROŚBĄ O JAKĄKOLWIEK POMOC NIE JEST MILE WIDZIANE! Numer: 6374959
     

  3. #3 Odp: Grawitacja na 25 sekund 
    Spamer
    Dołączył
    Jan 2009
    Posty
    243
    Przeróbka,którą Ty robiłeś. Zobacz co źle zrobiłem
     

  4. #4 Odp: Grawitacja na 25 sekund 
    Super Mod Awatar peku33
    Dołączył
    Oct 2008
    Posty
    7,256
    daj kod sprzed twojej zabawy
    PISANIE DO MNIE NA GG Z PROŚBĄ O JAKĄKOLWIEK POMOC NIE JEST MILE WIDZIANE! Numer: 6374959
     

  5. #5 Odp: Grawitacja na 25 sekund 
    el Wymiataczos Awatar KgC.
    Dołączył
    Aug 2009
    Posty
    613
    najlepszy jest ten wzięty z zombie.
    bo go przerabiałem
    Pomogłem
    Najlepszy serwer Free For All 32 sloty - 80.72.37.13:27020
    Najlepsze forum Counter Strike, Serwery Cs 1.6, AMXX, HLDS, Poradniki by Cs-Stajnia.pl
     

  6. #6 Odp: Grawitacja na 25 sekund 
    Spamer
    Dołączył
    Jan 2009
    Posty
    243
    Kod:
    #include <amxmodx>
    #include <amxmisc>
    #include <fakemeta>
    #include <fakemeta_util>
    #include <colorchat>
    #include <engine>
    #include <fun>
    
    #define PLUGIN "Deathrun Shop"
    #define VERSION "1.0"
    #define AUTHOR "tuty"
    
    #pragma semicolon 1
    #define PICKUP_SND    "items/gunpickup2.wav"
    #define OFFSET_MONEY    115
    #define ADVERTISE_JOIN_TIME 7.0
    
    new mDeathRunShop; // Menu
    
    
    new gDrShopOn;
    new gHeCost;
    new gBothGrenadesCost;
    new gSilentCost;
    new gHealthCost;
    new gArmorCost;
    new gSpeedCost;
    new gGravityCost;
    new gInvisCost;
    new gParCost;
    new gApoCost;
    new gRevCost;
    new gMsgMoney;
    new gMaxPlayers;
    new gMenu;
    new gSpeedCvar;
    new gGravityCvar;
    new gAdvertiseCvar;
    new HasHe[ 33 ];
    new HasBothGren[ 33 ];
    new HasSilent[ 33 ];
    new HasHealth[ 33 ];
    new HasArmor[ 33 ];
    new HasSpeed[ 33 ];
    new HasGravity[ 33 ];
    new HasInvis[ 33 ];
    new HasPar[ 33 ];
    new bool:bSilent[ 33 ];
    new pFallSpeed, pDetach;
    new para_ent[33];
    new pozostalo_apo;
    new apo_used;
    new g_fog;
    public plugin_init()
    {
        register_plugin( PLUGIN, VERSION, AUTHOR );
        register_forward( FM_PlayerPreThink, "forward_player_prethink" );
        register_logevent( "logevent_round_start", 2, "1=Round_Start" );
        register_event( "DeathMsg", "Hook_Deathmessage", "a" );
        
        register_clcmd( "say /shop", "DeathrunShop" );
        register_clcmd( "say_team /shop", "DeathrunShop" );
        register_clcmd( "say shop", "DeathrunShop" );
        register_clcmd( "say_team shop", "DeathrunShop" );
        register_clcmd( "/shop", "DeathrunShop" );
        
        /* Menu DeathRun Shop */
        
        /* Use menu_display(id, mDeathRunShop, 0) to show the menu to an user. */
        mDeathRunShop = menu_create("\rDeathRun Shop by\y Dzielnica-Fragow", "mh_DeathRunShop");
        menu_additem(mDeathRunShop, "Granat Zamrazajacy Pulapke - \y 1000$", "ma_DeathRunShop");
        menu_additem(mDeathRunShop, "Ciche chodzenie - \y 2000$", "ma_DeathRunShop");
        menu_additem(mDeathRunShop, "Zestaw Granatow - \y 5000$", "ma_DeathRunShop");
        menu_additem(mDeathRunShop, "Dodatkowe 50 Zycia (\rdla TT\w) - \y 2500$", "ma_DeathRunShop");
        menu_additem(mDeathRunShop, "Dodatkowe 150 Zycia (\rdla CT\w)- \y 4500$", "ma_DeathRunShop");
        menu_additem(mDeathRunShop, "Szybsze Chodzenie - \y 7500$", "ma_DeathRunShop");
        menu_additem(mDeathRunShop, "Mniejsza Grawitacja - \y 8000$", "ma_DeathRunShop");
        menu_additem(mDeathRunShop, "95 Mniejszej Niewidzialnosci - \y 9000$", "ma_DeathRunShop");
        menu_additem(mDeathRunShop, "Nuclear Bomb - \y 10000$", "ma_DeathRunShop");
        menu_additem(mDeathRunShop, "Spadochron - \y 4000$ ", "ma_DeathRunShop");
        menu_additem(mDeathRunShop, "Ponowne Odrodzenie - \y 3000$ ", "ma_DeathRunShop");
        menu_setprop(mDeathRunShop, MPROP_EXIT, MEXIT_ALL);
        /* Menu End */
        
        gDrShopOn = register_cvar( "deathrun_shop", "1" );
        gHeCost = register_cvar( "deathrun_he_cost", "2500" );
        gBothGrenadesCost = register_cvar( "deathrun_bothgrenades_cost", "5000" );
        gSilentCost = register_cvar( "deathrun_silent_cost", "4000" );
        gHealthCost = register_cvar( "deathrun_health_cost", "6000" );
        gArmorCost = register_cvar( "deathrun_armor_cost", "6000" );
        gSpeedCost = register_cvar( "deathrun_speed_cost", "16000" );
        gGravityCost = register_cvar( "deathrun_gravity_cost", "8000" );
        gInvisCost = register_cvar( "deathrun_invisibility_cost", "16000" );
        gParCost = register_cvar( "deathrun_parachute_cost", "4000" );
        gApoCost = register_cvar( "deathrun_apo_cost", "16000" );
        gRevCost = register_cvar( "deathrun_rev_cost", "3000" );
        
        gSpeedCvar = register_cvar( "deathrun_speed_power", "400.0" );
        gGravityCvar = register_cvar( "deathrun_gravity_power", "0.5" );
        gAdvertiseCvar = register_cvar( "deathrun_advertise_message", "1" );
        
        gMsgMoney = get_user_msgid( "Money" );
        gMaxPlayers = get_maxplayers();
        pFallSpeed = register_cvar("parachute_fallspeed", "100");
        pDetach = register_cvar("parachute_detach", "1"); 
        register_dictionary( "deathrunshop.txt" );
    }
    public plugin_precache()
    {
        engfunc( EngFunc_PrecacheSound, PICKUP_SND );
        precache_sound("ambience/alerts1.wav");
        precache_model("models/parachute.mdl");
        precache_sound("ambience/alert.wav");
        precache_sound("ambience/apo.wav"); 
        precache_sound("ambience/bomba.wav"); 
    }   
    public client_connect( id )
    {
        HasHe[ id ] = false;
        HasBothGren[ id ] = false;
        HasSilent[ id ] = false;
        HasHealth[ id ] = false;
        HasArmor[ id] = false;
        HasSpeed[ id ] = false;
        HasGravity[ id ] = false;
        HasInvis[ id ] = false;
    }
    public client_disconnect( id )
    {
        bSilent[ id ] = false;
        HasHe[ id ] = false;
        HasBothGren[ id ] = false;
        HasSilent[ id ] = false;
        HasHealth[ id ] = false;
        HasArmor[ id] = false;
        HasSpeed[ id ] = false;
        HasGravity[ id ] = false;
        HasInvis[ id ] = false;
    }
    public client_putinserver( id )
    {
        if( get_pcvar_num( gAdvertiseCvar ) != 0 )
        {
            set_task( ADVERTISE_JOIN_TIME, "ShowPlayerInfo", id );
        }
    }
    public forward_player_prethink( id )
    {
        if( bSilent[ id ] )
        {
            set_pev( id, pev_flTimeStepSound, 999 );
        }
    }
    public DeathrunShop( id )
    {
        if( get_pcvar_num( gDrShopOn ) != 1 )
        {
            ColorChat( id, GREEN, "DeathRun^x01:^x03 DeathRun Sklep^x01 jest^x04 wylaczony" );
            return PLUGIN_HANDLED;
        }
        /*if( !is_user_alive( id ) )
        {
            client_cmd(id,"spk ambience/alerts1.wav");
            ColorChat( id, GREEN, "DeathRun^x01:^x03 Musisz^x01 byc^x04 zywy^x01, aby cos kupic" );
            return PLUGIN_HANDLED;
        }
        */
        menu_display(id, mDeathRunShop);
    }
    public menu_shop( id, key )
    {
        if(is_user_alive( id ) == 0 && key != 10)
        {
            client_cmd(id,"spk ambience/alerts1.wav");
            ColorChat( id, GREEN, "DeathRun^x01:^x03 Musisz^x01 byc^x04 zywy^x01, aby cos kupic" );
            return PLUGIN_HANDLED;
        }
        new whichmoney = fm_get_user_money( id );
        switch( key )
        {
            case 0:
            {
                if( get_user_team( id ) == 1 )
                {
                    client_cmd(id,"spk ambience/alerts1.wav");
                    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
                    return PLUGIN_HANDLED;
                }
                if( whichmoney < get_pcvar_num( gHeCost ) )
                {
                    dont_have( id );
                    return PLUGIN_HANDLED;
                }
                fm_give_item( id, "weapon_smokegrenade" );
                set_hudmessage(255, 180, 0, -1.0, 0.3, 0, 1.0, 5.0);
                show_hudmessage(id, "Stop Policja! Teraz pulapke masz juz z glowy!");
                ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Granat Zamrazajacy Pulapke" );
                fm_set_user_money( id, whichmoney - get_pcvar_num( gHeCost ) );
                client_sound_play( id );
                HasHe[ id ] = true;
            }
            case 1:
            {
                if( HasSilent[ id ] )
                {
                    allready_have( id );
                    return PLUGIN_HANDLED;
                }
                if( get_user_team( id ) == 1 )
                {
                    client_cmd(id,"spk ambience/alerts1.wav");
                    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
                    return PLUGIN_HANDLED;
                     }
                if( whichmoney < get_pcvar_num( gSilentCost ) )
                {
                    dont_have( id );
                    return PLUGIN_HANDLED;
                }
                fm_set_user_footsteps( id, 1 );
                ColorChat( id, GREEN, "DeathRun^x01: Kupiles mozliwosc^x03 chodzenia po cichu!" );
                fm_set_user_money( id, whichmoney - get_pcvar_num( gSilentCost ) );
                client_sound_play( id );
                HasSilent[ id ] = true;
            }
            case 2:
            {
                if( HasBothGren[ id ] )
                {
                    allready_have( id );
                    return PLUGIN_HANDLED;
                }
                if( get_user_team( id ) == 1 )
                {
                    client_cmd(id,"spk ambience/alerts1.wav");
                    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
                    return PLUGIN_HANDLED;
                }
                if( whichmoney < get_pcvar_num( gBothGrenadesCost ) )
                {
                    dont_have( id );
                    return PLUGIN_HANDLED;
                } 
                fm_give_item( id, "weapon_hegrenade" );
                fm_give_item( id, "weapon_flashbang" );
                fm_give_item( id, "weapon_smokegrenade" );
                set_hudmessage(255, 180, 0, -1.0, 0.3, 0, 1.0, 5.0);
                show_hudmessage(id, "Wojna jeszcze trwa - lap!");
                ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Zestaw Granatow" );
                fm_set_user_money( id, whichmoney - get_pcvar_num( gBothGrenadesCost ) );
                client_sound_play( id );
                HasBothGren[ id ] = true;
            }
            case 3:
            {
                if( HasHealth[ id ] )
                {
                    allready_have( id );
                    return PLUGIN_HANDLED;
                }
                if( get_user_team( id ) == 2 )
                {
                    client_cmd(id,"spk ambience/alerts1.wav");
                    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Terrorysci^x01 moga to^x04 kupic!" );
                    return PLUGIN_HANDLED;
                }
                if( whichmoney < get_pcvar_num( gHealthCost ) )
                {
                    dont_have( id );
                    return PLUGIN_HANDLED;
                }
                fm_set_user_health( id, get_user_health( id ) + 50 );
                ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x04 50^x01 dodatkowych punktow^x03 HP!" );
                fm_set_user_money( id, whichmoney - get_pcvar_num( gHealthCost ) );
                client_sound_play( id );
                HasHealth[ id ] = true;
            }
            case 4:
            {
                if( HasArmor[ id ] )
                {
                    allready_have( id );
                    return PLUGIN_HANDLED;
                }
                if( get_user_team( id ) == 1 )
                {
                    client_cmd(id,"spk ambience/alerts1.wav");
                    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
                    return PLUGIN_HANDLED;
                }
                if( whichmoney < get_pcvar_num( gArmorCost ) )
                {
                    dont_have( id );
                    return PLUGIN_HANDLED;
                }
                fm_set_user_health( id, get_user_health( id ) + 150 );
                set_hudmessage(255, 180, 0, -1.0, 0.3, 0, 1.0, 5.0);
                show_hudmessage(id, "Bedzie dzika jazda!");
                ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x04 150^x01 dodatkowych punktow^x03 HP!" );
                fm_set_user_money( id, whichmoney - get_pcvar_num( gArmorCost ) );
                client_sound_play( id );
                HasArmor[ id ] = true;
            }
            case 5:
            {
                if( HasSpeed[ id ] )
                {
                    allready_have( id );
                    return PLUGIN_HANDLED;
                }
                if( get_user_team( id ) == 1 )
                {
                    client_cmd(id,"spk ambience/alerts1.wav");
                    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
                    return PLUGIN_HANDLED;
                }
                if( whichmoney < get_pcvar_num( gSpeedCost ) )
                {
                    dont_have( id );
                    return PLUGIN_HANDLED;
                }
                fm_set_user_maxspeed( id, get_pcvar_float( gSpeedCvar ) );
                ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Wieksza Szybkosc!" );
                fm_set_user_money( id, whichmoney - get_pcvar_num( gSpeedCost ) );
                client_sound_play( id );
                HasSpeed[ id ] = true;
            }
            case 6:
            {
                if( HasGravity[ id ] )
                {
                    allready_have( id );
                    return PLUGIN_HANDLED;
                }
                if( get_user_team( id ) == 1 )
                {
                    client_cmd(id,"spk ambience/alerts1.wav");
                    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
                    return PLUGIN_HANDLED;
                }
                if( whichmoney < get_pcvar_num( gGravityCost ) )
                {
                    dont_have( id );
                    return PLUGIN_HANDLED;
                }
                fm_set_user_gravity( id, get_pcvar_float( gGravityCvar ) );
                ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Wieksza Grawitacje" );
                fm_set_user_money( id, whichmoney - get_pcvar_num( gGravityCost ) );
                client_sound_play( id );
                HasGravity[ id ] = true;
            }
            case 7:
            {
                if( HasInvis[ id ] )
                {
                    allready_have( id );
                    return PLUGIN_HANDLED;
                }
                if( get_user_team( id ) == 2 )
                {
                    client_cmd(id,"spk ambience/alerts1.wav");
                    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Terrorysci^x01 moga to^x04 kupic!" );
                    return PLUGIN_HANDLED;
                }
                if( whichmoney < get_pcvar_num( gInvisCost ) )
                {
                    dont_have( id );
                    return PLUGIN_HANDLED;
                }
                fm_set_rendering( id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 50 );
                ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Mniejsza Niewidzialnosc" );
                fm_set_user_money( id, whichmoney - get_pcvar_num( gInvisCost ) );
                client_sound_play( id );
                HasInvis[ id ] = true;
            }
            case 8:
            {
                if( apo_used )
                {
                    allready_have( id );
                    return PLUGIN_HANDLED;
                }
                if( get_user_team( id ) == 2 )
                {
                    client_cmd(id,"spk ambience/alerts1.wav");
                    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Terrorysci^x01 moga to^x04 kupic!" );
                    return PLUGIN_HANDLED;
                }
                if( whichmoney < get_pcvar_num( gApoCost ) )
                {
                    dont_have( id );
                    return PLUGIN_HANDLED;
                }
                ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Nuclear Bomb" );
                set_hudmessage(255, 180, 0, -1.0, 0.3, 0, 1.0, 5.0);
                show_hudmessage(id, "Duza eksplozja!");
                fm_set_user_money( id, whichmoney - get_pcvar_num( gApoCost ) );
                client_sound_play( id );
                pozostalo_apo = 10;
                makeFog(128);
                set_task(1.0, "apokalipsa_timer" ,183, "", 0, "a", 10);
                apo_used = id;
            }
            case 9:
            {
                if( HasPar[ id ] )
                {
                    allready_have( id );
                    return PLUGIN_HANDLED;
                }
                if( get_user_team( id ) == 1 )
                {
                    client_cmd(id,"spk ambience/alerts1.wav");
                    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
                    return PLUGIN_HANDLED;
                }
                if( whichmoney < get_pcvar_num( gParCost ) )
                {
                    dont_have( id );
                    return PLUGIN_HANDLED;
                }
                ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Spadochron" );
                fm_set_user_money( id, whichmoney - get_pcvar_num( gParCost ) );
                client_sound_play( id );
                HasPar[ id ] = true;
            }
            case 10:
            {
                if(is_user_alive(id))
                {
                    ColorChat(id, GREEN, "*^x01 Jestes^x03 zywy^x01, nie mozesz^x04 zostac odrodzony!");
                    return PLUGIN_HANDLED;
                }
                if( get_user_team( id ) == 1 )
                {
                    //client_cmd(id,"spk ambience/alerts1.wav");
                    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
                    return PLUGIN_HANDLED;
                }
                if( whichmoney < get_pcvar_num( gRevCost ) )
                {
                    dont_have( id );
                    return PLUGIN_HANDLED;
                }
                //Ok
                ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Ponowne Odrodzenie" );
                fm_set_user_money( id, whichmoney - get_pcvar_num( gRevCost ) );
                client_sound_play( id );
                new args[1];
                args[0] = id;
                set_task(0.1, "prepare_spawn", 78+id, args, 1);
                set_task(0.5, "prepare_spawn", 78+id, args, 1);
                set_task(0.8, "prepare_wapons", 178+id, args, 1);
            }
            case MENU_EXIT:
            {
                ColorChat( id, GREEN, "DeathRun^x01: Zamknales^x03 menu^x01 sklepu" );
                return PLUGIN_HANDLED;
            }
            
        }
        return PLUGIN_HANDLED;
    }
    public prepare_spawn(args[])
    {
        new id = args[0];
        spawn(id);
    }
    public prepare_wapons(args[])
    {
        new id = args[0];
        fm_strip_user_weapons(id);
        fm_give_item(id, "weapon_knife");
    }
    public logevent_round_start()
    {
        apo_used = false;
        if( get_pcvar_num( gDrShopOn ) == 1 )
        {
            for( new id = 1; id <= gMaxPlayers; id++ )
            {
                HasHe[ id ] = false;
                HasBothGren[ id ] = false;
                HasSilent[ id ] = false;
                HasHealth[ id ] = false;
                HasArmor[ id] = false;
                HasSpeed[ id ] = false;
                HasGravity[ id ] = false;
                HasInvis[ id ] = false;
                HasPar[ id ] = false;
                remove_entity(g_fog);
                fm_set_user_gravity( id, 1.0 );    
                fm_set_user_maxspeed( id, 0.0 );
                fm_set_user_footsteps( id, 0 );
            }
        }
        return PLUGIN_CONTINUE;
    }
    public Hook_Deathmessage()
    {
        if( get_pcvar_num( gDrShopOn ) == 1 )
        {
            new id = read_data( 2 );
            
            HasHe[ id ] = false;
            HasBothGren[ id ] = false;
            HasSilent[ id ] = false;
            HasHealth[ id ] = false;
            HasArmor[ id] = false;
            HasSpeed[ id ] = false;
            HasGravity[ id ] = false;
            HasInvis[ id ] = false;
            fm_set_rendering( id );
            fm_set_user_gravity( id, 1.0 );    
            fm_set_user_maxspeed( id, 0.0 );
            fm_set_user_footsteps( id, 0 );
        }
        return PLUGIN_CONTINUE;
    }
    public ShowPlayerInfo( id )
    {
        set_hudmessage( 0, 0, 255, -1.0, 0.82, 0, 6.0, 12.0 );
        show_hudmessage( id, "%L", id, "DRSHOP_HUD_INFO" );
    }    
    allready_have( id)
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChat( id, GREEN, "DeathRun^x01:^x03 Masz^x01 juz ta^x04 rzecz." );
    }    
    dont_have( id )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChat( id, GREEN, "DeathRun^x01:^x03 Nie masz^x04 kasy^x01 na to" );
    }
    client_sound_play( index )
    {
    client_cmd( index, "speak %s", PICKUP_SND );
    }    
    stock fm_get_user_money( index )
    {
    new money = get_pdata_int( index, OFFSET_MONEY );
    return money;
    }
    stock fm_set_user_money( index, money, flash = 1 )
    {
    set_pdata_int( index, OFFSET_MONEY, money );
    fm_set_money( index, money, flash );
    return 1;
    }
    stock fm_set_money( index, money, flash )
    {
    message_begin( MSG_ONE_UNRELIABLE, gMsgMoney, {0, 0, 0}, index );
    write_long( money );
    write_byte( flash ? 1 : 0 );
    message_end();
    }
    stock fm_set_user_footsteps( index, set = 1 )
    {
    if( set )
    {
    set_pev( index, pev_flTimeStepSound, 999 );
    bSilent[ index ] = true;
    }
    else
    {
    set_pev( index, pev_flTimeStepSound, 400 );
    bSilent[ index ] = false;
    }
    return 1;  
    }
    
    public client_PreThink(id)
    {
    //parachute.mdl animation information
    //0 - deploy - 84 frames
    //1 - idle - 39 frames
    //2 - detach - 29 frames
    
    if (!is_user_alive(id) || !HasPar[id]) return false;
    
    new Float:fallspeed = get_pcvar_float(pFallSpeed) * -1.0;
    new Float:frame;
    
    new button = get_user_button(id);
    new oldbutton = get_user_oldbutton(id);
    new flags = get_entity_flags(id);
    
    if (para_ent[id] > 0 && (flags & FL_ONGROUND)) {
    
    if (get_pcvar_num(pDetach)) {
    
    if (get_user_gravity(id) == 0.1) set_user_gravity(id, 1.0);
    
    if (entity_get_int(para_ent[id],EV_INT_sequence) != 2) {
        entity_set_int(para_ent[id], EV_INT_sequence, 2);
        entity_set_int(para_ent[id], EV_INT_gaitsequence, 1);
        entity_set_float(para_ent[id], EV_FL_frame, 0.0);
        entity_set_float(para_ent[id], EV_FL_fuser1, 0.0);
        entity_set_float(para_ent[id], EV_FL_animtime, 0.0);
        entity_set_float(para_ent[id], EV_FL_framerate, 0.0);
        return false;
    }
    
    frame = entity_get_float(para_ent[id],EV_FL_fuser1) + 2.0;
    entity_set_float(para_ent[id],EV_FL_fuser1,frame);
    entity_set_float(para_ent[id],EV_FL_frame,frame);
    if (frame > 254.0) {
        remove_entity(para_ent[id]);
        para_ent[id] = 0;
    }
    }
    else {
    remove_entity(para_ent[id]);
    set_user_gravity(id, 1.0);
    para_ent[id] = 0;
    }
    
    return false;
    }
    
    if (button & IN_USE) {
    
    new Float:velocity[3];
    entity_get_vector(id, EV_VEC_velocity, velocity);
    
    if (velocity[2] < 0.0) {
    
    if(para_ent[id] <= 0) {
        para_ent[id] = create_entity("info_target");
        if(para_ent[id] > 0) {
            entity_set_string(para_ent[id],EV_SZ_classname,"parachute");
            entity_set_edict(para_ent[id], EV_ENT_aiment, id);
            entity_set_edict(para_ent[id], EV_ENT_owner, id);
            entity_set_int(para_ent[id], EV_INT_movetype, MOVETYPE_FOLLOW);
            entity_set_model(para_ent[id], "models/parachute.mdl");
            entity_set_int(para_ent[id], EV_INT_sequence, 0);
            entity_set_int(para_ent[id], EV_INT_gaitsequence, 1);
            entity_set_float(para_ent[id], EV_FL_frame, 0.0);
            entity_set_float(para_ent[id], EV_FL_fuser1, 0.0);
        }
    }
    
    if (para_ent[id] > 0) {
        
        entity_set_int(id, EV_INT_sequence, 3);
        entity_set_int(id, EV_INT_gaitsequence, 1);
        entity_set_float(id, EV_FL_frame, 1.0);
        entity_set_float(id, EV_FL_framerate, 1.0);
        set_user_gravity(id, 0.1);
        
        velocity[2] = (velocity[2] + 40.0 < fallspeed) ? velocity[2] + 40.0 : fallspeed;
        entity_set_vector(id, EV_VEC_velocity, velocity);
        
        if (entity_get_int(para_ent[id],EV_INT_sequence) == 0) {
            
            frame = entity_get_float(para_ent[id],EV_FL_fuser1) + 1.0;
            entity_set_float(para_ent[id],EV_FL_fuser1,frame);
            entity_set_float(para_ent[id],EV_FL_frame,frame);
            
            if (frame > 100.0) {
                entity_set_float(para_ent[id], EV_FL_animtime, 0.0);
                entity_set_float(para_ent[id], EV_FL_framerate, 0.4);
                entity_set_int(para_ent[id], EV_INT_sequence, 1);
                entity_set_int(para_ent[id], EV_INT_gaitsequence, 1);
                entity_set_float(para_ent[id], EV_FL_frame, 0.0);
                entity_set_float(para_ent[id], EV_FL_fuser1, 0.0);
            }
        }
    }
    }
    else if (para_ent[id] > 0) {
    remove_entity(para_ent[id]);
    set_user_gravity(id, 1.0);
    para_ent[id] = 0;
    }
    }
    else if ((oldbutton & IN_USE) && para_ent[id] > 0 ) {
    remove_entity(para_ent[id]);
    set_user_gravity(id, 1.0);
    para_ent[id] = 0;
    }
    return false;
    }
    public makeFog(amount) {
    //g_fog = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "env_fog"));
    g_fog = fm_create_entity("env_fog");
    new Float:density = (0.0002*(amount-90))+0.001;
    new dens[7];
    float_to_str(density,dens,6);
    fm_set_kvd(g_fog,"density",dens);
    fm_set_kvd(g_fog,"rendercolor","255 100 000");
    }
    public apokalipsa_timer()
    {
    set_hudmessage(255, 100, 0, -1.0, 0.3, 0, 1.0, 1.0);
    show_hudmessage(0, "Bomba wybuchnie za: %d ", pozostalo_apo);
    pozostalo_apo--;
    if(pozostalo_apo < 1)
    {
    new i;
    for(i = 1 ; i<=32; i++)
    {
    if(is_user_connected(i))
    {
        if(is_user_alive(i))
        {
            if(get_user_team(i) == 2 && i != apo_used)
            {
                user_kill(i);
            }
        }
    }
    }
    client_cmd(0, "spk ambience/apo.wav");
    }
    else
    {
    client_cmd(0, "spk ambience/alert.wav");
    }
    
    }  
    
    
    /* Menu DeathRun Shop */
    
    public mh_DeathRunShop(id, menu, item)
    {
    menu_shop(id, item);
    }
     

  7. #7 Odp: Grawitacja na 25 sekund 
    Super Mod Awatar peku33
    Dołączył
    Oct 2008
    Posty
    7,256
    Kod:
    case 6:
            {
                if( HasGravity[ id ] )
                {
                    allready_have( id );
                    return PLUGIN_HANDLED;
                }
                if( get_user_team( id ) == 1 )
                {
                    client_cmd(id,"spk ambience/alerts1.wav");
                    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
                    return PLUGIN_HANDLED;
                }
                if( whichmoney < get_pcvar_num( gGravityCost ) )
                {
                    dont_have( id );
                    return PLUGIN_HANDLED;
                }
                fm_set_user_gravity( id, get_pcvar_float( gGravityCvar ) );
                ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Wieksza Grawitacje" );
                fm_set_user_money( id, whichmoney - get_pcvar_num( gGravityCost ) );
                client_sound_play( id );
                HasGravity[ id ] = true;
            }
    dodaj po: HasGravity[ id ] = true;
    Kod:
    set_task(25.0, "disable_gravity", 56465+id);
    i na dole:
    Kod:
    public disable_gravity(taskid)
    {
    fm_set_user_gravity(taskid-56450, 800);
    HasGravity[taskid-56450] = false;
    }
    PISANIE DO MNIE NA GG Z PROŚBĄ O JAKĄKOLWIEK POMOC NIE JEST MILE WIDZIANE! Numer: 6374959
     

  8. #8 Odp: Grawitacja na 25 sekund 
    Spamer
    Dołączył
    Jan 2009
    Posty
    243
    A żeby była informacja o tym ile pozostało sekund to będzie taki kod? :



    Kod php:
    public disable_gravity(taskid)
    {
    fm_set_user_gravity(taskid-56450800);
    HasGravity[taskid-56450] = false;
    set_hudmessage(255000.30.806.012.0)
    show_hudmessage(0"Pozostalo Grawitacji: %d "pozostalo_grav);
    pozostalo_grav--;

    // bo chciałbym żeby informacja była tylko dla tego gracza co kupił czyli zamieniam 0 na id w show hudmessage ale błąd mi wywala.
    Ostatnio edytowane przez BeNq! ; 28-04-2010 o 17:06
     

  9. #9 Odp: Grawitacja na 25 sekund 
    Super Mod Awatar peku33
    Dołączył
    Oct 2008
    Posty
    7,256
    nie, ten event się tylko raz wykona, po 25 sekundach.
    PISANIE DO MNIE NA GG Z PROŚBĄ O JAKĄKOLWIEK POMOC NIE JEST MILE WIDZIANE! Numer: 6374959
     

  10. #10 Odp: Grawitacja na 25 sekund 
    Spamer
    Dołączył
    Jan 2009
    Posty
    243
    No to możesz mi dać kod gdzie będzie pisać ile pozostało grawitacji?
     

  11. #11 Odp: Grawitacja na 25 sekund 
    Super Mod Awatar peku33
    Dołączył
    Oct 2008
    Posty
    7,256
    nie, więcej roboty, bo trzeba do eventu dokładać info o graczu.
    PISANIE DO MNIE NA GG Z PROŚBĄ O JAKĄKOLWIEK POMOC NIE JEST MILE WIDZIANE! Numer: 6374959
     

  12. #12 Odp: Grawitacja na 25 sekund 
    Spamer
    Dołączył
    Jan 2009
    Posty
    243
    No to możesz to zrobić ? :) Będę wdzięczny ...
     

  13. #13 Odp: Grawitacja na 25 sekund 
    Super Mod Awatar peku33
    Dołączył
    Oct 2008
    Posty
    7,256
    daj mi cały kod sma ten mój + dodany licznik
    PISANIE DO MNIE NA GG Z PROŚBĄ O JAKĄKOLWIEK POMOC NIE JEST MILE WIDZIANE! Numer: 6374959
     

  14. #14 Odp: Grawitacja na 25 sekund 
    Spamer
    Dołączył
    Jan 2009
    Posty
    243
    Kod:
    #include <amxmodx>
    #include <amxmisc>
    #include <fakemeta>
    #include <fakemeta_util>
    #include <colorchat>
    #include <engine>
    #include <fun>
    
    #define PLUGIN "Deathrun Shop"
    #define VERSION "1.0"
    #define AUTHOR "tuty"
    
    #pragma semicolon 1
    #define PICKUP_SND    "items/gunpickup2.wav"
    #define OFFSET_MONEY    115
    #define ADVERTISE_JOIN_TIME 7.0
    
    new mDeathRunShop; // Menu
    
    
    new gDrShopOn;
    new gHeCost;
    new gBothGrenadesCost;
    new gSilentCost;
    new gHealthCost;
    new gArmorCost;
    new gSpeedCost;
    new gGravityCost;
    new gInvisCost;
    new gParCost;
    new gApoCost;
    new gRevCost;
    new gMsgMoney;
    new gMaxPlayers;
    new gMenu;
    new gSpeedCvar;
    new gGravityCvar;
    new gAdvertiseCvar;
    new HasHe[ 33 ];
    new HasBothGren[ 33 ];
    new HasSilent[ 33 ];
    new HasHealth[ 33 ];
    new HasArmor[ 33 ];
    new HasSpeed[ 33 ];
    new HasGravity[ 33 ];
    new HasInvis[ 33 ];
    new HasPar[ 33 ];
    new bool:bSilent[ 33 ];
    new pFallSpeed, pDetach;
    new para_ent[33];
    new pozostalo_apo;
    new apo_used;
    new g_fog;
    public plugin_init()
    {
    register_plugin( PLUGIN, VERSION, AUTHOR );
    register_forward( FM_PlayerPreThink, "forward_player_prethink" );
    register_logevent( "logevent_round_start", 2, "1=Round_Start" );
    register_event( "DeathMsg", "Hook_Deathmessage", "a" );
    
    register_clcmd( "say /shop", "DeathrunShop" );
    register_clcmd( "say_team /shop", "DeathrunShop" );
    register_clcmd( "say shop", "DeathrunShop" );
    register_clcmd( "say_team shop", "DeathrunShop" );
    register_clcmd( "/shop", "DeathrunShop" );
    
    /* Menu DeathRun Shop */
    
    /* Use menu_display(id, mDeathRunShop, 0) to show the menu to an user. */
    mDeathRunShop = menu_create("\rDeathRun Shop by\y Dzielnica-Fragow", "mh_DeathRunShop");
    menu_additem(mDeathRunShop, "Granat Zamrazajacy Pulapke - \y 1000$", "ma_DeathRunShop");
    menu_additem(mDeathRunShop, "Ciche chodzenie - \y 2000$", "ma_DeathRunShop");
    menu_additem(mDeathRunShop, "Zestaw Granatow - \y 5000$", "ma_DeathRunShop");
    menu_additem(mDeathRunShop, "Dodatkowe 50 Zycia (\rdla TT\w) - \y 2500$", "ma_DeathRunShop");
    menu_additem(mDeathRunShop, "Dodatkowe 150 Zycia (\rdla CT\w)- \y 4500$", "ma_DeathRunShop");
    menu_additem(mDeathRunShop, "Szybsze Chodzenie - \y 7500$", "ma_DeathRunShop");
    menu_additem(mDeathRunShop, "Mniejsza Grawitacja - \y 8000$", "ma_DeathRunShop");
    menu_additem(mDeathRunShop, "95 Mniejszej Niewidzialnosci - \y 9000$", "ma_DeathRunShop");
    menu_additem(mDeathRunShop, "Nuclear Bomb - \y 10000$", "ma_DeathRunShop");
    menu_additem(mDeathRunShop, "Spadochron - \y 4000$ ", "ma_DeathRunShop");
    menu_additem(mDeathRunShop, "Ponowne Odrodzenie - \y 3000$ ", "ma_DeathRunShop");
    menu_setprop(mDeathRunShop, MPROP_EXIT, MEXIT_ALL);
    /* Menu End */
    
    gDrShopOn = register_cvar( "deathrun_shop", "1" );
    gHeCost = register_cvar( "deathrun_he_cost", "2500" );
    gBothGrenadesCost = register_cvar( "deathrun_bothgrenades_cost", "5000" );
    gSilentCost = register_cvar( "deathrun_silent_cost", "4000" );
    gHealthCost = register_cvar( "deathrun_health_cost", "6000" );
    gArmorCost = register_cvar( "deathrun_armor_cost", "6000" );
    gSpeedCost = register_cvar( "deathrun_speed_cost", "16000" );
    gGravityCost = register_cvar( "deathrun_gravity_cost", "8000" );
    gInvisCost = register_cvar( "deathrun_invisibility_cost", "16000" );
    gParCost = register_cvar( "deathrun_parachute_cost", "4000" );
    gApoCost = register_cvar( "deathrun_apo_cost", "16000" );
    gRevCost = register_cvar( "deathrun_rev_cost", "3000" );
    
    gSpeedCvar = register_cvar( "deathrun_speed_power", "400.0" );
    gGravityCvar = register_cvar( "deathrun_gravity_power", "0.5" );
    gAdvertiseCvar = register_cvar( "deathrun_advertise_message", "1" );
    
    gMsgMoney = get_user_msgid( "Money" );
    gMaxPlayers = get_maxplayers();
    pFallSpeed = register_cvar("parachute_fallspeed", "100");
    pDetach = register_cvar("parachute_detach", "1"); 
    register_dictionary( "deathrunshop.txt" );
    }
    public plugin_precache()
    {
    engfunc( EngFunc_PrecacheSound, PICKUP_SND );
    precache_sound("ambience/alerts1.wav");
    precache_model("models/parachute.mdl");
    precache_sound("ambience/alert.wav");
    precache_sound("ambience/apo.wav"); 
    precache_sound("ambience/bomba.wav"); 
    }   
    public client_connect( id )
    {
    HasHe[ id ] = false;
    HasBothGren[ id ] = false;
    HasSilent[ id ] = false;
    HasHealth[ id ] = false;
    HasArmor[ id] = false;
    HasSpeed[ id ] = false;
    HasGravity[ id ] = false;
    HasInvis[ id ] = false;
    }
    public client_disconnect( id )
    {
    bSilent[ id ] = false;
    HasHe[ id ] = false;
    HasBothGren[ id ] = false;
    HasSilent[ id ] = false;
    HasHealth[ id ] = false;
    HasArmor[ id] = false;
    HasSpeed[ id ] = false;
    HasGravity[ id ] = false;
    HasInvis[ id ] = false;
    }
    public client_putinserver( id )
    {
    if( get_pcvar_num( gAdvertiseCvar ) != 0 )
    {
    set_task( ADVERTISE_JOIN_TIME, "ShowPlayerInfo", id );
    }
    }
    public forward_player_prethink( id )
    {
    if( bSilent[ id ] )
    {
    set_pev( id, pev_flTimeStepSound, 999 );
    }
    }
    public DeathrunShop( id )
    {
    if( get_pcvar_num( gDrShopOn ) != 1 )
    {
    ColorChat( id, GREEN, "DeathRun^x01:^x03 DeathRun Sklep^x01 jest^x04 wylaczony" );
    return PLUGIN_HANDLED;
    }
    /*if( !is_user_alive( id ) )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChat( id, GREEN, "DeathRun^x01:^x03 Musisz^x01 byc^x04 zywy^x01, aby cos kupic" );
    return PLUGIN_HANDLED;
    }
    */
    menu_display(id, mDeathRunShop);
    }
    public menu_shop( id, key )
    {
    if(is_user_alive( id ) == 0 && key != 10)
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChat( id, GREEN, "DeathRun^x01:^x03 Musisz^x01 byc^x04 zywy^x01, aby cos kupic" );
    return PLUGIN_HANDLED;
    }
    new whichmoney = fm_get_user_money( id );
    switch( key )
    {
    case 0:
    {
    if( get_user_team( id ) == 1 )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    return PLUGIN_HANDLED;
    }
    if( whichmoney < get_pcvar_num( gHeCost ) )
    {
    dont_have( id );
    return PLUGIN_HANDLED;
    }
    fm_give_item( id, "weapon_smokegrenade" );
    set_hudmessage(255, 180, 0, -1.0, 0.3, 0, 1.0, 5.0);
    show_hudmessage(id, "Stop Policja! Teraz pulapke masz juz z glowy!");
    ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Granat Zamrazajacy Pulapke" );
    fm_set_user_money( id, whichmoney - get_pcvar_num( gHeCost ) );
    client_sound_play( id );
    HasHe[ id ] = true;
    }
    case 1:
    {
    if( HasSilent[ id ] )
    {
    allready_have( id );
    return PLUGIN_HANDLED;
    }
    if( get_user_team( id ) == 1 )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    return PLUGIN_HANDLED;
    }
    if( whichmoney < get_pcvar_num( gSilentCost ) )
    {
    dont_have( id );
    return PLUGIN_HANDLED;
    }
    fm_set_user_footsteps( id, 1 );
    ColorChat( id, GREEN, "DeathRun^x01: Kupiles mozliwosc^x03 chodzenia po cichu!" );
    fm_set_user_money( id, whichmoney - get_pcvar_num( gSilentCost ) );
    client_sound_play( id );
    HasSilent[ id ] = true;
    }
    case 2:
    {
    if( HasBothGren[ id ] )
    {
    allready_have( id );
    return PLUGIN_HANDLED;
    }
    if( get_user_team( id ) == 1 )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    return PLUGIN_HANDLED;
    }
    if( whichmoney < get_pcvar_num( gBothGrenadesCost ) )
    {
    dont_have( id );
    return PLUGIN_HANDLED;
    } 
    fm_give_item( id, "weapon_hegrenade" );
    fm_give_item( id, "weapon_flashbang" );
    fm_give_item( id, "weapon_smokegrenade" );
    set_hudmessage(255, 180, 0, -1.0, 0.3, 0, 1.0, 5.0);
    show_hudmessage(id, "Wojna jeszcze trwa - lap!");
    ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Zestaw Granatow" );
    fm_set_user_money( id, whichmoney - get_pcvar_num( gBothGrenadesCost ) );
    client_sound_play( id );
    HasBothGren[ id ] = true;
    }
    case 3:
    {
    if( HasHealth[ id ] )
    {
    allready_have( id );
    return PLUGIN_HANDLED;
    }
    if( get_user_team( id ) == 2 )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Terrorysci^x01 moga to^x04 kupic!" );
    return PLUGIN_HANDLED;
    }
    if( whichmoney < get_pcvar_num( gHealthCost ) )
    {
    dont_have( id );
    return PLUGIN_HANDLED;
    }
    fm_set_user_health( id, get_user_health( id ) + 50 );
    ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x04 50^x01 dodatkowych punktow^x03 HP!" );
    fm_set_user_money( id, whichmoney - get_pcvar_num( gHealthCost ) );
    client_sound_play( id );
    HasHealth[ id ] = true;
    }
    case 4:
    {
    if( HasArmor[ id ] )
    {
    allready_have( id );
    return PLUGIN_HANDLED;
    }
    if( get_user_team( id ) == 1 )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    return PLUGIN_HANDLED;
    }
    if( whichmoney < get_pcvar_num( gArmorCost ) )
    {
    dont_have( id );
    return PLUGIN_HANDLED;
    }
    fm_set_user_health( id, get_user_health( id ) + 150 );
    set_hudmessage(255, 180, 0, -1.0, 0.3, 0, 1.0, 5.0);
    show_hudmessage(id, "Bedzie dzika jazda!");
    ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x04 150^x01 dodatkowych punktow^x03 HP!" );
    fm_set_user_money( id, whichmoney - get_pcvar_num( gArmorCost ) );
    client_sound_play( id );
    HasArmor[ id ] = true;
    }
    case 5:
    {
    if( HasSpeed[ id ] )
    {
    allready_have( id );
    return PLUGIN_HANDLED;
    }
    if( get_user_team( id ) == 1 )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    return PLUGIN_HANDLED;
    }
    if( whichmoney < get_pcvar_num( gSpeedCost ) )
    {
    dont_have( id );
    return PLUGIN_HANDLED;
    }
    fm_set_user_maxspeed( id, get_pcvar_float( gSpeedCvar ) );
    ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Wieksza Szybkosc!" );
    fm_set_user_money( id, whichmoney - get_pcvar_num( gSpeedCost ) );
    client_sound_play( id );
    HasSpeed[ id ] = true;
    }
    case 6:
    {
    if( HasGravity[ id ] )
    {
    allready_have( id );
    return PLUGIN_HANDLED;
    }
    if( get_user_team( id ) == 1 )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    return PLUGIN_HANDLED;
    }
    if( whichmoney < get_pcvar_num( gGravityCost ) )
    {
    dont_have( id );
    return PLUGIN_HANDLED;
    }
    fm_set_user_gravity( id, get_pcvar_float( gGravityCvar ) );
    ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Mniejsza Grawitacje" );
    fm_set_user_money( id, whichmoney - get_pcvar_num( gGravityCost ) );
    client_sound_play( id );
    HasGravity[ id ] = true;
    set_task(25.0, "disable_gravity", 56465+id);
    
    }
    case 7:
    {
    if( HasInvis[ id ] )
    {
    allready_have( id );
    return PLUGIN_HANDLED;
    }
    if( get_user_team( id ) == 2 )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Terrorysci^x01 moga to^x04 kupic!" );
    return PLUGIN_HANDLED;
    }
    if( whichmoney < get_pcvar_num( gInvisCost ) )
    {
    dont_have( id );
    return PLUGIN_HANDLED;
    }
    fm_set_rendering( id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 50 );
    ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Mniejsza Niewidzialnosc" );
    fm_set_user_money( id, whichmoney - get_pcvar_num( gInvisCost ) );
    client_sound_play( id );
    HasInvis[ id ] = true;
    }
    case 8:
    {
    if( apo_used )
    {
    allready_have( id );
    return PLUGIN_HANDLED;
    }
    if( get_user_team( id ) == 2 )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Terrorysci^x01 moga to^x04 kupic!" );
    return PLUGIN_HANDLED;
    }
    if( whichmoney < get_pcvar_num( gApoCost ) )
    {
    dont_have( id );
    return PLUGIN_HANDLED;
    }
    ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Nuclear Bomb" );
    set_hudmessage(255, 180, 0, -1.0, 0.3, 0, 1.0, 5.0);
    show_hudmessage(id, "Duza eksplozja!");
    fm_set_user_money( id, whichmoney - get_pcvar_num( gApoCost ) );
    client_sound_play( id );
    pozostalo_apo = 10;
    makeFog(128);
    set_task(1.0, "apokalipsa_timer" ,183, "", 0, "a", 10);
    apo_used = id;
    }
    case 9:
    {
    if( HasPar[ id ] )
    {
    allready_have( id );
    return PLUGIN_HANDLED;
    }
    if( get_user_team( id ) == 1 )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    return PLUGIN_HANDLED;
    }
    if( whichmoney < get_pcvar_num( gParCost ) )
    {
    dont_have( id );
    return PLUGIN_HANDLED;
    }
    ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Spadochron" );
    fm_set_user_money( id, whichmoney - get_pcvar_num( gParCost ) );
    client_sound_play( id );
    HasPar[ id ] = true;
    }
    case 10:
    {
    if(is_user_alive(id))
    {
    ColorChat(id, GREEN, "*^x01 Jestes^x03 zywy^x01, nie mozesz^x04 zostac odrodzony!");
    return PLUGIN_HANDLED;
    }
    if( get_user_team( id ) == 1 )
    {
    //client_cmd(id,"spk ambience/alerts1.wav");
    ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    return PLUGIN_HANDLED;
    }
    if( whichmoney < get_pcvar_num( gRevCost ) )
    {
    dont_have( id );
    return PLUGIN_HANDLED;
    }
    //Ok
    ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Ponowne Odrodzenie" );
    fm_set_user_money( id, whichmoney - get_pcvar_num( gRevCost ) );
    client_sound_play( id );
    new args[1];
    args[0] = id;
    set_task(0.1, "prepare_spawn", 78+id, args, 1);
    set_task(0.5, "prepare_spawn", 78+id, args, 1);
    set_task(0.8, "prepare_wapons", 178+id, args, 1);
    }
    case MENU_EXIT:
    {
    ColorChat( id, GREEN, "DeathRun^x01: Zamknales^x03 menu^x01 sklepu" );
    return PLUGIN_HANDLED;
    }
    
    }
    return PLUGIN_HANDLED;
    }
    public prepare_spawn(args[])
    {
    new id = args[0];
    spawn(id);
    }
    public prepare_wapons(args[])
    {
    new id = args[0];
    fm_strip_user_weapons(id);
    fm_give_item(id, "weapon_knife");
    }
    public logevent_round_start()
    {
    apo_used = false;
    if( get_pcvar_num( gDrShopOn ) == 1 )
    {
    for( new id = 1; id <= gMaxPlayers; id++ )
    {
    HasHe[ id ] = false;
    HasBothGren[ id ] = false;
    HasSilent[ id ] = false;
    HasHealth[ id ] = false;
    HasArmor[ id] = false;
    HasSpeed[ id ] = false;
    HasGravity[ id ] = false;
    HasInvis[ id ] = false;
    HasPar[ id ] = false;
    remove_entity(g_fog);
    fm_set_user_gravity( id, 1.0 );    
    fm_set_user_maxspeed( id, 0.0 );
    fm_set_user_footsteps( id, 0 );
    }
    }
    return PLUGIN_CONTINUE;
    }
    public Hook_Deathmessage()
    {
    if( get_pcvar_num( gDrShopOn ) == 1 )
    {
    new id = read_data( 2 );
    
    HasHe[ id ] = false;
    HasBothGren[ id ] = false;
    HasSilent[ id ] = false;
    HasHealth[ id ] = false;
    HasArmor[ id] = false;
    HasSpeed[ id ] = false;
    HasGravity[ id ] = false;
    HasInvis[ id ] = false;
    fm_set_rendering( id );
    fm_set_user_gravity( id, 1.0 );    
    fm_set_user_maxspeed( id, 0.0 );
    fm_set_user_footsteps( id, 0 );
    }
    return PLUGIN_CONTINUE;
    }
    public ShowPlayerInfo( id )
    {
    set_hudmessage( 0, 0, 255, -1.0, 0.82, 0, 6.0, 12.0 );
    show_hudmessage( id, "%L", id, "DRSHOP_HUD_INFO" );
    }    
    allready_have( id)
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChat( id, GREEN, "DeathRun^x01:^x03 Masz^x01 juz ta^x04 rzecz." );
    }    
    dont_have( id )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChat( id, GREEN, "DeathRun^x01:^x03 Nie masz^x04 kasy^x01 na to" );
    }
    client_sound_play( index )
    {
    client_cmd( index, "speak %s", PICKUP_SND );
    }    
    stock fm_get_user_money( index )
    {
    new money = get_pdata_int( index, OFFSET_MONEY );
    return money;
    }
    stock fm_set_user_money( index, money, flash = 1 )
    {
    set_pdata_int( index, OFFSET_MONEY, money );
    fm_set_money( index, money, flash );
    return 1;
    }
    stock fm_set_money( index, money, flash )
    {
    message_begin( MSG_ONE_UNRELIABLE, gMsgMoney, {0, 0, 0}, index );
    write_long( money );
    write_byte( flash ? 1 : 0 );
    message_end();
    }
    stock fm_set_user_footsteps( index, set = 1 )
    {
    if( set )
    {
    set_pev( index, pev_flTimeStepSound, 999 );
    bSilent[ index ] = true;
    }
    else
    {
    set_pev( index, pev_flTimeStepSound, 400 );
    bSilent[ index ] = false;
    }
    return 1;  
    }
    
    public client_PreThink(id)
    {
    //parachute.mdl animation information
    //0 - deploy - 84 frames
    //1 - idle - 39 frames
    //2 - detach - 29 frames
    
    if (!is_user_alive(id) || !HasPar[id]) return false;
    
    new Float:fallspeed = get_pcvar_float(pFallSpeed) * -1.0;
    new Float:frame;
    
    new button = get_user_button(id);
    new oldbutton = get_user_oldbutton(id);
    new flags = get_entity_flags(id);
    
    if (para_ent[id] > 0 && (flags & FL_ONGROUND)) {
    
    if (get_pcvar_num(pDetach)) {
    
    if (get_user_gravity(id) == 0.1) set_user_gravity(id, 1.0);
    
    if (entity_get_int(para_ent[id],EV_INT_sequence) != 2) {
    entity_set_int(para_ent[id], EV_INT_sequence, 2);
    entity_set_int(para_ent[id], EV_INT_gaitsequence, 1);
    entity_set_float(para_ent[id], EV_FL_frame, 0.0);
    entity_set_float(para_ent[id], EV_FL_fuser1, 0.0);
    entity_set_float(para_ent[id], EV_FL_animtime, 0.0);
    entity_set_float(para_ent[id], EV_FL_framerate, 0.0);
    return false;
    }
    
    frame = entity_get_float(para_ent[id],EV_FL_fuser1) + 2.0;
    entity_set_float(para_ent[id],EV_FL_fuser1,frame);
    entity_set_float(para_ent[id],EV_FL_frame,frame);
    if (frame > 254.0) {
    remove_entity(para_ent[id]);
    para_ent[id] = 0;
    }
    }
    else {
    remove_entity(para_ent[id]);
    set_user_gravity(id, 1.0);
    para_ent[id] = 0;
    }
    
    return false;
    }
    
    if (button & IN_USE) {
    
    new Float:velocity[3];
    entity_get_vector(id, EV_VEC_velocity, velocity);
    
    if (velocity[2] < 0.0) {
    
    if(para_ent[id] <= 0) {
    para_ent[id] = create_entity("info_target");
    if(para_ent[id] > 0) {
    entity_set_string(para_ent[id],EV_SZ_classname,"parachute");
    entity_set_edict(para_ent[id], EV_ENT_aiment, id);
    entity_set_edict(para_ent[id], EV_ENT_owner, id);
    entity_set_int(para_ent[id], EV_INT_movetype, MOVETYPE_FOLLOW);
    entity_set_model(para_ent[id], "models/parachute.mdl");
    entity_set_int(para_ent[id], EV_INT_sequence, 0);
    entity_set_int(para_ent[id], EV_INT_gaitsequence, 1);
    entity_set_float(para_ent[id], EV_FL_frame, 0.0);
    entity_set_float(para_ent[id], EV_FL_fuser1, 0.0);
    }
    }
    
    if (para_ent[id] > 0) {
    
    entity_set_int(id, EV_INT_sequence, 3);
    entity_set_int(id, EV_INT_gaitsequence, 1);
    entity_set_float(id, EV_FL_frame, 1.0);
    entity_set_float(id, EV_FL_framerate, 1.0);
    set_user_gravity(id, 0.1);
    
    velocity[2] = (velocity[2] + 40.0 < fallspeed) ? velocity[2] + 40.0 : fallspeed;
    entity_set_vector(id, EV_VEC_velocity, velocity);
    
    if (entity_get_int(para_ent[id],EV_INT_sequence) == 0) {
    
    frame = entity_get_float(para_ent[id],EV_FL_fuser1) + 1.0;
    entity_set_float(para_ent[id],EV_FL_fuser1,frame);
    entity_set_float(para_ent[id],EV_FL_frame,frame);
    
    if (frame > 100.0) {
    entity_set_float(para_ent[id], EV_FL_animtime, 0.0);
    entity_set_float(para_ent[id], EV_FL_framerate, 0.4);
    entity_set_int(para_ent[id], EV_INT_sequence, 1);
    entity_set_int(para_ent[id], EV_INT_gaitsequence, 1);
    entity_set_float(para_ent[id], EV_FL_frame, 0.0);
    entity_set_float(para_ent[id], EV_FL_fuser1, 0.0);
    }
    }
    }
    }
    else if (para_ent[id] > 0) {
    remove_entity(para_ent[id]);
    set_user_gravity(id, 1.0);
    para_ent[id] = 0;
    }
    }
    else if ((oldbutton & IN_USE) && para_ent[id] > 0 ) {
    remove_entity(para_ent[id]);
    set_user_gravity(id, 1.0);
    para_ent[id] = 0;
    }
    return false;
    }
    public makeFog(amount) {
    //g_fog = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "env_fog"));
    g_fog = fm_create_entity("env_fog");
    new Float:density = (0.0002*(amount-90))+0.001;
    new dens[7];
    float_to_str(density,dens,6);
    fm_set_kvd(g_fog,"density",dens);
    fm_set_kvd(g_fog,"rendercolor","255 100 000");
    }
    public apokalipsa_timer()
    {
    set_hudmessage(255, 100, 0, -1.0, 0.3, 0, 1.0, 1.0);
    show_hudmessage(0, "Bomba wybuchnie za: %d ", pozostalo_apo);
    pozostalo_apo--;
    if(pozostalo_apo < 1)
    {
    new i;
    for(i = 1 ; i<=32; i++)
    {
    if(is_user_connected(i))
    {
    if(is_user_alive(i))
    {
    if(get_user_team(i) == 2 && i != apo_used)
    {
    user_kill(i);
    }
    }
    }
    }
    client_cmd(0, "spk ambience/apo.wav");
    }
    else
    {
    client_cmd(0, "spk ambience/alert.wav");
    }
    
    }  
    
    
    /* Menu DeathRun Shop */
    
    public mh_DeathRunShop(id, menu, item)
    {
    menu_shop(id, item);
    }
    public disable_gravity(taskid)
    {
    fm_set_user_gravity(taskid-56450, 800);
    HasGravity[taskid-56450] = false;
    }
     

  15. #15 Odp: Grawitacja na 25 sekund 
    Super Mod Awatar peku33
    Dołączył
    Oct 2008
    Posty
    7,256
    Kod:
    #include <amxmodx>
    #include <amxmisc>
    #include <fakemeta>
    #include <fakemeta_util>
    #include <colorchat>
    #include <engine>
    #include <fun>
    
    #define PLUGIN "Deathrun Shop"
    #define VERSION "1.0"
    #define AUTHOR "tuty"
    
    #pragma semicolon 1
    #define PICKUP_SND    "items/gunpickup2.wav"
    #define OFFSET_MONEY    115
    #define ADVERTISE_JOIN_TIME 7.0
    
    new mDeathRunShop; // Menu
    
    
    new gDrShopOn;
    new gHeCost;
    new gBothGrenadesCost;
    new gSilentCost;
    new gHealthCost;
    new gArmorCost;
    new gSpeedCost;
    new gGravityCost;
    new gInvisCost;
    new gParCost;
    new gApoCost;
    new gRevCost;
    new gMsgMoney;
    new gMaxPlayers;
    new gMenu;
    new gSpeedCvar;
    new gGravityCvar;
    new gAdvertiseCvar;
    new HasHe[ 33 ];
    new HasBothGren[ 33 ];
    new HasSilent[ 33 ];
    new HasHealth[ 33 ];
    new HasArmor[ 33 ];
    new HasSpeed[ 33 ];
    new HasGravity[ 33 ];
    new HasInvis[ 33 ];
    new HasPar[ 33 ];
    new bool:bSilent[ 33 ];
    new pFallSpeed, pDetach;
    new para_ent[33];
    new pozostalo_apo;
    new apo_used;
    new g_fog;
    new gravity_time[33];
    public plugin_init()
    {
    	register_plugin( PLUGIN, VERSION, AUTHOR );
    	register_forward( FM_PlayerPreThink, "forward_player_prethink" );
    	register_logevent( "logevent_round_start", 2, "1=Round_Start" );
    	register_event( "DeathMsg", "Hook_Deathmessage", "a" );
    	
    	register_clcmd( "say /shop", "DeathrunShop" );
    	register_clcmd( "say_team /shop", "DeathrunShop" );
    	register_clcmd( "say shop", "DeathrunShop" );
    	register_clcmd( "say_team shop", "DeathrunShop" );
    	register_clcmd( "/shop", "DeathrunShop" );
    	
    	/* Menu DeathRun Shop */
    	
    	/* Use menu_display(id, mDeathRunShop, 0) to show the menu to an user. */
    	mDeathRunShop = menu_create("\rDeathRun Shop by\y Dzielnica-Fragow", "mh_DeathRunShop");
    	menu_additem(mDeathRunShop, "Granat Zamrazajacy Pulapke - \y 1000$", "ma_DeathRunShop");
    	menu_additem(mDeathRunShop, "Ciche chodzenie - \y 2000$", "ma_DeathRunShop");
    	menu_additem(mDeathRunShop, "Zestaw Granatow - \y 5000$", "ma_DeathRunShop");
    	menu_additem(mDeathRunShop, "Dodatkowe 50 Zycia (\rdla TT\w) - \y 2500$", "ma_DeathRunShop");
    	menu_additem(mDeathRunShop, "Dodatkowe 150 Zycia (\rdla CT\w)- \y 4500$", "ma_DeathRunShop");
    	menu_additem(mDeathRunShop, "Szybsze Chodzenie - \y 7500$", "ma_DeathRunShop");
    	menu_additem(mDeathRunShop, "Mniejsza Grawitacja - \y 8000$", "ma_DeathRunShop");
    	menu_additem(mDeathRunShop, "95 Mniejszej Niewidzialnosci - \y 9000$", "ma_DeathRunShop");
    	menu_additem(mDeathRunShop, "Nuclear Bomb - \y 10000$", "ma_DeathRunShop");
    	menu_additem(mDeathRunShop, "Spadochron - \y 4000$ ", "ma_DeathRunShop");
    	menu_additem(mDeathRunShop, "Ponowne Odrodzenie - \y 3000$ ", "ma_DeathRunShop");
    	menu_setprop(mDeathRunShop, MPROP_EXIT, MEXIT_ALL);
    	/* Menu End */
    	
    	gDrShopOn = register_cvar( "deathrun_shop", "1" );
    	gHeCost = register_cvar( "deathrun_he_cost", "2500" );
    	gBothGrenadesCost = register_cvar( "deathrun_bothgrenades_cost", "5000" );
    	gSilentCost = register_cvar( "deathrun_silent_cost", "4000" );
    	gHealthCost = register_cvar( "deathrun_health_cost", "6000" );
    	gArmorCost = register_cvar( "deathrun_armor_cost", "6000" );
    	gSpeedCost = register_cvar( "deathrun_speed_cost", "16000" );
    	gGravityCost = register_cvar( "deathrun_gravity_cost", "8000" );
    	gInvisCost = register_cvar( "deathrun_invisibility_cost", "16000" );
    	gParCost = register_cvar( "deathrun_parachute_cost", "4000" );
    	gApoCost = register_cvar( "deathrun_apo_cost", "16000" );
    	gRevCost = register_cvar( "deathrun_rev_cost", "3000" );
    	
    	gSpeedCvar = register_cvar( "deathrun_speed_power", "400.0" );
    	gGravityCvar = register_cvar( "deathrun_gravity_power", "0.5" );
    	gAdvertiseCvar = register_cvar( "deathrun_advertise_message", "1" );
    	
    	gMsgMoney = get_user_msgid( "Money" );
    	gMaxPlayers = get_maxplayers();
    	pFallSpeed = register_cvar("parachute_fallspeed", "100");
    	pDetach = register_cvar("parachute_detach", "1"); 
    	register_dictionary( "deathrunshop.txt" );
    }
    public plugin_precache()
    {
    	engfunc( EngFunc_PrecacheSound, PICKUP_SND );
    	precache_sound("ambience/alerts1.wav");
    	precache_model("models/parachute.mdl");
    	precache_sound("ambience/alert.wav");
    	precache_sound("ambience/apo.wav"); 
    	precache_sound("ambience/bomba.wav"); 
    }   
    public client_connect( id )
    {
    	HasHe[ id ] = false;
    	HasBothGren[ id ] = false;
    	HasSilent[ id ] = false;
    	HasHealth[ id ] = false;
    	HasArmor[ id] = false;
    	HasSpeed[ id ] = false;
    	HasGravity[ id ] = false;
    	HasInvis[ id ] = false;
    }
    public client_disconnect( id )
    {
    	bSilent[ id ] = false;
    	HasHe[ id ] = false;
    	HasBothGren[ id ] = false;
    	HasSilent[ id ] = false;
    	HasHealth[ id ] = false;
    	HasArmor[ id] = false;
    	HasSpeed[ id ] = false;
    	HasGravity[ id ] = false;
    	HasInvis[ id ] = false;
    }
    public client_putinserver( id )
    {
    	if( get_pcvar_num( gAdvertiseCvar ) != 0 )
    	{
    		set_task( ADVERTISE_JOIN_TIME, "ShowPlayerInfo", id );
    	}
    }
    public forward_player_prethink( id )
    {
    	if( bSilent[ id ] )
    	{
    		set_pev( id, pev_flTimeStepSound, 999 );
    	}
    }
    public DeathrunShop( id )
    {
    	if( get_pcvar_num( gDrShopOn ) != 1 )
    	{
    		ColorChat( id, GREEN, "DeathRun^x01:^x03 DeathRun Sklep^x01 jest^x04 wylaczony" );
    		return PLUGIN_HANDLED;
    	}
    	/*if( !is_user_alive( id ) )
    {
    	client_cmd(id,"spk ambience/alerts1.wav");
    	ColorChat( id, GREEN, "DeathRun^x01:^x03 Musisz^x01 byc^x04 zywy^x01, aby cos kupic" );
    	return PLUGIN_HANDLED;
    }
    */
    menu_display(id, mDeathRunShop);
    }
    public menu_shop( id, key )
    {
    if(is_user_alive( id ) == 0 && key != 10)
    {
    	client_cmd(id,"spk ambience/alerts1.wav");
    	ColorChat( id, GREEN, "DeathRun^x01:^x03 Musisz^x01 byc^x04 zywy^x01, aby cos kupic" );
    	return PLUGIN_HANDLED;
    }
    new whichmoney = fm_get_user_money( id );
    switch( key )
    {
    	case 0:
    	{
    		if( get_user_team( id ) == 1 )
    		{
    			client_cmd(id,"spk ambience/alerts1.wav");
    			ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    			return PLUGIN_HANDLED;
    		}
    		if( whichmoney < get_pcvar_num( gHeCost ) )
    		{
    			dont_have( id );
    			return PLUGIN_HANDLED;
    		}
    		fm_give_item( id, "weapon_smokegrenade" );
    		set_hudmessage(255, 180, 0, -1.0, 0.3, 0, 1.0, 5.0);
    		show_hudmessage(id, "Stop Policja! Teraz pulapke masz juz z glowy!");
    		ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Granat Zamrazajacy Pulapke" );
    		fm_set_user_money( id, whichmoney - get_pcvar_num( gHeCost ) );
    		client_sound_play( id );
    		HasHe[ id ] = true;
    	}
    	case 1:
    	{
    		if( HasSilent[ id ] )
    		{
    			allready_have( id );
    			return PLUGIN_HANDLED;
    		}
    		if( get_user_team( id ) == 1 )
    		{
    			client_cmd(id,"spk ambience/alerts1.wav");
    			ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    			return PLUGIN_HANDLED;
    		}
    		if( whichmoney < get_pcvar_num( gSilentCost ) )
    		{
    			dont_have( id );
    			return PLUGIN_HANDLED;
    		}
    		fm_set_user_footsteps( id, 1 );
    		ColorChat( id, GREEN, "DeathRun^x01: Kupiles mozliwosc^x03 chodzenia po cichu!" );
    		fm_set_user_money( id, whichmoney - get_pcvar_num( gSilentCost ) );
    		client_sound_play( id );
    		HasSilent[ id ] = true;
    	}
    	case 2:
    	{
    		if( HasBothGren[ id ] )
    		{
    			allready_have( id );
    			return PLUGIN_HANDLED;
    		}
    		if( get_user_team( id ) == 1 )
    		{
    			client_cmd(id,"spk ambience/alerts1.wav");
    			ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    			return PLUGIN_HANDLED;
    		}
    		if( whichmoney < get_pcvar_num( gBothGrenadesCost ) )
    		{
    			dont_have( id );
    			return PLUGIN_HANDLED;
    		} 
    		fm_give_item( id, "weapon_hegrenade" );
    		fm_give_item( id, "weapon_flashbang" );
    		fm_give_item( id, "weapon_smokegrenade" );
    		set_hudmessage(255, 180, 0, -1.0, 0.3, 0, 1.0, 5.0);
    		show_hudmessage(id, "Wojna jeszcze trwa - lap!");
    		ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Zestaw Granatow" );
    		fm_set_user_money( id, whichmoney - get_pcvar_num( gBothGrenadesCost ) );
    		client_sound_play( id );
    		HasBothGren[ id ] = true;
    	}
    	case 3:
    	{
    		if( HasHealth[ id ] )
    		{
    			allready_have( id );
    			return PLUGIN_HANDLED;
    		}
    		if( get_user_team( id ) == 2 )
    		{
    			client_cmd(id,"spk ambience/alerts1.wav");
    			ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Terrorysci^x01 moga to^x04 kupic!" );
    			return PLUGIN_HANDLED;
    		}
    		if( whichmoney < get_pcvar_num( gHealthCost ) )
    		{
    			dont_have( id );
    			return PLUGIN_HANDLED;
    		}
    		fm_set_user_health( id, get_user_health( id ) + 50 );
    		ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x04 50^x01 dodatkowych punktow^x03 HP!" );
    		fm_set_user_money( id, whichmoney - get_pcvar_num( gHealthCost ) );
    		client_sound_play( id );
    		HasHealth[ id ] = true;
    	}
    	case 4:
    	{
    		if( HasArmor[ id ] )
    		{
    			allready_have( id );
    			return PLUGIN_HANDLED;
    		}
    		if( get_user_team( id ) == 1 )
    		{
    			client_cmd(id,"spk ambience/alerts1.wav");
    			ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    			return PLUGIN_HANDLED;
    		}
    		if( whichmoney < get_pcvar_num( gArmorCost ) )
    		{
    			dont_have( id );
    			return PLUGIN_HANDLED;
    		}
    		fm_set_user_health( id, get_user_health( id ) + 150 );
    		set_hudmessage(255, 180, 0, -1.0, 0.3, 0, 1.0, 5.0);
    		show_hudmessage(id, "Bedzie dzika jazda!");
    		ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x04 150^x01 dodatkowych punktow^x03 HP!" );
    		fm_set_user_money( id, whichmoney - get_pcvar_num( gArmorCost ) );
    		client_sound_play( id );
    		HasArmor[ id ] = true;
    	}
    	case 5:
    	{
    		if( HasSpeed[ id ] )
    		{
    			allready_have( id );
    			return PLUGIN_HANDLED;
    		}
    		if( get_user_team( id ) == 1 )
    		{
    			client_cmd(id,"spk ambience/alerts1.wav");
    			ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    			return PLUGIN_HANDLED;
    		}
    		if( whichmoney < get_pcvar_num( gSpeedCost ) )
    		{
    			dont_have( id );
    			return PLUGIN_HANDLED;
    		}
    		fm_set_user_maxspeed( id, get_pcvar_float( gSpeedCvar ) );
    		ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Wieksza Szybkosc!" );
    		fm_set_user_money( id, whichmoney - get_pcvar_num( gSpeedCost ) );
    		client_sound_play( id );
    		HasSpeed[ id ] = true;
    	}
    	case 6:
    	{
    		if( HasGravity[ id ] )
    		{
    			allready_have( id );
    			return PLUGIN_HANDLED;
    		}
    		if( get_user_team( id ) == 1 )
    		{
    			client_cmd(id,"spk ambience/alerts1.wav");
    			ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    			return PLUGIN_HANDLED;
    		}
    		if( whichmoney < get_pcvar_num( gGravityCost ) )
    		{
    			dont_have( id );
    			return PLUGIN_HANDLED;
    		}
    		fm_set_user_gravity( id, get_pcvar_float( gGravityCvar ) );
    		ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Mniejsza Grawitacje" );
    		fm_set_user_money( id, whichmoney - get_pcvar_num( gGravityCost ) );
    		client_sound_play( id );
    		HasGravity[ id ] = true;
    		gravity_time[id] = 25;
    		set_task(1.0, "disable_gravity", 56465+id, "", 0, "b");
    		
    	}
    	case 7:
    	{
    		if( HasInvis[ id ] )
    		{
    			allready_have( id );
    			return PLUGIN_HANDLED;
    		}
    		if( get_user_team( id ) == 2 )
    		{
    			client_cmd(id,"spk ambience/alerts1.wav");
    			ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Terrorysci^x01 moga to^x04 kupic!" );
    			return PLUGIN_HANDLED;
    		}
    		if( whichmoney < get_pcvar_num( gInvisCost ) )
    		{
    			dont_have( id );
    			return PLUGIN_HANDLED;
    		}
    		fm_set_rendering( id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 50 );
    		ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Mniejsza Niewidzialnosc" );
    		fm_set_user_money( id, whichmoney - get_pcvar_num( gInvisCost ) );
    		client_sound_play( id );
    		HasInvis[ id ] = true;
    	}
    	case 8:
    	{
    		if( apo_used )
    		{
    			allready_have( id );
    			return PLUGIN_HANDLED;
    		}
    		if( get_user_team( id ) == 2 )
    		{
    			client_cmd(id,"spk ambience/alerts1.wav");
    			ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Terrorysci^x01 moga to^x04 kupic!" );
    			return PLUGIN_HANDLED;
    		}
    		if( whichmoney < get_pcvar_num( gApoCost ) )
    		{
    			dont_have( id );
    			return PLUGIN_HANDLED;
    		}
    		ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Nuclear Bomb" );
    		set_hudmessage(255, 180, 0, -1.0, 0.3, 0, 1.0, 5.0);
    		show_hudmessage(id, "Duza eksplozja!");
    		fm_set_user_money( id, whichmoney - get_pcvar_num( gApoCost ) );
    		client_sound_play( id );
    		pozostalo_apo = 10;
    		makeFog(128);
    		set_task(1.0, "apokalipsa_timer" ,183, "", 0, "a", 10);
    		apo_used = id;
    	}
    	case 9:
    	{
    		if( HasPar[ id ] )
    		{
    			allready_have( id );
    			return PLUGIN_HANDLED;
    		}
    		if( get_user_team( id ) == 1 )
    		{
    			client_cmd(id,"spk ambience/alerts1.wav");
    			ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    			return PLUGIN_HANDLED;
    		}
    		if( whichmoney < get_pcvar_num( gParCost ) )
    		{
    			dont_have( id );
    			return PLUGIN_HANDLED;
    		}
    		ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Spadochron" );
    		fm_set_user_money( id, whichmoney - get_pcvar_num( gParCost ) );
    		client_sound_play( id );
    		HasPar[ id ] = true;
    	}
    	case 10:
    	{
    		if(is_user_alive(id))
    		{
    			ColorChat(id, GREEN, "*^x01 Jestes^x03 zywy^x01, nie mozesz^x04 zostac odrodzony!");
    			return PLUGIN_HANDLED;
    		}
    		if( get_user_team( id ) == 1 )
    		{
    			//client_cmd(id,"spk ambience/alerts1.wav");
    			ColorChat( id, GREEN, "DeathRun^x01: Tylko^x03 Anty-Terrorysci^x01 moga to^x04 kupic!" );
    			return PLUGIN_HANDLED;
    		}
    		if( whichmoney < get_pcvar_num( gRevCost ) )
    		{
    			dont_have( id );
    			return PLUGIN_HANDLED;
    		}
    		//Ok
    		ColorChat( id, GREEN, "DeathRun^x01: Kupiles^x03 Ponowne Odrodzenie" );
    		fm_set_user_money( id, whichmoney - get_pcvar_num( gRevCost ) );
    		client_sound_play( id );
    		new args[1];
    		args[0] = id;
    		set_task(0.1, "prepare_spawn", 78+id, args, 1);
    		set_task(0.5, "prepare_spawn", 78+id, args, 1);
    		set_task(0.8, "prepare_wapons", 178+id, args, 1);
    	}
    	case MENU_EXIT:
    	{
    		ColorChat( id, GREEN, "DeathRun^x01: Zamknales^x03 menu^x01 sklepu" );
    		return PLUGIN_HANDLED;
    	}
    	
    }
    return PLUGIN_HANDLED;
    }
    public prepare_spawn(args[])
    {
    new id = args[0];
    spawn(id);
    }
    public prepare_wapons(args[])
    {
    new id = args[0];
    fm_strip_user_weapons(id);
    fm_give_item(id, "weapon_knife");
    }
    public logevent_round_start()
    {
    apo_used = false;
    if( get_pcvar_num( gDrShopOn ) == 1 )
    {
    	for( new id = 1; id <= gMaxPlayers; id++ )
    	{
    		HasHe[ id ] = false;
    		HasBothGren[ id ] = false;
    		HasSilent[ id ] = false;
    		HasHealth[ id ] = false;
    		HasArmor[ id] = false;
    		HasSpeed[ id ] = false;
    		HasGravity[ id ] = false;
    		HasInvis[ id ] = false;
    		HasPar[ id ] = false;
    		remove_entity(g_fog);
    		fm_set_user_gravity( id, 1.0 );    
    		fm_set_user_maxspeed( id, 0.0 );
    		fm_set_user_footsteps( id, 0 );
    	}
    }
    return PLUGIN_CONTINUE;
    }
    public Hook_Deathmessage()
    {
    if( get_pcvar_num( gDrShopOn ) == 1 )
    {
    	new id = read_data( 2 );
    	
    	HasHe[ id ] = false;
    	HasBothGren[ id ] = false;
    	HasSilent[ id ] = false;
    	HasHealth[ id ] = false;
    	HasArmor[ id] = false;
    	HasSpeed[ id ] = false;
    	HasGravity[ id ] = false;
    	HasInvis[ id ] = false;
    	fm_set_rendering( id );
    	fm_set_user_gravity( id, 1.0 );    
    	fm_set_user_maxspeed( id, 0.0 );
    	fm_set_user_footsteps( id, 0 );
    }
    return PLUGIN_CONTINUE;
    }
    public ShowPlayerInfo( id )
    {
    set_hudmessage( 0, 0, 255, -1.0, 0.82, 0, 6.0, 12.0 );
    show_hudmessage( id, "%L", id, "DRSHOP_HUD_INFO" );
    }    
    allready_have( id)
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChat( id, GREEN, "DeathRun^x01:^x03 Masz^x01 juz ta^x04 rzecz." );
    }    
    dont_have( id )
    {
    client_cmd(id,"spk ambience/alerts1.wav");
    ColorChat( id, GREEN, "DeathRun^x01:^x03 Nie masz^x04 kasy^x01 na to" );
    }
    client_sound_play( index )
    {
    client_cmd( index, "speak %s", PICKUP_SND );
    }    
    stock fm_get_user_money( index )
    {
    new money = get_pdata_int( index, OFFSET_MONEY );
    return money;
    }
    stock fm_set_user_money( index, money, flash = 1 )
    {
    set_pdata_int( index, OFFSET_MONEY, money );
    fm_set_money( index, money, flash );
    return 1;
    }
    stock fm_set_money( index, money, flash )
    {
    message_begin( MSG_ONE_UNRELIABLE, gMsgMoney, {0, 0, 0}, index );
    write_long( money );
    write_byte( flash ? 1 : 0 );
    message_end();
    }
    stock fm_set_user_footsteps( index, set = 1 )
    {
    if( set )
    {
    set_pev( index, pev_flTimeStepSound, 999 );
    bSilent[ index ] = true;
    }
    else
    {
    set_pev( index, pev_flTimeStepSound, 400 );
    bSilent[ index ] = false;
    }
    return 1;  
    }
    
    public client_PreThink(id)
    {
    //parachute.mdl animation information
    //0 - deploy - 84 frames
    //1 - idle - 39 frames
    //2 - detach - 29 frames
    
    if (!is_user_alive(id) || !HasPar[id]) return false;
    
    new Float:fallspeed = get_pcvar_float(pFallSpeed) * -1.0;
    new Float:frame;
    
    new button = get_user_button(id);
    new oldbutton = get_user_oldbutton(id);
    new flags = get_entity_flags(id);
    
    if (para_ent[id] > 0 && (flags & FL_ONGROUND)) {
    
    if (get_pcvar_num(pDetach)) {
    
    if (get_user_gravity(id) == 0.1) set_user_gravity(id, 1.0);
    
    if (entity_get_int(para_ent[id],EV_INT_sequence) != 2) {
    entity_set_int(para_ent[id], EV_INT_sequence, 2);
    entity_set_int(para_ent[id], EV_INT_gaitsequence, 1);
    entity_set_float(para_ent[id], EV_FL_frame, 0.0);
    entity_set_float(para_ent[id], EV_FL_fuser1, 0.0);
    entity_set_float(para_ent[id], EV_FL_animtime, 0.0);
    entity_set_float(para_ent[id], EV_FL_framerate, 0.0);
    return false;
    }
    
    frame = entity_get_float(para_ent[id],EV_FL_fuser1) + 2.0;
    entity_set_float(para_ent[id],EV_FL_fuser1,frame);
    entity_set_float(para_ent[id],EV_FL_frame,frame);
    if (frame > 254.0) {
    remove_entity(para_ent[id]);
    para_ent[id] = 0;
    }
    }
    else {
    remove_entity(para_ent[id]);
    set_user_gravity(id, 1.0);
    para_ent[id] = 0;
    }
    
    return false;
    }
    
    if (button & IN_USE) {
    
    new Float:velocity[3];
    entity_get_vector(id, EV_VEC_velocity, velocity);
    
    if (velocity[2] < 0.0) {
    
    if(para_ent[id] <= 0) {
    para_ent[id] = create_entity("info_target");
    if(para_ent[id] > 0) {
    	entity_set_string(para_ent[id],EV_SZ_classname,"parachute");
    	entity_set_edict(para_ent[id], EV_ENT_aiment, id);
    	entity_set_edict(para_ent[id], EV_ENT_owner, id);
    	entity_set_int(para_ent[id], EV_INT_movetype, MOVETYPE_FOLLOW);
    	entity_set_model(para_ent[id], "models/parachute.mdl");
    	entity_set_int(para_ent[id], EV_INT_sequence, 0);
    	entity_set_int(para_ent[id], EV_INT_gaitsequence, 1);
    	entity_set_float(para_ent[id], EV_FL_frame, 0.0);
    	entity_set_float(para_ent[id], EV_FL_fuser1, 0.0);
    }
    }
    
    if (para_ent[id] > 0) {
    
    entity_set_int(id, EV_INT_sequence, 3);
    entity_set_int(id, EV_INT_gaitsequence, 1);
    entity_set_float(id, EV_FL_frame, 1.0);
    entity_set_float(id, EV_FL_framerate, 1.0);
    set_user_gravity(id, 0.1);
    
    velocity[2] = (velocity[2] + 40.0 < fallspeed) ? velocity[2] + 40.0 : fallspeed;
    entity_set_vector(id, EV_VEC_velocity, velocity);
    
    if (entity_get_int(para_ent[id],EV_INT_sequence) == 0) {
    	
    	frame = entity_get_float(para_ent[id],EV_FL_fuser1) + 1.0;
    	entity_set_float(para_ent[id],EV_FL_fuser1,frame);
    	entity_set_float(para_ent[id],EV_FL_frame,frame);
    	
    	if (frame > 100.0) {
    		entity_set_float(para_ent[id], EV_FL_animtime, 0.0);
    		entity_set_float(para_ent[id], EV_FL_framerate, 0.4);
    		entity_set_int(para_ent[id], EV_INT_sequence, 1);
    		entity_set_int(para_ent[id], EV_INT_gaitsequence, 1);
    		entity_set_float(para_ent[id], EV_FL_frame, 0.0);
    		entity_set_float(para_ent[id], EV_FL_fuser1, 0.0);
    	}
    }
    }
    }
    else if (para_ent[id] > 0) {
    remove_entity(para_ent[id]);
    set_user_gravity(id, 1.0);
    para_ent[id] = 0;
    }
    }
    else if ((oldbutton & IN_USE) && para_ent[id] > 0 ) {
    remove_entity(para_ent[id]);
    set_user_gravity(id, 1.0);
    para_ent[id] = 0;
    }
    return false;
    }
    public makeFog(amount) {
    //g_fog = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "env_fog"));
    g_fog = fm_create_entity("env_fog");
    new Float:density = (0.0002*(amount-90))+0.001;
    new dens[7];
    float_to_str(density,dens,6);
    fm_set_kvd(g_fog,"density",dens);
    fm_set_kvd(g_fog,"rendercolor","255 100 000");
    }
    public apokalipsa_timer()
    {
    set_hudmessage(255, 100, 0, -1.0, 0.3, 0, 1.0, 1.0);
    show_hudmessage(0, "Bomba wybuchnie za: %d ", pozostalo_apo);
    pozostalo_apo--;
    if(pozostalo_apo < 1)
    {
    new i;
    for(i = 1 ; i<=32; i++)
    {
    if(is_user_connected(i))
    {
    if(is_user_alive(i))
    {
    	if(get_user_team(i) == 2 && i != apo_used)
    	{
    		user_kill(i);
    	}
    }
    }
    }
    client_cmd(0, "spk ambience/apo.wav");
    }
    else
    {
    client_cmd(0, "spk ambience/alert.wav");
    }
    
    }  
    
    
    /* Menu DeathRun Shop */
    
    public mh_DeathRunShop(id, menu, item)
    {
    menu_shop(id, item);
    }
    public disable_gravity(taskid)
    {
    	new id = taskid-56450;
    	if(gravity_time[id] > 0)
    	{
    		set_hudmessage(255, 0, 0, -1.0, 0.01, 0, 1.0, 1.0, 0.1, 0.1)
    		show_hudmessage(id, "Pozostalo ci %d czasu grawitacji", gravity_time[id])
    		gravity_time[id]--;
    	}
    	else
    	{
    		fm_set_user_gravity(id, 800);
    		HasGravity[id] = false;
    		remove_task(taskid)
    	}
    }
    PISANIE DO MNIE NA GG Z PROŚBĄ O JAKĄKOLWIEK POMOC NIE JEST MILE WIDZIANE! Numer: 6374959
     

  16. #16 Odp: Grawitacja na 25 sekund 
    Spamer
    Dołączył
    Jan 2009
    Posty
    243
    Nie dało się skompilować bo nie dałeś ; na końcu w hud massage i we wiadomościach, zrobiłem to czego brakowało i nie działa :D
    Ostatnio edytowane przez BeNq! ; 30-04-2010 o 15:24
     

  17. #17 Odp: Grawitacja na 25 sekund 
    Super Mod Awatar peku33
    Dołączył
    Oct 2008
    Posty
    7,256
    ale pokazuje czy stoi w miejscu?
    PISANIE DO MNIE NA GG Z PROŚBĄ O JAKĄKOLWIEK POMOC NIE JEST MILE WIDZIANE! Numer: 6374959
     

  18. #18 Odp: Grawitacja na 25 sekund 
    Spamer
    Dołączył
    Jan 2009
    Posty
    243
    Nic się nie pokazuje :)
     

  19. #19 Odp: Grawitacja na 25 sekund 
    Super Mod Awatar peku33
    Dołączył
    Oct 2008
    Posty
    7,256
    w logach coś masz?
    PISANIE DO MNIE NA GG Z PROŚBĄ O JAKĄKOLWIEK POMOC NIE JEST MILE WIDZIANE! Numer: 6374959
     

  20. #20 Odp: Grawitacja na 25 sekund 
    Spamer
    Dołączył
    Jan 2009
    Posty
    243
    Ale peku33 co mają logi z tym ,że to się nie wyświetla? Błąd w pluginie i tyle..
     

Strona 1 z 2 1 2 OstatniOstatni

Podobne wątki

  1. [Steam] Grawitacja problem
    By borixon12331 in forum Problemy z CS 1.6
    Odpowiedzi: 1
    Ostatni post / autor: 14-11-2010, 20:01
  2. Problem - Deathrun grawitacja - VIP
    By Figusieq in forum Problemy i konfiguracja AMXX
    Odpowiedzi: 0
    Ostatni post / autor: 30-10-2010, 19:33
  3. soutzknivez grawitacja
    By Cukieras in forum OffTopic - Counter Strike
    Odpowiedzi: 1
    Ostatni post / autor: 14-08-2010, 08:01
  4. [BIOHAZARD] pierwsze 15 sekund niska grawitacja
    By zetter in forum Przydatne pluginy AMX i AMXX
    Odpowiedzi: 0
    Ostatni post / autor: 10-09-2009, 23:55
  5. [Dodatkowy plugin] Grawitacja
    By damian550i in forum Zombie Plague
    Odpowiedzi: 0
    Ostatni post / autor: 26-07-2009, 15:55
  6. [problem] biohazard i poczatkowa grawitacja?
    By zetter in forum Problem z pluginem AMX/AMXX
    Odpowiedzi: 3
    Ostatni post / autor: 11-02-2009, 17:11
  7. grawitacja
    By Manga<3 in forum Problemy z CS 1.6
    Odpowiedzi: 3
    Ostatni post / autor: 08-02-2009, 22:01
  8. Anty grawitacja
    By Dark Shadow :) in forum Mapy do Counter Strike
    Odpowiedzi: 5
    Ostatni post / autor: 13-10-2008, 19:26
  9. Grawitacja na surf ski 2
    By Adamus in forum Problemy z CS 1.6
    Odpowiedzi: 5
    Ostatni post / autor: 06-08-2008, 10:04
  10. Grawitacja
    By Radzisz in forum Amx Mod X
    Odpowiedzi: 5
    Ostatni post / autor: 25-11-2007, 18:00

Odwiedzający znaleźli tę stronę szukając:

grawitacja it forum

nuclear bomb amxx nowy wybuch
Uprawnienia umieszczania postów
  • Nie możesz zakładać nowych tematów
  • Nie możesz pisać wiadomości
  • Nie możesz dodawać załączników
  • Nie możesz edytować swoich postów
  •