Raised This Month: $ Target: $400
 0% 

Skin Gun Bug


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 06-17-2021 , 22:45   Re: Skin Gun Bug
Reply With Quote #2

PHP Code:
if(equal(className"weaponbox") || equal(className"armoury_entity") || equal(className"grenade")) 
Wait... AK is a grenade?
Anyway, I want to help but can't right now so I just leave this if someone have time to do it or the OP do it himself/herself.

Quote:
Originally Posted by Ogy1331 View Post
1.The first problem is a player who has both flags b and p when he get Paladin gun,it shows ak47vipskin (models/SGP1N/v_ak47_1.mdl) not shows Paladin Skin (models/v_buffak.mdl).Paladin skin must have priority than ak47vipskin.
1. Set a var/bitvar and check at Event_CurWeapon to check if player currently holding the VIP AK when he got it.

2. At fw_SetModel, set an UniqueID to the AK (usually people save it in pev_impulse) and remove the var/bitvar above to notice that player no long have VIP AK

3. Force drop the VIP AK before getting the Paladin

4. Use Ham_Item_AddToPlayer to get the UniqueID to check it is the VIP AK, if yes, set the var/bitvar at #1 to make player have VIP AK again.

Quote:
Originally Posted by Ogy1331 View Post
2.The second problem is normal player can pick up paladin from the ground.I want normal player cant pick it up or when he pick up it changes to a normal ak47(skin+sound+spirit and ...).
At the Ham_Item_AddToPlayer, check player Admin Flag there, if it is not VIP then don't set var/bitvar.
__________________
My plugin:

Last edited by Celena Luna; 06-18-2021 at 05:43.
Celena Luna is offline
 



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 19:56.


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