Raised This Month: $ Target: $400
 0% 

Models for hand


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 09-30-2009 , 05:19   Models for hand
Reply With Quote #1

Well, i have this question:

When you don't have a weapon (without knife too) you don't see the hands... so, is posible to add a model to the hands? is posible to set a model when you don't have weapons, when you don't have nothing? Or the only thing that i can do, is give a knife and set the model?

Thx and sry for my english.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-30-2009 , 05:41   Re: Models for hand
Reply With Quote #2

Try and you will see.
__________________
Arkshine is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 09-30-2009 , 18:15   Re: Models for hand
Reply With Quote #3

Yes but how can i try... if i don't have any weapon to replace the model? But maybe exist another method to do this... a method to have a "fake" weapon.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
izzle
Senior Member
Join Date: Aug 2009
Old 09-30-2009 , 18:22   Re: Models for hand
Reply With Quote #4

I think you can like in hns the terrorists have no weapons but it shows up with a knife model
izzle is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 09-30-2009 , 18:33   Re: Models for hand
Reply With Quote #5

You don't need to have fake weapon.
Just set models:
PHP Code:
#include <amxmodx>
#include <engine>
#include <fun>

public plugin_init(){
    
register_event("CurWeapon","strip_weaps","be","1=1")
    
register_clcmd("test""test")
}

public 
test(id){
    
entity_set_string(idEV_SZ_viewmodel"models/v_knife.mdl")
    
entity_set_string(idEV_SZ_weaponmodel"models/p_knife.mdl")
}

public 
strip_weaps(id){
    
strip_user_weapons(id)

__________________
Impossible is Nothing
Sylwester is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 10-01-2009 , 06:18   Re: Models for hand
Reply With Quote #6

Thx Sylwester, work perfect.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 10-01-2009 , 08:43   Re: Models for hand
Reply With Quote #7

Don't
PHP Code:
strip_user_weapons 
on CurWeapon event ,it may sometimes crash you server!
__________________

Last edited by xbatista; 10-01-2009 at 08:47.
xbatista is offline
Send a message via Skype™ to xbatista
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 10-01-2009 , 10:15   Re: Models for hand
Reply With Quote #8

CurWeapon shouldn't be called a lot since your weapons are already stripped.
__________________
hleV is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 10-01-2009 , 11:05   Re: Models for hand
Reply With Quote #9

I just needed it to quickly get rid of weapons (including bots buying weapons), so I could test setting models and see if it works.
In fact my listen server crashed once but that doesn't matter, because it happened after I got my results
__________________
Impossible is Nothing
Sylwester is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 10-01-2009 , 18:26   Re: Models for hand
Reply With Quote #10

No problem, i didn't use the strip part of the code.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
Reply



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 22:34.


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