Raised This Month: $32 Target: $400
 8% 

2 or more the same weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hakim Azizov
Member
Join Date: Mar 2023
Old 04-13-2023 , 14:37   2 or more the same weapons
Reply With Quote #1

Hi. Can we give 2 AWP to a player? Or can we create doing this plugin?
Hakim Azizov is offline
Hakim Azizov
Member
Join Date: Mar 2023
Old 04-14-2023 , 11:18   Re: 2 or more the same weapons
Reply With Quote #2

Any help?
Hakim Azizov is offline
Hakim Azizov
Member
Join Date: Mar 2023
Old 04-17-2023 , 06:21   Re: 2 or more the same weapons
Reply With Quote #3

Quote:
Originally Posted by Hakim Azizov View Post
Any help?
I need it please help
Hakim Azizov is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 04-17-2023 , 08:01   Re: 2 or more the same weapons
Reply With Quote #4

Please only bump after 14 days. And give more information about it please.
An easy solution is to create a fake awp but we need more information in order to know what is the best way to help you.
__________________
Jhob94 is offline
Hakim Azizov
Member
Join Date: Mar 2023
Old 04-17-2023 , 08:44   Re: 2 or more the same weapons
Reply With Quote #5

Quote:
Originally Posted by Jhob94 View Post
Please only bump after 14 days. And give more information about it please.
An easy solution is to create a fake awp but we need more information in order to know what is the best way to help you.
Thanks for answer bro. I need a plugin which it gives same weapons example : two knifes and two awp weapons. (For my ZE mod, I need this plugin for prevent to drop all primary weapons when extra item bought) is that possible?
Hakim Azizov is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 04-17-2023 , 14:36   Re: 2 or more the same weapons
Reply With Quote #6

Default amxx i guess your best option is to pick a weapon on your server that you don't use and turn it into a fake AWP. Won't be CPU cheap, not really recommended, yet possible.

Later i will take a look into orpheu to know if there is something you can play around and i will get back to you.
__________________

Last edited by Jhob94; 04-17-2023 at 14:38.
Jhob94 is offline
Hakim Azizov
Member
Join Date: Mar 2023
Old 04-17-2023 , 14:52   Re: 2 or more the same weapons
Reply With Quote #7

Quote:
Originally Posted by Jhob94 View Post
Default amxx i guess your best option is to pick a weapon on your server that you don't use and turn it into a fake AWP. Won't be CPU cheap, not really recommended, yet possible.

Later i will take a look into orpheu to know if there is something you can play around and i will get back to you.
Thanks for helping bro. I will wait you
Hakim Azizov is offline
QuickDroLLL
Senior Member
Join Date: Dec 2021
Location: AMX Mod X Land
Old 05-11-2023 , 13:44   Re: 2 or more the same weapons
Reply With Quote #8

iam loking for the same thing is there still help?
QuickDroLLL is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 05-13-2023 , 12:13   Re: 2 or more the same weapons
Reply With Quote #9

Try it:
Code:
public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_clcmd("say /test", "CmdAwp");
}
bool:IsPlayerHoldingAWP(id)
{
    new weapon = pev(id, pev_weaponmodel);
    new classname[32];
    get_weaponname(weapon, classname, sizeof(classname));

    if (equal(classname, "models/w_awp.mdl") || equal(classname, "models/v_awp.mdl"))
        return true;

    return false;
}
public CmdAWP(id)
{
    if (is_user_connected(id) && is_user_alive(id)) 
    {
        if (!IsPlayerHoldingAWP(id))
        {
            GivePlayerAWP(id);
            client_print(id, print_chat, "You received two AWP.");
        }
        else
        {
            client_print(id, print_chat, "You already have an AWP.");
        }
    }
    return PLUGIN_HANDLED;
}
public GivePlayerAWP(id)
{
    give_item(id, "weapon_awp");
    give_item(id, "weapon_awp");
}
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
QuickDroLLL
Senior Member
Join Date: Dec 2021
Location: AMX Mod X Land
Old 05-13-2023 , 15:02   Re: 2 or more the same weapons
Reply With Quote #10

Quote:
Originally Posted by Fuck For Fun View Post
Try it:
Code:
public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_clcmd("say /test", "CmdAwp");
}
bool:IsPlayerHoldingAWP(id)
{
    new weapon = pev(id, pev_weaponmodel);
    new classname[32];
    get_weaponname(weapon, classname, sizeof(classname));

    if (equal(classname, "models/w_awp.mdl") || equal(classname, "models/v_awp.mdl"))
        return true;

    return false;
}
public CmdAWP(id)
{
    if (is_user_connected(id) && is_user_alive(id)) 
    {
        if (!IsPlayerHoldingAWP(id))
        {
            GivePlayerAWP(id);
            client_print(id, print_chat, "You received two AWP.");
        }
        else
        {
            client_print(id, print_chat, "You already have an AWP.");
        }
    }
    return PLUGIN_HANDLED;
}
public GivePlayerAWP(id)
{
    give_item(id, "weapon_awp");
    give_item(id, "weapon_awp");
}
EDIT: the code is not working
is it can be allowed on knife ?

Last edited by QuickDroLLL; 05-13-2023 at 15:09.
QuickDroLLL 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 08:11.


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