Raised This Month: $12 Target: $400
 3% 

I need to add something


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ykaru
Member
Join Date: Aug 2019
Old 11-06-2020 , 13:38   I need to add something
Reply With Quote #1

Hi, if anyone could add me a deagle x3 dmg in this shop plugin. Of course only for CT. It doesnt matter if he has Model or not. Thank you .

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fakemeta> 
#include <hamsandwich> 
#include <cstrike> 
#include <fun> 
#include <arme>


#pragma tabsize 0

#define PLUGIN "Base Builder Shop"
#define VERSION "1.0"
#define AUTHOR "eVo"

#define IsPlayer(%0)    ( 1 <= %0 <= g_iMaxPlayers )

#define LIMITA_HP 8000     // HP-ul maxim pe care il poti avea.

native fcs_get_user_credits id );
native fcs_set_user_credits idcredits );

new 
Tag[] = "!g[BaseBuilder LeagueCS] !team";

new 
Runda[33], RundaCT[33];
new 
bool:bSpeed[33], bool:bInvis[33];
new 
boolHp[33],boolGodMode[33], bool:g_bKnife[33], q_bKnife[33];

new 
g_iMaxPlayers;


/* Super Knife */
new Knife [66]= "models//bb_eVo/v_hw_wh.mdl"    

/* Knife */
new Knife_Model[66] = "models/bb_eVo/v_Karambit_CT_eVo.mdl"




public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)

    
RegisterHam Ham_TakeDamage"player""Player_TakeDamage" );
    
    
register_event("CurWeapon""event_curweapon""be""1=1")
    
register_event("HLTV""event_new_round""a""1=0""2=0")
    
register_cvar("cvar_mcredite","1");
    
register_cvar("cvar_hp","300");
    
register_cvar"cvar_runda""2" )       // Acces Shop Pe Runda
    
register_cvar"cvar_runda_ct""1" )       // Acces Shop CT Pe Runda
    
register_clcmd "say /shop""ShowShop" ); 
    
g_iMaxPlayers get_maxplayers ( )

}

public 
event_new_round(  )
{
    new 
iPlayers[32], iNum;
    
get_players(iPlayersiNum)
    for(new 
0;iNumi++)
    {
        
GodMode[iPlayers[i]] = false;
        
Hp[iPlayers[i]] = false;
        
q_bKnife[iPlayers[i]] = false;
        
bSpeed[iPlayers[i]] = false;
        
set_user_maxspeed(iPlayers[i], 350.0)
        
bInvis[iPlayers[i]] = false;
        
set_user_rendering(iPlayers[i])
        
Runda[iPlayers[i]]=0;
        
RundaCT[iPlayers[i]]=0;
    }
}
public 
Player_TakeDamage iVictimiInflictoriAttackerFloat:fDamage )
{
        if ( 
iInflictor == iAttacker && IsPlayer iAttacker ) && get_user_weapon iAttacker ) == CSW_KNIFE && q_bKnifeiAttacker ] ) 
            
SetHamParamFloat 4fDamage 3.0 );
        if( 
iInflictor == iAttacker && IsPlayer iAttacker ) )
            
SetHamParamFloat 4fDamage 1.1 );
        return 
HAM_IGNORED
}
public 
event_curweaponid )
{
    if(
get_user_weapon(id) == CSW_KNIFE && g_bKnife[id])
        
set_pev(idpev_viewmodel2Knife_Model)
        
    if(
bSpeed[id])
        
set_user_maxspeed(id350.0)
    if(
bInvis[id])
        
set_user_rendering(idkRenderFxNone000kRenderTransAlpha0);
}
public 
plugin_precache( ) 
{    
    
precache_model (Knife)
    
    
precache_model(Knife_Model)
}
public 
ShowShopid )
{
    if(
get_user_team(id) == && Runda[id] < get_cvar_num"cvar_runda" ) )
    {
    
ShowShopZM(id)
    
Runda[id]=Runda[id]+1;
    }
    else if( 
get_user_team(id) == && Runda[id] == get_cvar_num"cvar_runda" )) 
    {
    
ChatColor(id"%s!teamAi acces la acest shop doar de !g%i ori!team pe runda!",Tag ,get_cvar_num"cvar_runda" )); 
    }
    
    if(
get_user_team(id) == && RundaCT[id] < get_cvar_num"cvar_runda_ct" ) )
    {
    
ShowShopCT(id)
    
RundaCT[id]=RundaCT[id]+1;
    }
    else if( 
get_user_team(id) == && RundaCT[id] == get_cvar_num"cvar_runda_ct" ))
    {
    
ChatColor(id"%s!teamAi acces la acest shop doar de !g%i ori!team pe runda!",Tag ,get_cvar_num"cvar_runda_ct" )); 
    }
}
public 
ShowShopZM id 
{
    if(!
is_user_alive(id)) 
    { 
    
ChatColor(id"%s!teamNu poti accesa meniul cand esti !gmort!team!",Tag); 
    return 
1;
    } 
    
    new 
menu menu_create "\y«ǁ» \rBaseBuilder \yLeagueCS \y«ǁ»^n\y«ǁ» \rShop Menu for Zombies \y«ǁ»""Menu_Giver" ); // nume meniu si numele public-ului care va actiona ( handler-ul )
    
menu_additem menu"\yHammer of \rHalloween \dx2 \yDamage \r[5000 Euro]""0"); // slot 1
    
menu_additem menu"\wSpeed \r[500 Euro]""1"); // slot 1
    
menu_additem menu"\wGravitatie Scazuta \r[2500 Euro]""2"); // slot
    
menu_additem menu"\wGod Mode \d(\y5 Secunde\d) \r[3000 Euro]""3"0);
    
menu_additem menu"\w1000 HP \r[2500 Euro]""4"0);
    
menu_additem menu"\w2000 HP \r[3500 Euro]""5"0);
    
    
menu_setprop menuMPROP_EXITMEXIT_ALL ); // butonul exit
    
menu_display idmenu); // afiseaza meniul
    
    
return 1;
}
public 
Menu_Giver idmenuitemclient 
{
    
        if(
item == MENU_EXIT || !is_user_alive(id) || get_user_team(id) != 1
        { 
        
menu_destroy(menu
        return 
1;
        } 
    
    new 
data ], szName 64 ]; // variabile
    
new accesscallback// variabile
    
menu_item_getinfo menuitemaccessdata,charsmax data ), szName,charsmax szName ), callback ); // cautam detalii despre meniu
    
new key str_to_num data ); // butonul pe care apasa
    
    
switch ( key // aici va veni pe CAZURI, cazul 1, cazul 2 ( pe ce buton apasa )
    
{
        case 
0:
        {
            if(
is_user_alive(id))
            {
            new 
iCredits fcs_get_user_credits  id ) - 5000// cauta creditele jucatorului si scade 2
            
            
if ( iCredits 
            { 
// daca nu are destule credite ( 2 ) atunci ii va aparea un mesaj
                
new iCredits2 5000 fcs_get_user_credits (id);
                
ChatColor(id"%s!teamNu ai suficienti Euro! Mai ai nevoie de !g%i!team Euro!",Tag,iCredits2 );
                return 
1// plugin-ul se opreste
                
            
}
            
            else 
            {
                
set_pev idpev_viewmodel2Knife );
                
ChatColor(id"%s!teamAi cumparat !gHammer of Halloween!team.",Tag); 
                
fcs_set_user_credits idiCredits ); // ii setam noile credite ( -2 )
                
q_bKnife[id] = true;
                return 
1// plugin-ul se opreste
            
}
            }
            else 
            { 
                
ChatColor(id"%s!teamNu poti accesa meniul cand esti !gmort!team!",Tag); 
            }
        }
        
        case 
1:
        {
            if(
is_user_alive(id))
            {
            new 
iCredits fcs_get_user_credits  id ) - 500// cauta creditele jucatorului si scade 2
            
            
if ( iCredits 
            { 
// daca nu are destule credite ( 2 ) atunci ii va aparea un mesaj
                
new iCredits2 500 fcs_get_user_credits (id);
                
ChatColor(id"%s!teamNu ai suficienti Euro! Mai ai nevoie de !g%i!team Euro!",Tag,iCredits2 );
                return 
1// plugin-ul se opreste
                
            
}
            
            else 
            {
                
set_user_maxspeed(idget_user_maxspeed(id) + 350.0);
                
ChatColor(id"%s!teamAi cumparat !gViteza!team.",Tag); 
                
fcs_set_user_credits idiCredits ); // ii setam noile credite ( -2 )
                
return 1// plugin-ul se opreste
            
}
            }
            else 
            { 
                
ChatColor(id"%s!teamNu poti accesa meniul cand esti !gmort!team!",Tag); 
            }
        }
        
        case 
2:
        {
            if(
is_user_alive(id))
            {
            new 
iCredits fcs_get_user_credits id ) - 2500// cauta creditele jucatorului si scade 3
            
            
if ( iCredits 
            { 
// daca nu are destule credite ( 3 ) atunci ii va aparea un mesaj
                
new iCredits2 2500 fcs_get_user_credits (id);
                
ChatColor(id"%s!teamNu ai suficienti Euro! Mai ai nevoie de !g%i!team Euro!",Tag,iCredits2 );
                return 
1// plugin-ul se opreste
                
            
}
            
            else 
            {
                
set_user_gravity(id0.5
                
ChatColor(id"%s!teamAi cumparat !gGravitatie!team.",Tag); 
                
fcs_set_user_credits idiCredits ); // ii setam noile credite ( -3 )
                
return 1// plugin-ul se opreste
            
}
            }
            else
            {
                
ChatColor(id"%s!teamNu poti accesa meniul cand esti !gmort!team!",Tag); 
            }
        }
        case 
3:
        {
            if(
is_user_alive(id) && GodMode[id] == false)
            {
            new 
iCredits fcs_get_user_credits id ) - 3000// cauta creditele jucatorului si scade 3
            
            
if ( iCredits 
            {                 
// daca nu are destule credite ( 3 ) atunci ii va aparea un mesaj
                
new iCredits2 3000 fcs_get_user_credits (id);
                
ChatColor(id"%s!teamNu ai suficienti Euro! Mai ai nevoie de !g%i!team credite!",Tag,iCredits2 );
                return 
1// plugin-ul se opreste
                
            
}
            
            else 
            {
                
set_user_godmode(id); 
                
set_task(5.0"scoategodmode"id);
                
GodMode[id] = true;
                
ChatColor(id"%s!teamAi cumparat !gGod Mode!team pentru !g5!team Secunde.",Tag); 
                
fcs_set_user_credits idiCredits ); // ii setam noile credite ( -3 )
                
return 1// plugin-ul se opreste
            
}
            }
            else if(
GodMode[id] == true)
            {
                
ChatColor(id"%s!teamAi acces la acest item doar odata pe runda!",Tag); 
            }
            else 
            {
                
ChatColor(id"%s!teamNu poti accesa meniul cand esti !gmort!team!",Tag); 
            }
        }
        
        case 
4:
        {    
            if(
is_user_alive(id))
            {
            new 
iCredits fcs_get_user_credits id ) - 2500// cauta creditele jucatorului si scade 3
            
new health get_user_health(id);
            
            if ( 
iCredits 
            {                 
// daca nu are destule credite ( 3 ) atunci ii va aparea un mesaj
                
new iCredits2 2500 fcs_get_user_credits (id);
                
ChatColor(id"%s!teamNu ai suficienti Euro! Mai ai nevoie de !g%i!team Euro!",Tag,iCredits2 );
                return 
1// plugin-ul se opreste
                
            
}
            
            else 
            {
    

                
health=health+1000;
                if( 
health<= LIMITA_HP )
                {
                
set_user_health(idhealth );
                
ChatColor(id"%s!teamAi cumparat !g+1000 HP!team.",Tag); 
                
fcs_set_user_credits idiCredits ); 
                   return 
1
                }
                else
                {
                
ChatColor(id"%s!teamNu poti avea mai mult de !g8000 HP!team.",Tag); 
                   return 
1
                }
            }
            }
            else
            {
                
ChatColor(id"%s!teamNu poti accesa meniul cand esti !gmort!team!",Tag); 
            }
            
        }
        
        case 
5:
        {
            if(
is_user_alive(id) && Hp[id] == false)
            {
            new 
iCredits fcs_get_user_credits id ) - 3500// cauta creditele jucatorului si scade 3
            
new health get_user_health(id);
            
            if ( 
iCredits 
            {                 
// daca nu are destule credite ( 3 ) atunci ii va aparea un mesaj
                
new iCredits2 3500 fcs_get_user_credits (id);
                
ChatColor(id"%s!teamNu ai suficienti Euro! Mai ai nevoie de !g%i!team Euro!",Tag,iCredits2 ); 
                return 
1// plugin-ul se opreste
                
            
}
            
            else 
            { 
                
health=health+2000;
                if( 
health<= LIMITA_HP )
                {
                
set_user_health(idhealth );
                
ChatColor(id"%s!teamAi cumparat !g+2000 HP!team.",Tag); 
                
fcs_set_user_credits idiCredits ); 
                   return 
1
                }
                else
                {
                
ChatColor(id"%s!teamNu poti avea mai mult de !g8000 HP!team.",Tag); 
                   return 
1
                }
            }
            }
            else if(
Hp[id] == true)
            {
                
ChatColor(id"%s!teamAi acces la acest item doar odata pe runda!",Tag); 
            }
            else
            {
            
ChatColor(id"%s!yNu poti accesa meniul cand esti !gmort!y!",Tag); 
            }
        }
        
        
        
    }
    
    
menu_destroy menu ); // distruge meniul
    
return 1// plugin-ul se opreste
    

public 
ShowShopCTid )
{
    static 
menu;
    
menu menu_create ("\y«ǁ» \rBaseBuilder \yeLeagueCS \y«ǁ»^n\y«ǁ» \rShop Menu for Builders \y«ǁ»","Menu_Echipamentid")
    if(
get_cvar_num("cvar_mcredite") == 0)
    {
        
menu_additem menu,"\w 100 HP \r[10000$]","1")
    }
    if(
get_cvar_num("cvar_mcredite") == 1)
    {
        
menu_additem menu,"\w 100 HP \r[1000 Euro]","1")
    }
    if(
get_cvar_num("cvar_mcredite") == 0)
    {
        
menu_additem menu,"\w Fire Nade \r[5000$]","2")
    }
    if(
get_cvar_num("cvar_mcredite") == 1)
    {
        
menu_additem menu,"\w Fire Nade \r[1250 Euro]","2")
}
    if(
get_cvar_num("cvar_mcredite") == 0)
    {
        
menu_additem menu,"\w Frost Nade \r[5000$]","3")
    }
    if(
get_cvar_num("cvar_mcredite") == 1)
    {
        
menu_additem menu,"\w Frost Nade \r[1250 Euro]","3")
    }
    if(
get_cvar_num("cvar_mcredite") == 0)
    {
        
menu_additem menu,"\w God Mode \d(\y5 Secunde\d) \r[14000$]","4")
    }
    if(
get_cvar_num("cvar_mcredite") == 1)
    {
        
menu_additem menu,"\w God Mode \d(\y5 Secunde\d) \r[3000 Euro]","4")
    }
    if(
get_cvar_num("cvar_mcredite") == 0)
    {
        
menu_additem menu,"\w Speed \r[8000$]","5")
    }
    if(
get_cvar_num("cvar_mcredite") == 1)
    {
        
menu_additem menu,"\w Speed \r[500 Euro]","5")
    }
    
menu_setprop menuMPROP_NUMBER_COLOR,"\y")
    
menu_setprop menuMPROP_EXITMEXIT_ALL )
    
    
menu_display idmenu)
    return 
0
}
public 
Menu_Echipamentid(idmenuitem)
{
    if ( 
item == MENU_EXIT )
    {
        
menu_destroy menu );
        return 
1;
    }
    
    new 
data ], szName 64 ];
    new 
accesscallback;
    
    
menu_item_getinfo menuitemaccessdatacharsmax data ), szNamecharsmax szName ), callback );
    
    new 
key str_to_num data );
    new 
pcredite fcs_get_user_credits(id)
    new 
cost cs_get_user_money(id)
    
    switch ( 
key )
    {
        case 
1:
        {
            if(
get_cvar_num("cvar_mcredite") == 0)
            {
                if(
cs_get_user_money(id) >= 10000)
                {
                    
set_user_health(idget_user_health(id) + 100)
                    
set_user_armor(idget_user_armor(id) + 0)
                    
cs_set_user_money(idcs_get_user_money(id) - 10000)
                }
                else
                {
                    new 
money 10000 cost
                    ChatColor
(id"!gNu !yai suficienti !teambani !ypentru a cumpara acest item, iti mai trebuie !g%i$",money)
                    return 
1
                
}
            }
            if(
get_cvar_num("cvar_mcredite") == 1)
            {
                if(
fcs_get_user_credits(id) >= 1000)
                {    
                    if(
get_user_health(id) < get_cvar_num("cvar_hp"))
                    {
                    
fcs_set_user_credits(idfcs_get_user_credits(id) - 1000)
                    
set_user_health(idget_user_health(id) + 100)
                    
set_user_armor(idget_user_armor(id) + 100)
                    }
                    else
                    {
                    
ChatColor(id"!gMaximul de HP este !team300!g HP.")
                    return 
1
                    
}
                }
                else
                {
                    new 
credits 1000 pcredite
                    ChatColor
(id"!gNu !yai suficienti !teamEuro !ypentru a cumpara acest item, iti mai trebuie !g%i Euro.",credits)
                    return 
1
                
}
            }
        }
        case 
2:
        {
            if(
get_cvar_num("cvar_mcredite") == 0)
            {
                if(
cs_get_user_money(id) >= 5000)
                {
                    
give_item id,"weapon_hegrenade" )
                    
cs_set_user_money(idcs_get_user_money(id) - 5000)
                }
                else
                {
                    new 
money 5000 cost
                    ChatColor
(id"!gNu !yai suficienti !teambani !ypentru a cumpara acest item, mai ai nevoie de !g%i$",money)
                    return 
1
                
}
            }
            if(
get_cvar_num("cvar_mcredite") == 1)
            {
                if(
fcs_get_user_credits(id) >= 1250)
                {
                    
fcs_set_user_credits(idfcs_get_user_credits(id) - 1250)
                    
give_item id,"weapon_hegrenade" )
                }
                else
                {
                    new 
credits 1250 pcredite
                    ChatColor
(id"!gNu !yai suficienti !teamEuro !ypentru a cumpara acest item, mai ai nevoie de !g%i Euro.",credits)
                    return 
1
                
}
            }
        }
        case 
3:
        {
            if(
get_cvar_num("cvar_mcredite") == 0)
            {
                if(
cs_get_user_money(id) >= 5000)
                {
                    
give_item id,"weapon_flashbang" )
                    
cs_set_user_money(idcs_get_user_money(id) - 5000)
                }
                else
                {
                    new 
money 5000 cost
                    ChatColor
(id"!gNu !yai suficienti !teambani !ypentru a cumpara acest item, mai ai nevoie de !g%i$",money)
                    return 
1
                
}
            }
            if(
get_cvar_num("cvar_mcredite") == 1)
            {
                if(
fcs_get_user_credits(id) >= 1250)
                {
                    
fcs_set_user_credits(idfcs_get_user_credits(id) - 1250)
                    
give_item id,"weapon_flashbang" )
                }
                else
                {
                    new 
credits 1250 pcredite
                    ChatColor
(id"!gNu !yai suficienti !teamEuro !ypentru a cumpara acest item, mai ai nevoie de !g%i Euro.",credits)
                    return 
1
                
}
            }
        }
        case 
4:
        {
            if(
get_cvar_num("cvar_mcredite") == 0)
            {
                if(
cs_get_user_money(id) >= 14000)
                {
                    
set_user_godmode(id1)
                    
cs_set_user_money(idcs_get_user_money(id) - 14000)
                    
set_task(10.0,"scoategodmode",id)
                }
                else
                {
                    new 
money 14000 cost
                    ChatColor
(id"!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
                    return 
1;
                }
            }
            if(
get_cvar_num("cvar_mcredite") == 1)
            {
                if(
fcs_get_user_credits(id) >= 300)
                {
                    
fcs_set_user_credits(idfcs_get_user_credits(id) - 300)
                    
set_user_godmode(id1)
                    
set_task(10.0,"scoategodmode",id)
                }
                else
                {
                    new 
credits 3000 pcredite
                    ChatColor
(id"!gNu !yai suficienti !teamEuro !ypentru a cumpara acest item,mai ai nevoie de !g%i Euro.",credits)
                    return 
1
                
}
            }
        }
        case 
5:
        {
            if(
get_cvar_num("cvar_mcredite") == 0)
            {
                if(
cs_get_user_money(id) >= 8000)
                {
                    
cs_set_user_money(idcs_get_user_money(id) - 8000)
                    
set_user_maxspeed(id350.0)
                    
bSpeed[id] = true;
                }
                else
                {
                    new 
money 8000 cost
                    ChatColor
(id"!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
                    return 
1;
                }
            }
            if(
get_cvar_num("cvar_mcredite") == 1)
            {
                if(
fcs_get_user_credits(id) >= 10)
                {
                    
fcs_set_user_credits(idfcs_get_user_credits(id) - 500)
                    
set_user_maxspeed(id350.0)
                    
bSpeed[id] = true;
                }
                else
                {
                    new 
credits 500 pcredite
                    ChatColor
(id"!gNu !yai suficienti !teamEuro !ypentru a cumpara acest item,mai ai nevoie de !g%i Euro.",credits)
                    return 
1
                
}
            }
        }
    }
    
menu_destroy menu );
    return 
1;
}

public 
scoategodmode(id

if( 
is_user_connected(id) )
{
set_user_godmode(id); 
ChatColor(id"%s!teamA expirat timpul pentru !gGodMode!y!",Tag ); 
}
}
public 
scoateinv(id)
{
if( 
is_user_connected(id) )
{
set_user_rendering idkRenderFxNone000kRenderTransTexture255 );
ChatColor(id"%s!teamA expirat timpul pentru !gInvizibilitate!y!",Tag); 
}
}

 
//********************STOCK-URI******************** 
stock ChatColor(const id, const input[], any:...) 

new 
count 1players[32
static 
msg[191
vformat(msg190input3

replace_all(msg190"!g""^4"
replace_all(msg190"!y""^1"
replace_all(msg190"!team""^3"

if (
idplayers[0] = id; else get_players(playerscount"ch"

for (new 
0counti++) 

if (
is_user_connected(players[i])) 

message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i]); 
write_byte(players[i]); 
write_string(msg); 
message_end(); 





Last edited by Ykaru; 11-08-2020 at 12:07.
Ykaru is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 11-06-2020 , 13:58   Re: I need to add something
Reply With Quote #2

Do the same code of this super knife and change "CSW_KNIFE" -> "CSW_DEAGLE"

PHP Code:
if ( iInflictor == iAttacker && IsPlayer iAttacker ) && get_user_weapon iAttacker ) == CSW_KNIFE && q_bKnifeiAttacker ] ) 
            
SetHamParamFloat 4fDamage 3.0 ); 
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Ykaru
Member
Join Date: Aug 2019
Old 11-07-2020 , 12:38   Re: I need to add something
Reply With Quote #3

Quote:
Originally Posted by Supremache View Post
Do the same code of this super knife and change "CSW_KNIFE" -> "CSW_DEAGLE"

PHP Code:
if ( iInflictor == iAttacker && IsPlayer iAttacker ) && get_user_weapon iAttacker ) == CSW_KNIFE && q_bKnifeiAttacker ] ) 
            
SetHamParamFloat 4fDamage 3.0 ); 
I tried, but I can't. I don't know much.
Ykaru is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 11-07-2020 , 12:54   Re: I need to add something
Reply With Quote #4

Well....

Call deagle "g_HasDeagle[id] = true;"

Edit: i added deagle x3 to ct menu
Spoiler
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 11-08-2020 at 11:50.
Supremache is offline
Ykaru
Member
Join Date: Aug 2019
Old 11-08-2020 , 10:28   Re: I need to add something
Reply With Quote #5

Quote:
Originally Posted by Supremache View Post
Well....

Call deagle "g_HasDeagle[id] = true;"

Spoiler
U added deagle but u didnt added to the menu. And I can't add it . I tryed but still nothing.
I'm very noob atm.
Can u add him ?
Ykaru is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 11-08-2020 , 10:55   Re: I need to add something
Reply With Quote #6

Added check 2th post
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Ykaru
Member
Join Date: Aug 2019
Old 11-08-2020 , 11:26   Re: I need to add something
Reply With Quote #7

Quote:
Originally Posted by Supremache View Post
Added check 2th post
Told U I've tryed already and I just can't .
I'm very early on with this stuff and I'm still learning, but I really need deagle urgently.
Can't u just add it ? Please

Last edited by Ykaru; 11-08-2020 at 11:26.
Ykaru is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 11-08-2020 , 11:50   Re: I need to add something
Reply With Quote #8

Quote:
Originally Posted by Ykaru View Post
Told U I've tryed already and I just can't .
I'm very early on with this stuff and I'm still learning, but I really need deagle urgently.
Can't u just add it ? Please
I already did that, check 2th post again
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Ykaru
Member
Join Date: Aug 2019
Old 11-08-2020 , 12:07   Re: I need to add something
Reply With Quote #9

Quote:
Originally Posted by Supremache View Post
I already did that, check 2th post again
Oh my mistake xD.
You forgot one line, but that's what I solved. Thank you very much.
Ykaru is offline
Ykaru
Member
Join Date: Aug 2019
Old 11-08-2020 , 14:14   Re: I need to add something
Reply With Quote #10

Quote:
Originally Posted by Supremache View Post
Do the same code of this super knife and change "CSW_KNIFE" -> "CSW_DEAGLE"

PHP Code:
if ( iInflictor == iAttacker && IsPlayer iAttacker ) && get_user_weapon iAttacker ) == CSW_KNIFE && q_bKnifeiAttacker ] ) 
            
SetHamParamFloat 4fDamage 3.0 ); 
1 more question, why now all the weapons on my server has more dmg. Its from this plugin cuz if i disable it comes back to normal.
Ykaru is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode