Raised This Month: $344 Target: $400
 86%   Almost there!

Knife menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yousuf khan
Member
Join Date: May 2019
Old 10-24-2020 , 09:46   Knife menu
Reply With Quote #1

Hi.
I Needed To Fix This Knife Menu There Have Many Errors!
Can AnyOne Fix It?
There Is Sma:
Attached Files
File Type: sma Get Plugin or Get Source (KnifeMenu.sma - 159 views - 5.9 KB)
yousuf khan is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-24-2020 , 10:00   Re: Knife menu
Reply With Quote #2

Nice Greek font. Why not use Knife Models [XP System & Skills Support]? What error?
__________________
DJEarthQuake is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-24-2020 , 10:12   Re: Knife menu
Reply With Quote #3

Since you're definitely the author, I'm sure you can fix it yourself.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
NOVA GAMING
Member
Join Date: Apr 2020
Old 10-24-2020 , 10:19   Re: Knife menu
Reply With Quote #4

USE THIS PLUGIN :- CLICK HERE
Are You sure you are the author ? since the coding is too Bad , why are you using Chatcolor Stock if you are using CROMCHAT ? , some function are not even exist Just Remove those line or put "//" .
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <fun>
#include <cromchat>

new const PLUGIN[] = "Knife Menu";
new const 
VERSION[] = "1.0";
new const 
AUTHOR[] = "Yousuf Khan";

#pragma semicolon 1

#define VIP_FLAG ADMIN_LEVEL_H
#define Admin_FLAG ADMIN_KICK
#define Owner_FLAG ADMIN_RCON

new const Knife1Model[66] = "models/KnifeMenu/player/v_knife.mdl";
new const 
Knife2Model[66] = "models/KnifeMenu/player/v_katana.mdl";
new const 
Knife3Model[66] = "models/KnifeMenu/player/v_hammer.mdl";
new const 
Knife4Model[66] = "models/KnifeMenu/player/v_Warhammer.mdl";

new const 
Knifeadm1Model[66] = "models/KnifeMenu/Admin/v_katana.mdl";
new const 
Knifeadm2Model[66] = "models/KnifeMenu/Admin/v_hammer.mdl";
new const 
Knifeadm3Model[66] = "models/KnifeMenu/Admin/v_Warhammer.mdl";

new 
boolKnife1[33];
new 
boolKnife2[33];
new 
boolKnife3[33];
new 
boolKnife4[33];

new 
boolKnifeadm1[33];
new 
boolKnifeadm2[33];
new 
boolKnifeadm3[33];

new 
boolKnifeChoosen[33];

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
register_clcmd("say /knife","SayKnife");
    
register_clcmd("say knife","SayKnife");
    
    
register_event("CurWeapon""CurentWeapon""be""1=1");
    
RegisterHam(Ham_Spawn"player""Spawn"1);
    
RegisterHam(Ham_TakeDamage"player""DamageKnife");    

}

public 
Spawn(id
{
    if(
is_user_alive(id))
    {
        
KnifeChoosen[id] = false;
        
        
Knife1[id] = false;
        
Knife2[id] = false;
        
Knife3[id] = false;
        
Knife4[id] = false;
        
        
Knifeadm1[id] = false;
        
Knifeadm2[id] = false;
        
Knifeadm3[id] = false;

    }
}

public 
plugin_precache() 
{
    
precache_model(Knife1Model);
    
precache_model(Knife2Model);
    
precache_model(Knife3Model);
    
precache_model(Knife4Model);
    
    
precache_model(Knifeadm1Model);    
    
precache_model(Knifeadm2Model);
    
precache_model(Knifeadm3Model);

}

public 
client_putinserver(id) {
    
Knife1[id] = false;
    
Knife2[id] = false;
    
Knife3[id] = false;
    
Knife4[id] = false;
    
    
Knifeadm1[id] = false;
    
Knifeadm2[id] = false;
    
Knifeadm3[id] = false;

}

public 
MenuKnife(id)
    {
    new 
menu menu_create ("\r[BB] \yKnife Menu""CaseMenu");
    
    
menu_additem(menu"\wNormal Knife \y[Free]""1");
    
menu_additem(menu"\wKatana \y[\rV.I.P\y]""2");
    
menu_additem(menu"\wHammer \y[\rAdmin\y]""3");
    
menu_additem(menu"\wWar Hammer \y[\rO\wW\yN\wE\rR]""4");
    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_display(idmenu);
    
    return 
1
}

public 
CaseMenu(idmenuitem) {
    if(
item == MENU_EXIT) {
        return 
1;
    }
    
    new 
data [6], szName [64];
    new 
accesscallback;
    
menu_item_getinfo (menuitemaccessdata,charsmax (data), szName,charsmax (szName), callback);
    new 
key str_to_num (data);
    
    switch (
key)
    {
        case 
1:
        {
            
//MenuPlayer(id); 
        
}
        
        case 
2:
        {
            if( 
get_user_flagsid ) & VIP_FLAG ) {
                
//MenuVIP(id);
            
}
            else
            {
                
CC_SendMessage(id"&x04[Knife Menu] &x03You Don't Have &x04VIP Acces&x01!");
                
MenuKnife(id);
            }
    }
        case 
3:
        {
            if( 
get_user_flagsid ) & Admin_FLAG ) {
                
//MenuAdmin(id);
            
}
            else
            {
                
CC_SendMessage(id"&x04[Knife Menu] &x03You Don't Have &x04Admin Acces&x01!");
                
MenuKnife(id);
            }
    }
        case 
4:
        {
            if( 
get_user_flagsid ) & Owner_FLAG ) {
                
//MenuOwner(id);
            
}
            else
            {
                
CC_SendMessage(id"&x04[Knife Menu] &x03You Don't Have &x04Owner Acces&x01!");
                
MenuKnife(id);
            }  
                    }   
                }
            
    return 
PLUGIN_CONTINUE;
}

public 
CurentWeapon(id) {
        if(
get_user_weapon(id) == CSW_KNIFE) {

    if(
Knife1[id])
    
set_pev(idpev_viewmodel2Knife1Model);
    
    if(
Knife2[id])
    
set_pev(idpev_viewmodel2Knife2Model);
    
    if(
Knife3[id])
    
set_pev(idpev_viewmodel2Knife3Model);
    
    if(
Knife4[id])
    
set_pev(idpev_viewmodel2Knife4Model);
    
    if(
Knifeadm1[id])
    
set_pev(idpev_viewmodel2Knifeadm1Model);
    
    if(
Knifeadm2[id])
    
set_pev(idpev_viewmodel2Knifeadm2Model);
    
    if(
Knifeadm3[id])
    
set_pev(idpev_viewmodel2Knifeadm3Model);

     }
}


public 
DamageKnife VictimInflictorAttackerFloat:fDamage )  {
    if(
is_user_connected(Attacker) && Attacker != Victim) {
                if(
get_user_weapon(Attacker) == CSW_KNIFE) {

        if(
Knife1[Attacker])
        
SetHamParamFloat(4fDamage 1.0);
        
        if(
Knife2[Attacker])
        
SetHamParamFloat(4fDamage 1.2);
        
        if(
Knife3[Attacker])
        
SetHamParamFloat(4fDamage 1.8);

        if(
Knife4[Attacker])
        
SetHamParamFloat(4fDamage 2.3);
        
        if(
Knifeadm1[Attacker]) 
        
SetHamParamFloat(4fDamage 1.2);
        
        if(
Knifeadm2[Attacker]) 
        
SetHamParamFloat(4fDamage 1.8);
        
        if(
Knifeadm3[Attacker]) 
        
SetHamParamFloat(4fDamage 2.3);

        }
    }
}

public 
SayKnife(id) {
    if(
KnifeChoosen[id])  {
        
CC_SendMessage(id"&x04[Knife Menu] &x03You Have Already Choosed &x04Knife&x01!");
        return;

                }
    }


stock ChatColor(const id, const input[], any:...) {
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
    
    
replace_all(msg190"!g""^4"); // verde
    
replace_all(msg190"!n""^1"); // galben/alb/negru
    
replace_all(msg190"!t""^3"); // rosu/albastru/gri
    
replace_all(msg190"!t2""^0"); // rosu2/albastru2/gri2
    
    
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();
            }
        }
    }

__________________
NOVA GAMING is offline
yousuf khan
Member
Join Date: May 2019
Old 10-24-2020 , 10:24   Re: Knife menu
Reply With Quote #5

Ok Guyz Thank You All Of You.
Iam New In Scripting Now Iam Not a Real Scripter Just You Can Say Me a Student
yousuf khan is offline
yousuf khan
Member
Join Date: May 2019
Old 10-24-2020 , 11:28   Re: Knife menu
Reply With Quote #6

Bro There Have Many Errors Then I Try To Fix It I Fix Some Errors But Now I Can't Fix Give Item Error
If AnyOne Choose Knife They Have Been Choosed But They Didn't Get It Can You Fix It?
And Thats For BB Just Builders Can Use It.
Attached Files
File Type: amxx KnifeMenu.amxx (10.8 KB, 34 views)
File Type: sma Get Plugin or Get Source (KnifeMenu.sma - 74 views - 6.6 KB)

Last edited by yousuf khan; 10-24-2020 at 11:31.
yousuf khan is offline
yousuf khan
Member
Join Date: May 2019
Old 10-25-2020 , 03:19   Re: Knife menu
Reply With Quote #7

Iam Waiting....................
Can AnyOne Do this Please?
yousuf khan is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 10-25-2020 , 05:47   Re: Knife menu
Reply With Quote #8

While waiting read here
If you don't know why i post it, you didn't read it.
__________________


Last edited by Mordekay; 10-25-2020 at 05:48.
Mordekay is offline
yousuf khan
Member
Join Date: May 2019
Old 10-25-2020 , 07:28   Re: Knife menu
Reply With Quote #9

I Readed Sorry For It!
yousuf khan is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-25-2020 , 08:25   Re: Knife menu
Reply With Quote #10

What is the point of doing this when there is already a working plugin that does the job correctly? Your code is straight up bad.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 05:21.


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