Raised This Month: $ Target: $400
 0% 

enity and knife drop


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
daniel46
Senior Member
Join Date: Dec 2011
Old 01-04-2013 , 10:48   enity and knife drop
Reply With Quote #1

is there a way to do this?

if player die he drop hes knife and other player can take it but i want if the player if some weapon he will need first to drop it and only then he can taqke the knife and same way if player have knife he need to drop it

if player die some enity will drop from hemm and other people can take it and it will give them somthing i want
daniel46 is offline
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu (France).
Old 01-04-2013 , 10:53   Re: enity and knife drop
Reply With Quote #2

When player dies, create a entity and set it a model like "w_knife.mdl" ( -> Google ). Then check when a player touches this entity ( with register_touch ).
__________________
micapat is offline
daniel46
Senior Member
Join Date: Dec 2011
Old 01-04-2013 , 11:53   Re: enity and knife drop
Reply With Quote #3

also how can i make enity that only the 1 who did this enity will see it

else how can i know witch enity is it?

if i have 2 and i want to check if its lets say knife or other knife with other model

Last edited by daniel46; 01-04-2013 at 12:04.
daniel46 is offline
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu (France).
Old 01-04-2013 , 12:13   Re: enity and knife drop
Reply With Quote #4

1 )

AddToFullPack ?

pev_groupinfo maybe ( Connor es tu là ? )

2 )

Set a specific classname.
__________________

Last edited by micapat; 01-04-2013 at 12:13.
micapat is offline
xDrugz
Senior Member
Join Date: Jul 2011
Location: return 4;
Old 01-04-2013 , 12:22   Re: enity and knife drop
Reply With Quote #5

1) This plugin already done by Alucard^
2) Create new entity and then hook touch with register_touch or with fakemeta FM_Touch.
__________________
xDrugz is offline
daniel46
Senior Member
Join Date: Dec 2011
Old 01-04-2013 , 12:45   Re: enity and knife drop
Reply With Quote #6

yes but i want to get what enity he is touching how can i do this?
daniel46 is offline
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu (France).
Old 01-04-2013 , 12:49   Re: enity and knife drop
Reply With Quote #7

register_touch
__________________
micapat is offline
daniel46
Senior Member
Join Date: Dec 2011
Old 01-04-2013 , 13:14   Re: enity and knife drop
Reply With Quote #8

could you make me just a public example with the register touch?

just with w knife & w ak47
daniel46 is offline
xDrugz
Senior Member
Join Date: Jul 2011
Location: return 4;
Old 01-04-2013 , 14:46   Re: enity and knife drop
Reply With Quote #9

use pev_classname to get touched classname then check if the classname equals to whatever you need.
__________________
xDrugz is offline
daniel46
Senior Member
Join Date: Dec 2011
Old 01-04-2013 , 15:40   Re: enity and knife drop
Reply With Quote #10

so i ask could you give me little example?
daniel46 is offline
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 13:23.


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