AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   two diffrent skins ak47 model for player (https://forums.alliedmods.net/showthread.php?t=343678)

Hakim Azizov 08-20-2023 10:38

two diffrent skins ak47 model for player
 
Hi. is possible to give a player two ak47(or other - knife, etc.) weapon. I have a zombie mode. It has extra ak47 items. But i dont want to drop primary weapons when buy new items. So i can solve problem only giving two or more weapons. example: extra item ak47 paladin and normal ak47. When i click 1 (primary weapons list) panel will show normal ak47 and ak47 paladin weapon. Please help

Hakim Azizov 08-21-2023 09:43

Re: two diffrent skins ak47 model for player
 
Don't we have anybody for helping me?(

mlibre 08-21-2023 10:10

Re: two diffrent skins ak47 model for player
 
normally these addons bring an automatic weapon drop when you get a new one, locate where you are dropping the weapon and disable this feature

Hakim Azizov 08-22-2023 02:24

Re: two diffrent skins ak47 model for player
 
Quote:

Originally Posted by mlibre (Post 2808986)
normally these addons bring an automatic weapon drop when you get a new one, locate where you are dropping the weapon and disable this feature

Bro when i buy new item, my last item drops according drop_weapons(id, 1 or 2) function. So I removed this function. Now when i take normal ak47 when round starts after choose another ak47 weapon(example:ak47 paladin, rpg7 so theese use csw_ak47 and theese items are given as this function: give_item(id,"weapon_ak47")) in extra items menu. I don't get 2 weapons(normal ak47 and my selected extra item: rpg7, ak47 paladin which they use csw_ak47 and "weapon_ak47"). I want to see 2 weapons(selected extra ak47 item and normal ak47 in panel of number 1; weapon choosing panel 1). Helpp

mlibre 08-22-2023 12:57

Re: two diffrent skins ak47 model for player
 
check that both do not drop the weapon

Hakim Azizov 08-23-2023 04:26

Re: two diffrent skins ak47 model for player
 
2 Attachment(s)
Quote:

Originally Posted by mlibre (Post 2809068)
check that both do not drop the weapon

bro. I will send code and video to you. watch it please

Video : https://www.youtube.com/watch?v=fLohpLBUjaY

what i want. First watch video after image -->

Tote 08-23-2023 04:54

Re: two diffrent skins ak47 model for player
 
find strip_user_weapons in the code where and see in which function its being executed and then disable it.

Hakim Azizov 08-23-2023 05:30

Re: two diffrent skins ak47 model for player
 
Quote:

Originally Posted by Tote (Post 2809127)
find strip_user_weapons in the code where and see in which function its being executed and then disable it.

Bro watch my shared video please

Jhob94 08-23-2023 06:04

Re: two diffrent skins ak47 model for player
 
Be patient my friend. Next week (probably) you will be able to do it. I haven’t forgot about this, it’s just boring stuff so i rarely feel motivated. But it will be done don’t worry.

Hakim Azizov 08-23-2023 06:06

Re: two diffrent skins ak47 model for player
 
Quote:

Originally Posted by Jhob94 (Post 2809135)
Be patient my friend. Next week (probably) you will be able to do it. I haven’t forgot about this, it’s just boring stuff so i rarely feel motivated. But it will be done don’t worry.

thanks bro for motivating me) i hope you and other friends will help. thanks


All times are GMT -4. The time now is 23:55.

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