Pomoc oko duplog skoka
Results 1 to 10 of 10
  1. #1
    Junior Member Array
    Join Date
    Apr 2018
    Karma
    0

    Default Pomoc oko duplog skoka

    Kao sto u naslovu pise treba mi pomoc oko duplog skoka
    Plugin svim igracima koji imaju admin_level_a daje po 1 gratis skok
    Hocu da igracima koji imaju admin_level_b daje po 2 skoka gratis a da ostane ovo da adminima_level_a daje po 1

  2. #2
    Senior Member Array
    Join Date
    Aug 2013
    Location
    Forbidden Forest
    Karma
    9

    Default

    Bas sam skoro razmisljao kako mi bas dugo nije trebala kristalna kugla na KGB forumu. Kako planiras da ti neko pomogne bez .sma ?
    Pomoc oko plugina, TS3-a, discord-a mozete dobiti samo u vidu objasnjenja.
    P.S. Nemojte smarati/hejtovati obzirom da to niko ne voli a ja licno cu samo da vas kuliram.
    P.P.S. Nemojte pitati stvari na PM vec otvori temu.

  3. #3
    Senior Member Array
    Join Date
    Jan 2016
    Location
    Posusje Bosna i Hercegovina
    Age
    21
    Karma
    0

    Default

    #include <amxmodx>
    #include <fakemeta>
    #include <hamsandwich>

    forward amxbans_admin_connect(id);

    new bool:g_Vip[33], skoki[33];

    public plugin_init(){
    register_plugin("VIP Ultimate", "12.3.0.2", "benio101 & speedkill");
    register_forward(FM_CmdStart, "CmdStartPre");
    RegisterHam(Ham_Spawn, "player", "SpawnedEventPre", 1);
    }
    public client_authorized(id){
    if(get_user_flags(id) & 4096 == 4096){
    client_authorized_vip(id);
    }
    }
    public client_authorized_vip(id){
    g_Vip[id]=true;
    }
    public client_disconnect(id){
    if(g_Vip[id]){
    client_disconnect_vip(id);
    }
    }
    public client_disconnect_vip(id){
    g_Vip[id]=false;
    }
    public CmdStartPre(id, uc_handle){
    if(g_Vip[id]){
    if(is_user_alive(id)){
    CmdStartPreVip(id, uc_handle);
    }
    }
    }
    public CmdStartPreVip(id, uc_handle){
    new flags = pev(id, pev_flags);
    if((get_uc(uc_handle, UC_Buttons) & IN_JUMP) && !(flags & FL_ONGROUND) && !(pev(id, pev_oldbuttons) & IN_JUMP) && skoki[id]>0){
    --skoki[id];
    new Float:velocity[3];
    pev(id, pev_velocity,velocity);
    velocity[2] = random_float(265.0,285.0);
    set_pev(id,pev_velocity,velocity);
    } else if(flags & FL_ONGROUND && skoki[id]!=-1){
    skoki[id] = 1;
    }
    }
    public SpawnedEventPre(id){
    if(g_Vip[id]){
    if(is_user_alive(id)){
    SpawnedEventPreVip(id);
    }
    }
    }
    public SpawnedEventPreVip(id){
    skoki[id]=1;
    }
    public amxbans_admin_connect(id){
    client_authorized(id);
    }





    #include <amxmodx>
    #include <fakemeta>
    #include <hamsandwich>

    forward amxbans_admin_connect(id);

    new bool:g_Vip[33], skoki[33];

    public plugin_init(){
    register_plugin("VIP Ultimate", "12.3.0.2", "benio101 & speedkill");
    register_forward(FM_CmdStart, "CmdStartPre");
    RegisterHam(Ham_Spawn, "player", "SpawnedEventPre", 1);
    }
    public client_authorized(id){
    if(get_user_flags(id) & 8192 == 8192){
    client_authorized_vip(id);
    }
    }
    public client_authorized_vip(id){
    g_Vip[id]=true;
    }
    public client_disconnect(id){
    if(g_Vip[id]){
    client_disconnect_vip(id);
    }
    }
    public client_disconnect_vip(id){
    g_Vip[id]=false;
    }
    public CmdStartPre(id, uc_handle){
    if(g_Vip[id]){
    if(is_user_alive(id)){
    CmdStartPreVip(id, uc_handle);
    }
    }
    }
    public CmdStartPreVip(id, uc_handle){
    new flags = pev(id, pev_flags);
    if((get_uc(uc_handle, UC_Buttons) & IN_JUMP) && !(flags & FL_ONGROUND) && !(pev(id, pev_oldbuttons) & IN_JUMP) && skoki[id]>0){
    --skoki[id];
    new Float:velocity[3];
    pev(id, pev_velocity,velocity);
    velocity[2] = random_float(265.0,285.0);
    set_pev(id,pev_velocity,velocity);
    } else if(flags & FL_ONGROUND && skoki[id]!=-1){
    skoki[id] = 2;
    }
    }
    public SpawnedEventPre(id){
    if(g_Vip[id]){
    if(is_user_alive(id)){
    SpawnedEventPreVip(id);
    }
    }
    }
    public SpawnedEventPreVip(id){
    skoki[id]=2;
    }
    public amxbans_admin_connect(id){
    client_authorized(id);
    }





    Ovo prvo ti je Admin Level A [ Flag M ]
    Ovo drugo ti je Admin Level B [ Flag N ]

    Samo Compile Sma i ubaci na server i to ce ti radit.. Ako stavis adminu I taj i taj flag msm da ce imat onda 3 skoka

  4. #4
    Junior Member Array
    Join Date
    Apr 2018
    Karma
    0

    Default

    Quote Originally Posted by SkazzY View Post
    Bas sam skoro razmisljao kako mi bas dugo nije trebala kristalna kugla na KGB forumu. Kako planiras da ti neko pomogne bez .sma ?
    Mislio sam da sam postavio,izvini
    https://pastebin.com/Ku58WVkz

  5. #5
    Senior Member Array
    Join Date
    Aug 2013
    Location
    Forbidden Forest
    Karma
    9

    Default

    Probaj ovo (Nije testirano) :
    PHP Code:
    #include <amxmodx>
    #include <cstrike>
    #include <colorchat>
    #include <fakemeta>
    #include <fun>
    #include <hamsandwich>

    forward amxbans_admin_connect(id);

    new 
    CsArmorType:armortypebool:g_FreezeTimeg_Vip[33], gRound=0g_Hudmsgskoki[33];

    public 
    plugin_init(){
        
    register_plugin("VIP Ultimate""12.3.0.2""benio101 & speedkill");
        
    RegisterHam(Ham_Spawn"player""SpawnedEventPre"1);
        
    RegisterHam(get_player_resetmaxspeed_func(), "player""fw_Player_ResetMaxSpeed"1);
        
    register_logevent("logevent_round_start"2"1=Round_Start");
        
    register_event("HLTV""event_new_round""a""1=0""2=0");
        
    register_forward(FM_CmdStart"CmdStartPre");
        
    register_logevent("GameCommencing"2"1=Game_Commencing");
        
    register_event("DeathMsg""DeathMsg""a");
        
    register_message(get_user_msgid("ScoreAttrib"), "VipStatus");
        
    register_message(get_user_msgid("SayText"),"handleSayText");
        
    g_Hudmsg=CreateHudSyncObj();
    }
    public 
    client_authorized(id){
        if(
    get_user_flags(id) & ADMIN_LEVEL_B)
        {
            
    client_authorized_vip2(id);
        }
        else if(
    get_user_flags(id) & ADMIN_LEVEL_A)
        {
            
    client_authorized_vip2(id);
        }
    }
    public 
    client_authorized_vip(id){
        
    g_Vip[id]=1;
        new 
    g_Name[64];
        
    get_user_name(id,g_Name,charsmax(g_Name));
        
    set_hudmessage(2552552550.250.206.06.0);
        
    ShowSyncHudMsg(0g_Hudmsg"VIP igrac %s se upravo konektovao na server.",g_Name);
    }
    public 
    client_authorized_vip2(id){
        
    g_Vip[id]=2;
        new 
    g_Name[64];
        
    get_user_name(id,g_Name,charsmax(g_Name));
        
    set_hudmessage(2552552550.250.206.06.0);
        
    ShowSyncHudMsg(0g_Hudmsg"VIP igrac %s se upravo konektovao na server.",g_Name);
    }
    public 
    client_disconnect(id){
        if(
    g_Vip[id]){
            
    client_disconnect_vip(id);
        }
    }
    public 
    client_disconnect_vip(id){
        
    g_Vip[id]=0;
    }
    public 
    SpawnedEventPre(id){
        if(
    g_Vip[id]){
            if(
    is_user_alive(id)){
                
    SpawnedEventPreVip(id);
            }
        }
    }
    public 
    SpawnedEventPreVip(id){
        
    set_user_gravity(id500.0/800.0);
        
    skoki[id]=1;
        
    set_user_health(idget_user_health(id)+50);
        
    cs_set_user_armor(idcs_get_user_armor(id,armortype)+100CS_ARMOR_VESTHELM);
        new 
    henum=(user_has_weapon(id,CSW_HEGRENADE)?cs_get_user_bpammo(id,CSW_HEGRENADE):0);
        
    give_item(id"weapon_hegrenade");
        ++
    henum;
        new 
    fbnum=(user_has_weapon(id,CSW_FLASHBANG)?cs_get_user_bpammo(id,CSW_FLASHBANG):0);
        
    give_item(id"weapon_flashbang");
        ++
    fbnum;
        
    cs_set_user_bpammo(idCSW_FLASHBANG2);
        new 
    sgnum=(user_has_weapon(id,CSW_SMOKEGRENADE)?cs_get_user_bpammo(id,CSW_SMOKEGRENADE):0);
        
    give_item(id"weapon_smokegrenade");
        ++
    sgnum;
        if(
    gRound>=2){
            
    cs_set_user_money(idcs_get_user_money(id)+30001);
        }
    }
    Ham:get_player_resetmaxspeed_func(){
        
    #if defined Ham_CS_Player_ResetMaxSpeed
        
    return IsHamValid(Ham_CS_Player_ResetMaxSpeed)?Ham_CS_Player_ResetMaxSpeed:Ham_Item_PreFrame;
        
    #else
        
    return Ham_Item_PreFrame;
        
    #endif
    }
    public 
    fw_Player_ResetMaxSpeed(id){
        if(
    g_Vip[id]){
            if(
    is_user_alive(id)){
                
    fw_Player_ResetMaxSpeedVip(id);
            }
        }
    }
    public 
    logevent_round_start(){
        
    g_FreezeTime=false;
    }
    public 
    event_new_round(){
        
    g_FreezeTime=true;
        ++
    gRound;
    }
    public 
    fw_Player_ResetMaxSpeedVip(id){
        if(!
    g_FreezeTime){
            
    set_user_maxspeed(id,get_user_maxspeed(id) + 30);
        }
    }
    public 
    CmdStartPre(iduc_handle){
        if(
    g_Vip[id]){
            if(
    is_user_alive(id)){
                
    CmdStartPreVip(iduc_handle);
            }
        }
    }
    public 
    CmdStartPreVip(iduc_handle){
        new 
    flags pev(idpev_flags);
        if((
    get_uc(uc_handleUC_Buttons) & IN_JUMP) && !(flags FL_ONGROUND) && !(pev(idpev_oldbuttons) & IN_JUMP) && skoki[id]>0){
            --
    skoki[id];
            new 
    Float:velocity[3];
            
    pev(idpev_velocity,velocity);
            
    velocity[2] = random_float(265.0,285.0);
            
    set_pev(id,pev_velocity,velocity);
        } else if(
    flags FL_ONGROUND && skoki[id]!=-1){
            if(
    g_Vip[id]=2)
            {
                
    skoki[id] = 1;
            }
            else if(
    g_Vip[id]=2)
            {
                
    skoki[id] = 2;
            }
        }
    }

    public 
    GameCommencing(){
        
    gRound=0;
    }
    public 
    DeathMsg(){
        new 
    killer=read_data(1);
        new 
    victim=read_data(2);
        
        if(
    is_user_alive(killer) && g_Vip[killer] && get_user_team(killer) != get_user_team(victim)){
            
    DeathMsgVip(killer,victim,read_data(3));
        }
    }
    public 
    DeathMsgVip(kid,vid,hs){
        
    set_user_health(kidmin(get_user_health(kid)+(hs?20:10),350));
        
    cs_set_user_money(kidcs_get_user_money(kid)+(hs?500:300));
    }
    public 
    VipStatus(){
        new 
    id=get_msg_arg_int(1);
        if(
    is_user_alive(id) && g_Vip[id]){
            
    set_msg_arg_int(2ARG_BYTEget_msg_arg_int(2)|4);
        }
    }
    public 
    handleSayText(msgId,msgDest,msgEnt){
        new 
    id get_msg_arg_int(1);
        
        if(
    is_user_connected(id) && g_Vip[id]){
            new 
    szTmp[256],szTmp2[256];
            
    get_msg_arg_string(2,szTmpcharsmax(szTmp))
            
            new 
    szPrefix[64] = "^x04[VIP]";
            
            if(!
    equal(szTmp,"#Cstrike_Chat_All")){
                
    add(szTmp2,charsmax(szTmp2),szPrefix);
                
    add(szTmp2,charsmax(szTmp2)," ");
                
    add(szTmp2,charsmax(szTmp2),szTmp);
            }
            else{
                
    add(szTmp2,charsmax(szTmp2),szPrefix);
                
    add(szTmp2,charsmax(szTmp2),"^x03 %s1^x04 ->  %s2");
            }
            
    set_msg_arg_string(2,szTmp2);
        }
        return 
    PLUGIN_CONTINUE;
    }
    public 
    amxbans_admin_connect(id){
        
    client_authorized(id);

    Pomoc oko plugina, TS3-a, discord-a mozete dobiti samo u vidu objasnjenja.
    P.S. Nemojte smarati/hejtovati obzirom da to niko ne voli a ja licno cu samo da vas kuliram.
    P.P.S. Nemojte pitati stvari na PM vec otvori temu.

  6. #6
    Junior Member Array
    Join Date
    Apr 2018
    Karma
    0

    Default

    Quote Originally Posted by SkazzY View Post
    Probaj ovo (Nije testirano) :
    PHP Code:
    #include <amxmodx>
    #include <cstrike>
    #include <colorchat>
    #include <fakemeta>
    #include <fun>
    #include <hamsandwich>

    forward amxbans_admin_connect(id);

    new 
    CsArmorType:armortypebool:g_FreezeTimeg_Vip[33], gRound=0g_Hudmsgskoki[33];

    public 
    plugin_init(){
        
    register_plugin("VIP Ultimate""12.3.0.2""benio101 & speedkill");
        
    RegisterHam(Ham_Spawn"player""SpawnedEventPre"1);
        
    RegisterHam(get_player_resetmaxspeed_func(), "player""fw_Player_ResetMaxSpeed"1);
        
    register_logevent("logevent_round_start"2"1=Round_Start");
        
    register_event("HLTV""event_new_round""a""1=0""2=0");
        
    register_forward(FM_CmdStart"CmdStartPre");
        
    register_logevent("GameCommencing"2"1=Game_Commencing");
        
    register_event("DeathMsg""DeathMsg""a");
        
    register_message(get_user_msgid("ScoreAttrib"), "VipStatus");
        
    register_message(get_user_msgid("SayText"),"handleSayText");
        
    g_Hudmsg=CreateHudSyncObj();
    }
    public 
    client_authorized(id){
        if(
    get_user_flags(id) & ADMIN_LEVEL_B)
        {
            
    client_authorized_vip2(id);
        }
        else if(
    get_user_flags(id) & ADMIN_LEVEL_A)
        {
            
    client_authorized_vip2(id);
        }
    }
    public 
    client_authorized_vip(id){
        
    g_Vip[id]=1;
        new 
    g_Name[64];
        
    get_user_name(id,g_Name,charsmax(g_Name));
        
    set_hudmessage(2552552550.250.206.06.0);
        
    ShowSyncHudMsg(0g_Hudmsg"VIP igrac %s se upravo konektovao na server.",g_Name);
    }
    public 
    client_authorized_vip2(id){
        
    g_Vip[id]=2;
        new 
    g_Name[64];
        
    get_user_name(id,g_Name,charsmax(g_Name));
        
    set_hudmessage(2552552550.250.206.06.0);
        
    ShowSyncHudMsg(0g_Hudmsg"VIP igrac %s se upravo konektovao na server.",g_Name);
    }
    public 
    client_disconnect(id){
        if(
    g_Vip[id]){
            
    client_disconnect_vip(id);
        }
    }
    public 
    client_disconnect_vip(id){
        
    g_Vip[id]=0;
    }
    public 
    SpawnedEventPre(id){
        if(
    g_Vip[id]){
            if(
    is_user_alive(id)){
                
    SpawnedEventPreVip(id);
            }
        }
    }
    public 
    SpawnedEventPreVip(id){
        
    set_user_gravity(id500.0/800.0);
        
    skoki[id]=1;
        
    set_user_health(idget_user_health(id)+50);
        
    cs_set_user_armor(idcs_get_user_armor(id,armortype)+100CS_ARMOR_VESTHELM);
        new 
    henum=(user_has_weapon(id,CSW_HEGRENADE)?cs_get_user_bpammo(id,CSW_HEGRENADE):0);
        
    give_item(id"weapon_hegrenade");
        ++
    henum;
        new 
    fbnum=(user_has_weapon(id,CSW_FLASHBANG)?cs_get_user_bpammo(id,CSW_FLASHBANG):0);
        
    give_item(id"weapon_flashbang");
        ++
    fbnum;
        
    cs_set_user_bpammo(idCSW_FLASHBANG2);
        new 
    sgnum=(user_has_weapon(id,CSW_SMOKEGRENADE)?cs_get_user_bpammo(id,CSW_SMOKEGRENADE):0);
        
    give_item(id"weapon_smokegrenade");
        ++
    sgnum;
        if(
    gRound>=2){
            
    cs_set_user_money(idcs_get_user_money(id)+30001);
        }
    }
    Ham:get_player_resetmaxspeed_func(){
        
    #if defined Ham_CS_Player_ResetMaxSpeed
        
    return IsHamValid(Ham_CS_Player_ResetMaxSpeed)?Ham_CS_Player_ResetMaxSpeed:Ham_Item_PreFrame;
        
    #else
        
    return Ham_Item_PreFrame;
        
    #endif
    }
    public 
    fw_Player_ResetMaxSpeed(id){
        if(
    g_Vip[id]){
            if(
    is_user_alive(id)){
                
    fw_Player_ResetMaxSpeedVip(id);
            }
        }
    }
    public 
    logevent_round_start(){
        
    g_FreezeTime=false;
    }
    public 
    event_new_round(){
        
    g_FreezeTime=true;
        ++
    gRound;
    }
    public 
    fw_Player_ResetMaxSpeedVip(id){
        if(!
    g_FreezeTime){
            
    set_user_maxspeed(id,get_user_maxspeed(id) + 30);
        }
    }
    public 
    CmdStartPre(iduc_handle){
        if(
    g_Vip[id]){
            if(
    is_user_alive(id)){
                
    CmdStartPreVip(iduc_handle);
            }
        }
    }
    public 
    CmdStartPreVip(iduc_handle){
        new 
    flags pev(idpev_flags);
        if((
    get_uc(uc_handleUC_Buttons) & IN_JUMP) && !(flags FL_ONGROUND) && !(pev(idpev_oldbuttons) & IN_JUMP) && skoki[id]>0){
            --
    skoki[id];
            new 
    Float:velocity[3];
            
    pev(idpev_velocity,velocity);
            
    velocity[2] = random_float(265.0,285.0);
            
    set_pev(id,pev_velocity,velocity);
        } else if(
    flags FL_ONGROUND && skoki[id]!=-1){
            if(
    g_Vip[id]=2)
            {
                
    skoki[id] = 1;
            }
            else if(
    g_Vip[id]=2)
            {
                
    skoki[id] = 2;
            }
        }
    }

    public 
    GameCommencing(){
        
    gRound=0;
    }
    public 
    DeathMsg(){
        new 
    killer=read_data(1);
        new 
    victim=read_data(2);
        
        if(
    is_user_alive(killer) && g_Vip[killer] && get_user_team(killer) != get_user_team(victim)){
            
    DeathMsgVip(killer,victim,read_data(3));
        }
    }
    public 
    DeathMsgVip(kid,vid,hs){
        
    set_user_health(kidmin(get_user_health(kid)+(hs?20:10),350));
        
    cs_set_user_money(kidcs_get_user_money(kid)+(hs?500:300));
    }
    public 
    VipStatus(){
        new 
    id=get_msg_arg_int(1);
        if(
    is_user_alive(id) && g_Vip[id]){
            
    set_msg_arg_int(2ARG_BYTEget_msg_arg_int(2)|4);
        }
    }
    public 
    handleSayText(msgId,msgDest,msgEnt){
        new 
    id get_msg_arg_int(1);
        
        if(
    is_user_connected(id) && g_Vip[id]){
            new 
    szTmp[256],szTmp2[256];
            
    get_msg_arg_string(2,szTmpcharsmax(szTmp))
            
            new 
    szPrefix[64] = "^x04[VIP]";
            
            if(!
    equal(szTmp,"#Cstrike_Chat_All")){
                
    add(szTmp2,charsmax(szTmp2),szPrefix);
                
    add(szTmp2,charsmax(szTmp2)," ");
                
    add(szTmp2,charsmax(szTmp2),szTmp);
            }
            else{
                
    add(szTmp2,charsmax(szTmp2),szPrefix);
                
    add(szTmp2,charsmax(szTmp2),"^x03 %s1^x04 ->  %s2");
            }
            
    set_msg_arg_string(2,szTmp2);
        }
        return 
    PLUGIN_CONTINUE;
    }
    public 
    amxbans_admin_connect(id){
        
    client_authorized(id);

    Ne radi

  7. #7
    Senior Member Array
    Join Date
    Aug 2013
    Location
    Forbidden Forest
    Karma
    9

    Default

    Probaj ovo :
    PHP Code:
    #include <amxmodx>
    #include <cstrike>
    #include <colorchat>
    #include <fakemeta>
    #include <fun>
    #include <hamsandwich>

    forward amxbans_admin_connect(id);

    new 
    CsArmorType:armortypebool:g_FreezeTimeg_Vip[33], gRound=0g_Hudmsgskoki[33];

    public 
    plugin_init(){
        
    register_plugin("VIP Ultimate""12.3.0.2""benio101 & speedkill");
        
    RegisterHam(Ham_Spawn"player""SpawnedEventPre"1);
        
    RegisterHam(get_player_resetmaxspeed_func(), "player""fw_Player_ResetMaxSpeed"1);
        
    register_logevent("logevent_round_start"2"1=Round_Start");
        
    register_event("HLTV""event_new_round""a""1=0""2=0");
        
    register_forward(FM_CmdStart"CmdStartPre");
        
    register_logevent("GameCommencing"2"1=Game_Commencing");
        
    register_event("DeathMsg""DeathMsg""a");
        
    register_message(get_user_msgid("ScoreAttrib"), "VipStatus");
        
    register_message(get_user_msgid("SayText"),"handleSayText");
        
    g_Hudmsg=CreateHudSyncObj();
    }
    public 
    client_putinserver(id){
        if(
    get_user_flags(id) & ADMIN_LEVEL_B)
        {
            
    client_authorized_vip2(id);
        }
        else if(
    get_user_flags(id) & ADMIN_LEVEL_A)
        {
            
    client_authorized_vip2(id);
        }
    }
    public 
    client_authorized_vip(id){
        
    g_Vip[id]=1;
        new 
    g_Name[64];
        
    get_user_name(id,g_Name,charsmax(g_Name));
        
    set_hudmessage(2552552550.250.206.06.0);
        
    ShowSyncHudMsg(0g_Hudmsg"VIP igrac %s se upravo konektovao na server.",g_Name);
    }
    public 
    client_authorized_vip2(id){
        
    g_Vip[id]=2;
        new 
    g_Name[64];
        
    get_user_name(id,g_Name,charsmax(g_Name));
        
    set_hudmessage(2552552550.250.206.06.0);
        
    ShowSyncHudMsg(0g_Hudmsg"VIP igrac %s se upravo konektovao na server.",g_Name);
    }
    public 
    client_disconnect(id){
        if(
    g_Vip[id] > 0){
            
    client_disconnect_vip(id);
        }
    }
    public 
    client_disconnect_vip(id){
        
    g_Vip[id]=0;
    }
    public 
    SpawnedEventPre(id){
        if(
    g_Vip[id] > 0){
            if(
    is_user_alive(id)){
                
    SpawnedEventPreVip(id);
            }
        }
    }
    public 
    SpawnedEventPreVip(id){
        
    set_user_gravity(id500.0/800.0);
        
    skoki[id]=1;
        
    set_user_health(idget_user_health(id)+50);
        
    cs_set_user_armor(idcs_get_user_armor(id,armortype)+100CS_ARMOR_VESTHELM);
        new 
    henum=(user_has_weapon(id,CSW_HEGRENADE)?cs_get_user_bpammo(id,CSW_HEGRENADE):0);
        
    give_item(id"weapon_hegrenade");
        ++
    henum;
        new 
    fbnum=(user_has_weapon(id,CSW_FLASHBANG)?cs_get_user_bpammo(id,CSW_FLASHBANG):0);
        
    give_item(id"weapon_flashbang");
        ++
    fbnum;
        
    cs_set_user_bpammo(idCSW_FLASHBANG2);
        new 
    sgnum=(user_has_weapon(id,CSW_SMOKEGRENADE)?cs_get_user_bpammo(id,CSW_SMOKEGRENADE):0);
        
    give_item(id"weapon_smokegrenade");
        ++
    sgnum;
        if(
    gRound>=2){
            
    cs_set_user_money(idcs_get_user_money(id)+30001);
        }
    }
    Ham:get_player_resetmaxspeed_func(){
        
    #if defined Ham_CS_Player_ResetMaxSpeed
        
    return IsHamValid(Ham_CS_Player_ResetMaxSpeed)?Ham_CS_Player_ResetMaxSpeed:Ham_Item_PreFrame;
        
    #else
        
    return Ham_Item_PreFrame;
        
    #endif
    }
    public 
    fw_Player_ResetMaxSpeed(id){
        if(
    g_Vip[id] > 0){
            if(
    is_user_alive(id)){
                
    fw_Player_ResetMaxSpeedVip(id);
            }
        }
    }
    public 
    logevent_round_start(){
        
    g_FreezeTime=false;
    }
    public 
    event_new_round(){
        
    g_FreezeTime=true;
        ++
    gRound;
    }
    public 
    fw_Player_ResetMaxSpeedVip(id){
        if(!
    g_FreezeTime){
            
    set_user_maxspeed(id,get_user_maxspeed(id) + 30);
        }
    }
    public 
    CmdStartPre(iduc_handle){
        if(
    g_Vip[id] > 0){
            if(
    is_user_alive(id)){
                
    CmdStartPreVip(iduc_handle);
            }
        }
    }
    public 
    CmdStartPreVip(iduc_handle){
        new 
    flags pev(idpev_flags);
        if((
    get_uc(uc_handleUC_Buttons) & IN_JUMP) && !(flags FL_ONGROUND) && !(pev(idpev_oldbuttons) & IN_JUMP) && skoki[id]>0){
            --
    skoki[id];
            new 
    Float:velocity[3];
            
    pev(idpev_velocity,velocity);
            
    velocity[2] = random_float(265.0,285.0);
            
    set_pev(id,pev_velocity,velocity);
        } else if(
    flags FL_ONGROUND && skoki[id]!=-1){
            if(
    g_Vip[id]==1)
            {
                
    skoki[id] = 1;
            }
            else if(
    g_Vip[id]==2)
            {
                
    skoki[id] = 2;
            }
        }
    }

    public 
    GameCommencing(){
        
    gRound=0;
    }
    public 
    DeathMsg(){
        new 
    killer=read_data(1);
        new 
    victim=read_data(2);
        
        if(
    is_user_alive(killer) && g_Vip[killer] > && get_user_team(killer) != get_user_team(victim)){
            
    DeathMsgVip(killer,victim,read_data(3));
        }
    }
    public 
    DeathMsgVip(kid,vid,hs){
        
    set_user_health(kidmin(get_user_health(kid)+(hs?20:10),350));
        
    cs_set_user_money(kidcs_get_user_money(kid)+(hs?500:300));
    }
    public 
    VipStatus(){
        new 
    id=get_msg_arg_int(1);
        if(
    is_user_alive(id) && g_Vip[id]){
            
    set_msg_arg_int(2ARG_BYTEget_msg_arg_int(2)|4);
        }
    }
    public 
    handleSayText(msgId,msgDest,msgEnt){
        new 
    id get_msg_arg_int(1);
        
        if(
    is_user_connected(id) && g_Vip[id] > 0){
            new 
    szTmp[256],szTmp2[256];
            
    get_msg_arg_string(2,szTmpcharsmax(szTmp))
            
            new 
    szPrefix[64] = "^x04[VIP]";
            
            if(!
    equal(szTmp,"#Cstrike_Chat_All")){
                
    add(szTmp2,charsmax(szTmp2),szPrefix);
                
    add(szTmp2,charsmax(szTmp2)," ");
                
    add(szTmp2,charsmax(szTmp2),szTmp);
            }
            else{
                
    add(szTmp2,charsmax(szTmp2),szPrefix);
                
    add(szTmp2,charsmax(szTmp2),"^x03 %s1^x04 ->  %s2");
            }
            
    set_msg_arg_string(2,szTmp2);
        }
        return 
    PLUGIN_CONTINUE;
    }
    public 
    amxbans_admin_connect(id){
        
    client_putinserver(id);

    Pomoc oko plugina, TS3-a, discord-a mozete dobiti samo u vidu objasnjenja.
    P.S. Nemojte smarati/hejtovati obzirom da to niko ne voli a ja licno cu samo da vas kuliram.
    P.P.S. Nemojte pitati stvari na PM vec otvori temu.

  8. #8
    Junior Member Array
    Join Date
    Apr 2018
    Karma
    0

    Default

    Quote Originally Posted by SkazzY View Post
    Probaj ovo :
    PHP Code:
    #include <amxmodx>
    #include <cstrike>
    #include <colorchat>
    #include <fakemeta>
    #include <fun>
    #include <hamsandwich>

    forward amxbans_admin_connect(id);

    new 
    CsArmorType:armortypebool:g_FreezeTimeg_Vip[33], gRound=0g_Hudmsgskoki[33];

    public 
    plugin_init(){
        
    register_plugin("VIP Ultimate""12.3.0.2""benio101 & speedkill");
        
    RegisterHam(Ham_Spawn"player""SpawnedEventPre"1);
        
    RegisterHam(get_player_resetmaxspeed_func(), "player""fw_Player_ResetMaxSpeed"1);
        
    register_logevent("logevent_round_start"2"1=Round_Start");
        
    register_event("HLTV""event_new_round""a""1=0""2=0");
        
    register_forward(FM_CmdStart"CmdStartPre");
        
    register_logevent("GameCommencing"2"1=Game_Commencing");
        
    register_event("DeathMsg""DeathMsg""a");
        
    register_message(get_user_msgid("ScoreAttrib"), "VipStatus");
        
    register_message(get_user_msgid("SayText"),"handleSayText");
        
    g_Hudmsg=CreateHudSyncObj();
    }
    public 
    client_putinserver(id){
        if(
    get_user_flags(id) & ADMIN_LEVEL_B)
        {
            
    client_authorized_vip2(id);
        }
        else if(
    get_user_flags(id) & ADMIN_LEVEL_A)
        {
            
    client_authorized_vip2(id);
        }
    }
    public 
    client_authorized_vip(id){
        
    g_Vip[id]=1;
        new 
    g_Name[64];
        
    get_user_name(id,g_Name,charsmax(g_Name));
        
    set_hudmessage(2552552550.250.206.06.0);
        
    ShowSyncHudMsg(0g_Hudmsg"VIP igrac %s se upravo konektovao na server.",g_Name);
    }
    public 
    client_authorized_vip2(id){
        
    g_Vip[id]=2;
        new 
    g_Name[64];
        
    get_user_name(id,g_Name,charsmax(g_Name));
        
    set_hudmessage(2552552550.250.206.06.0);
        
    ShowSyncHudMsg(0g_Hudmsg"VIP igrac %s se upravo konektovao na server.",g_Name);
    }
    public 
    client_disconnect(id){
        if(
    g_Vip[id] > 0){
            
    client_disconnect_vip(id);
        }
    }
    public 
    client_disconnect_vip(id){
        
    g_Vip[id]=0;
    }
    public 
    SpawnedEventPre(id){
        if(
    g_Vip[id] > 0){
            if(
    is_user_alive(id)){
                
    SpawnedEventPreVip(id);
            }
        }
    }
    public 
    SpawnedEventPreVip(id){
        
    set_user_gravity(id500.0/800.0);
        
    skoki[id]=1;
        
    set_user_health(idget_user_health(id)+50);
        
    cs_set_user_armor(idcs_get_user_armor(id,armortype)+100CS_ARMOR_VESTHELM);
        new 
    henum=(user_has_weapon(id,CSW_HEGRENADE)?cs_get_user_bpammo(id,CSW_HEGRENADE):0);
        
    give_item(id"weapon_hegrenade");
        ++
    henum;
        new 
    fbnum=(user_has_weapon(id,CSW_FLASHBANG)?cs_get_user_bpammo(id,CSW_FLASHBANG):0);
        
    give_item(id"weapon_flashbang");
        ++
    fbnum;
        
    cs_set_user_bpammo(idCSW_FLASHBANG2);
        new 
    sgnum=(user_has_weapon(id,CSW_SMOKEGRENADE)?cs_get_user_bpammo(id,CSW_SMOKEGRENADE):0);
        
    give_item(id"weapon_smokegrenade");
        ++
    sgnum;
        if(
    gRound>=2){
            
    cs_set_user_money(idcs_get_user_money(id)+30001);
        }
    }
    Ham:get_player_resetmaxspeed_func(){
        
    #if defined Ham_CS_Player_ResetMaxSpeed
        
    return IsHamValid(Ham_CS_Player_ResetMaxSpeed)?Ham_CS_Player_ResetMaxSpeed:Ham_Item_PreFrame;
        
    #else
        
    return Ham_Item_PreFrame;
        
    #endif
    }
    public 
    fw_Player_ResetMaxSpeed(id){
        if(
    g_Vip[id] > 0){
            if(
    is_user_alive(id)){
                
    fw_Player_ResetMaxSpeedVip(id);
            }
        }
    }
    public 
    logevent_round_start(){
        
    g_FreezeTime=false;
    }
    public 
    event_new_round(){
        
    g_FreezeTime=true;
        ++
    gRound;
    }
    public 
    fw_Player_ResetMaxSpeedVip(id){
        if(!
    g_FreezeTime){
            
    set_user_maxspeed(id,get_user_maxspeed(id) + 30);
        }
    }
    public 
    CmdStartPre(iduc_handle){
        if(
    g_Vip[id] > 0){
            if(
    is_user_alive(id)){
                
    CmdStartPreVip(iduc_handle);
            }
        }
    }
    public 
    CmdStartPreVip(iduc_handle){
        new 
    flags pev(idpev_flags);
        if((
    get_uc(uc_handleUC_Buttons) & IN_JUMP) && !(flags FL_ONGROUND) && !(pev(idpev_oldbuttons) & IN_JUMP) && skoki[id]>0){
            --
    skoki[id];
            new 
    Float:velocity[3];
            
    pev(idpev_velocity,velocity);
            
    velocity[2] = random_float(265.0,285.0);
            
    set_pev(id,pev_velocity,velocity);
        } else if(
    flags FL_ONGROUND && skoki[id]!=-1){
            if(
    g_Vip[id]==1)
            {
                
    skoki[id] = 1;
            }
            else if(
    g_Vip[id]==2)
            {
                
    skoki[id] = 2;
            }
        }
    }

    public 
    GameCommencing(){
        
    gRound=0;
    }
    public 
    DeathMsg(){
        new 
    killer=read_data(1);
        new 
    victim=read_data(2);
        
        if(
    is_user_alive(killer) && g_Vip[killer] > && get_user_team(killer) != get_user_team(victim)){
            
    DeathMsgVip(killer,victim,read_data(3));
        }
    }
    public 
    DeathMsgVip(kid,vid,hs){
        
    set_user_health(kidmin(get_user_health(kid)+(hs?20:10),350));
        
    cs_set_user_money(kidcs_get_user_money(kid)+(hs?500:300));
    }
    public 
    VipStatus(){
        new 
    id=get_msg_arg_int(1);
        if(
    is_user_alive(id) && g_Vip[id]){
            
    set_msg_arg_int(2ARG_BYTEget_msg_arg_int(2)|4);
        }
    }
    public 
    handleSayText(msgId,msgDest,msgEnt){
        new 
    id get_msg_arg_int(1);
        
        if(
    is_user_connected(id) && g_Vip[id] > 0){
            new 
    szTmp[256],szTmp2[256];
            
    get_msg_arg_string(2,szTmpcharsmax(szTmp))
            
            new 
    szPrefix[64] = "^x04[VIP]";
            
            if(!
    equal(szTmp,"#Cstrike_Chat_All")){
                
    add(szTmp2,charsmax(szTmp2),szPrefix);
                
    add(szTmp2,charsmax(szTmp2)," ");
                
    add(szTmp2,charsmax(szTmp2),szTmp);
            }
            else{
                
    add(szTmp2,charsmax(szTmp2),szPrefix);
                
    add(szTmp2,charsmax(szTmp2),"^x03 %s1^x04 ->  %s2");
            }
            
    set_msg_arg_string(2,szTmp2);
        }
        return 
    PLUGIN_CONTINUE;
    }
    public 
    amxbans_admin_connect(id){
        
    client_putinserver(id);

    Sada mogu i admin_level_a i admin_level_b da skoce 3 puta

  9. #9
    Senior Member Array
    Join Date
    Aug 2013
    Location
    Forbidden Forest
    Karma
    9

    Default

    Ovo radi osim ako moj i tvoj nisu isti :
    PHP Code:
    #include <amxmodx>
    #include <cstrike>
    #include <colorchat>
    #include <fakemeta>
    #include <fun>
    #include <hamsandwich>

    forward amxbans_admin_connect(id);

    new 
    CsArmorType:armortypebool:g_FreezeTimebool:g_Vip[33], gRound=0g_Hudmsgskoki[33];

    public 
    plugin_init(){
        
    register_plugin("VIP Ultimate""12.3.0.2""benio101 & speedkill");
        
    RegisterHam(Ham_Spawn"player""SpawnedEventPre"1);
        
    RegisterHam(get_player_resetmaxspeed_func(), "player""fw_Player_ResetMaxSpeed"1);
        
    register_logevent("logevent_round_start"2"1=Round_Start");
        
    register_event("HLTV""event_new_round""a""1=0""2=0");
        
    register_forward(FM_CmdStart"CmdStartPre");
        
    register_logevent("GameCommencing"2"1=Game_Commencing");
        
    register_event("DeathMsg""DeathMsg""a");
        
    register_message(get_user_msgid("ScoreAttrib"), "VipStatus");
        
    register_message(get_user_msgid("SayText"),"handleSayText");
        
    g_Hudmsg=CreateHudSyncObj();
    }
    public 
    client_putinserver(id){
        if(
    get_user_flags(id) & ADMIN_LEVEL_A)
        {
            
    client_authorized_vip(id);
        }
        else if(
    get_user_flags(id) & ADMIN_LEVEL_B)
        {
            
    client_authorized_vip(id);
        }
    }
    public 
    client_authorized_vip(id){
        
    g_Vip[id]=true;
        new 
    g_Name[64];
        
    get_user_name(id,g_Name,charsmax(g_Name));
        
    set_hudmessage(2552552550.250.206.06.0);
        
    ShowSyncHudMsg(0g_Hudmsg"VIP igrac %s se upravo konektovao na server.",g_Name);
    }
    public 
    client_disconnect(id){
        if(
    g_Vip[id]){
            
    client_disconnect_vip(id);
        }
    }
    public 
    client_disconnect_vip(id){
        
    g_Vip[id]=false;
    }
    public 
    SpawnedEventPre(id){
        if(
    g_Vip[id]){
            if(
    is_user_alive(id)){
                
    SpawnedEventPreVip(id);
            }
        }
    }
    public 
    SpawnedEventPreVip(id){
        
    set_user_gravity(id500.0/800.0);
        
    skoki[id]=1;
        
    set_user_health(idget_user_health(id)+50);
        
    cs_set_user_armor(idcs_get_user_armor(id,armortype)+100CS_ARMOR_VESTHELM);
        new 
    henum=(user_has_weapon(id,CSW_HEGRENADE)?cs_get_user_bpammo(id,CSW_HEGRENADE):0);
        
    give_item(id"weapon_hegrenade");
        ++
    henum;
        new 
    fbnum=(user_has_weapon(id,CSW_FLASHBANG)?cs_get_user_bpammo(id,CSW_FLASHBANG):0);
        
    give_item(id"weapon_flashbang");
        ++
    fbnum;
        
    cs_set_user_bpammo(idCSW_FLASHBANG2);
        new 
    sgnum=(user_has_weapon(id,CSW_SMOKEGRENADE)?cs_get_user_bpammo(id,CSW_SMOKEGRENADE):0);
        
    give_item(id"weapon_smokegrenade");
        ++
    sgnum;
        if(
    gRound>=2){
            
    cs_set_user_money(idcs_get_user_money(id)+30001);
        }
    }
    Ham:get_player_resetmaxspeed_func(){
        
    #if defined Ham_CS_Player_ResetMaxSpeed
        
    return IsHamValid(Ham_CS_Player_ResetMaxSpeed)?Ham_CS_Player_ResetMaxSpeed:Ham_Item_PreFrame;
        
    #else
        
    return Ham_Item_PreFrame;
        
    #endif
    }
    public 
    fw_Player_ResetMaxSpeed(id){
        if(
    g_Vip[id]){
            if(
    is_user_alive(id)){
                
    fw_Player_ResetMaxSpeedVip(id);
            }
        }
    }
    public 
    logevent_round_start(){
        
    g_FreezeTime=false;
    }
    public 
    event_new_round(){
        
    g_FreezeTime=true;
        ++
    gRound;
    }
    public 
    fw_Player_ResetMaxSpeedVip(id){
        if(!
    g_FreezeTime){
            
    set_user_maxspeed(id,get_user_maxspeed(id) + 30);
        }
    }
    public 
    CmdStartPre(iduc_handle){
        if(
    g_Vip[id]){
            if(
    is_user_alive(id)){
                
    CmdStartPreVip(iduc_handle);
            }
        }
    }
    public 
    CmdStartPreVip(iduc_handle){
        new 
    flags pev(idpev_flags);
        if((
    get_uc(uc_handleUC_Buttons) & IN_JUMP) && !(flags FL_ONGROUND) && !(pev(idpev_oldbuttons) & IN_JUMP) && skoki[id]>0){
            --
    skoki[id];
            new 
    Float:velocity[3];
            
    pev(idpev_velocity,velocity);
            
    velocity[2] = random_float(265.0,285.0);
            
    set_pev(id,pev_velocity,velocity);
        } else if(
    flags FL_ONGROUND && skoki[id]!=-1){
            if(
    get_user_flags(id) & ADMIN_LEVEL_B)
            {
                
    skoki[id] = 2;
            }
            else if(
    get_user_flags(id) & ADMIN_LEVEL_A)
            {
                
    skoki[id] = 1;
            }
        }
    }

    public 
    GameCommencing(){
        
    gRound=0;
    }
    public 
    DeathMsg(){
        new 
    killer=read_data(1);
        new 
    victim=read_data(2);
        
        if(
    is_user_alive(killer) && g_Vip[killer] && get_user_team(killer) != get_user_team(victim)){
            
    DeathMsgVip(killer,victim,read_data(3));
        }
    }
    public 
    DeathMsgVip(kid,vid,hs){
        
    set_user_health(kidmin(get_user_health(kid)+(hs?20:10),350));
        
    cs_set_user_money(kidcs_get_user_money(kid)+(hs?500:300));
    }
    public 
    VipStatus(){
        new 
    id=get_msg_arg_int(1);
        if(
    is_user_alive(id) && g_Vip[id]){
            
    set_msg_arg_int(2ARG_BYTEget_msg_arg_int(2)|4);
        }
    }
    public 
    handleSayText(msgId,msgDest,msgEnt){
        new 
    id get_msg_arg_int(1);
        
        if(
    is_user_connected(id) && g_Vip[id]){
            new 
    szTmp[256],szTmp2[256];
            
    get_msg_arg_string(2,szTmpcharsmax(szTmp))
            
            new 
    szPrefix[64] = "^x04[VIP]";
            
            if(!
    equal(szTmp,"#Cstrike_Chat_All")){
                
    add(szTmp2,charsmax(szTmp2),szPrefix);
                
    add(szTmp2,charsmax(szTmp2)," ");
                
    add(szTmp2,charsmax(szTmp2),szTmp);
            }
            else{
                
    add(szTmp2,charsmax(szTmp2),szPrefix);
                
    add(szTmp2,charsmax(szTmp2),"^x03 %s1^x04 ->  %s2");
            }
            
    set_msg_arg_string(2,szTmp2);
        }
        return 
    PLUGIN_CONTINUE;
    }
    public 
    amxbans_admin_connect(id){
        
    client_putinserver(id);

    Pomoc oko plugina, TS3-a, discord-a mozete dobiti samo u vidu objasnjenja.
    P.S. Nemojte smarati/hejtovati obzirom da to niko ne voli a ja licno cu samo da vas kuliram.
    P.P.S. Nemojte pitati stvari na PM vec otvori temu.

  10. #10
    Junior Member Array
    Join Date
    Apr 2018
    Karma
    0

    Default

    Quote Originally Posted by SkazzY View Post
    Ovo radi osim ako moj i tvoj nisu isti :
    PHP Code:
    #include <amxmodx>
    #include <cstrike>
    #include <colorchat>
    #include <fakemeta>
    #include <fun>
    #include <hamsandwich>

    forward amxbans_admin_connect(id);

    new 
    CsArmorType:armortypebool:g_FreezeTimebool:g_Vip[33], gRound=0g_Hudmsgskoki[33];

    public 
    plugin_init(){
        
    register_plugin("VIP Ultimate""12.3.0.2""benio101 & speedkill");
        
    RegisterHam(Ham_Spawn"player""SpawnedEventPre"1);
        
    RegisterHam(get_player_resetmaxspeed_func(), "player""fw_Player_ResetMaxSpeed"1);
        
    register_logevent("logevent_round_start"2"1=Round_Start");
        
    register_event("HLTV""event_new_round""a""1=0""2=0");
        
    register_forward(FM_CmdStart"CmdStartPre");
        
    register_logevent("GameCommencing"2"1=Game_Commencing");
        
    register_event("DeathMsg""DeathMsg""a");
        
    register_message(get_user_msgid("ScoreAttrib"), "VipStatus");
        
    register_message(get_user_msgid("SayText"),"handleSayText");
        
    g_Hudmsg=CreateHudSyncObj();
    }
    public 
    client_putinserver(id){
        if(
    get_user_flags(id) & ADMIN_LEVEL_A)
        {
            
    client_authorized_vip(id);
        }
        else if(
    get_user_flags(id) & ADMIN_LEVEL_B)
        {
            
    client_authorized_vip(id);
        }
    }
    public 
    client_authorized_vip(id){
        
    g_Vip[id]=true;
        new 
    g_Name[64];
        
    get_user_name(id,g_Name,charsmax(g_Name));
        
    set_hudmessage(2552552550.250.206.06.0);
        
    ShowSyncHudMsg(0g_Hudmsg"VIP igrac %s se upravo konektovao na server.",g_Name);
    }
    public 
    client_disconnect(id){
        if(
    g_Vip[id]){
            
    client_disconnect_vip(id);
        }
    }
    public 
    client_disconnect_vip(id){
        
    g_Vip[id]=false;
    }
    public 
    SpawnedEventPre(id){
        if(
    g_Vip[id]){
            if(
    is_user_alive(id)){
                
    SpawnedEventPreVip(id);
            }
        }
    }
    public 
    SpawnedEventPreVip(id){
        
    set_user_gravity(id500.0/800.0);
        
    skoki[id]=1;
        
    set_user_health(idget_user_health(id)+50);
        
    cs_set_user_armor(idcs_get_user_armor(id,armortype)+100CS_ARMOR_VESTHELM);
        new 
    henum=(user_has_weapon(id,CSW_HEGRENADE)?cs_get_user_bpammo(id,CSW_HEGRENADE):0);
        
    give_item(id"weapon_hegrenade");
        ++
    henum;
        new 
    fbnum=(user_has_weapon(id,CSW_FLASHBANG)?cs_get_user_bpammo(id,CSW_FLASHBANG):0);
        
    give_item(id"weapon_flashbang");
        ++
    fbnum;
        
    cs_set_user_bpammo(idCSW_FLASHBANG2);
        new 
    sgnum=(user_has_weapon(id,CSW_SMOKEGRENADE)?cs_get_user_bpammo(id,CSW_SMOKEGRENADE):0);
        
    give_item(id"weapon_smokegrenade");
        ++
    sgnum;
        if(
    gRound>=2){
            
    cs_set_user_money(idcs_get_user_money(id)+30001);
        }
    }
    Ham:get_player_resetmaxspeed_func(){
        
    #if defined Ham_CS_Player_ResetMaxSpeed
        
    return IsHamValid(Ham_CS_Player_ResetMaxSpeed)?Ham_CS_Player_ResetMaxSpeed:Ham_Item_PreFrame;
        
    #else
        
    return Ham_Item_PreFrame;
        
    #endif
    }
    public 
    fw_Player_ResetMaxSpeed(id){
        if(
    g_Vip[id]){
            if(
    is_user_alive(id)){
                
    fw_Player_ResetMaxSpeedVip(id);
            }
        }
    }
    public 
    logevent_round_start(){
        
    g_FreezeTime=false;
    }
    public 
    event_new_round(){
        
    g_FreezeTime=true;
        ++
    gRound;
    }
    public 
    fw_Player_ResetMaxSpeedVip(id){
        if(!
    g_FreezeTime){
            
    set_user_maxspeed(id,get_user_maxspeed(id) + 30);
        }
    }
    public 
    CmdStartPre(iduc_handle){
        if(
    g_Vip[id]){
            if(
    is_user_alive(id)){
                
    CmdStartPreVip(iduc_handle);
            }
        }
    }
    public 
    CmdStartPreVip(iduc_handle){
        new 
    flags pev(idpev_flags);
        if((
    get_uc(uc_handleUC_Buttons) & IN_JUMP) && !(flags FL_ONGROUND) && !(pev(idpev_oldbuttons) & IN_JUMP) && skoki[id]>0){
            --
    skoki[id];
            new 
    Float:velocity[3];
            
    pev(idpev_velocity,velocity);
            
    velocity[2] = random_float(265.0,285.0);
            
    set_pev(id,pev_velocity,velocity);
        } else if(
    flags FL_ONGROUND && skoki[id]!=-1){
            if(
    get_user_flags(id) & ADMIN_LEVEL_B)
            {
                
    skoki[id] = 2;
            }
            else if(
    get_user_flags(id) & ADMIN_LEVEL_A)
            {
                
    skoki[id] = 1;
            }
        }
    }

    public 
    GameCommencing(){
        
    gRound=0;
    }
    public 
    DeathMsg(){
        new 
    killer=read_data(1);
        new 
    victim=read_data(2);
        
        if(
    is_user_alive(killer) && g_Vip[killer] && get_user_team(killer) != get_user_team(victim)){
            
    DeathMsgVip(killer,victim,read_data(3));
        }
    }
    public 
    DeathMsgVip(kid,vid,hs){
        
    set_user_health(kidmin(get_user_health(kid)+(hs?20:10),350));
        
    cs_set_user_money(kidcs_get_user_money(kid)+(hs?500:300));
    }
    public 
    VipStatus(){
        new 
    id=get_msg_arg_int(1);
        if(
    is_user_alive(id) && g_Vip[id]){
            
    set_msg_arg_int(2ARG_BYTEget_msg_arg_int(2)|4);
        }
    }
    public 
    handleSayText(msgId,msgDest,msgEnt){
        new 
    id get_msg_arg_int(1);
        
        if(
    is_user_connected(id) && g_Vip[id]){
            new 
    szTmp[256],szTmp2[256];
            
    get_msg_arg_string(2,szTmpcharsmax(szTmp))
            
            new 
    szPrefix[64] = "^x04[VIP]";
            
            if(!
    equal(szTmp,"#Cstrike_Chat_All")){
                
    add(szTmp2,charsmax(szTmp2),szPrefix);
                
    add(szTmp2,charsmax(szTmp2)," ");
                
    add(szTmp2,charsmax(szTmp2),szTmp);
            }
            else{
                
    add(szTmp2,charsmax(szTmp2),szPrefix);
                
    add(szTmp2,charsmax(szTmp2),"^x03 %s1^x04 ->  %s2");
            }
            
    set_msg_arg_string(2,szTmp2);
        }
        return 
    PLUGIN_CONTINUE;
    }
    public 
    amxbans_admin_connect(id){
        
    client_putinserver(id);

    Hvala ti puno,radi kako treba
    Lock

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •