Raised This Month: $ Target: $400
 0% 

register_event pick_up ^^ how?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Owyn
Veteran Member
Join Date: Nov 2007
Old 02-20-2009 , 17:39   register_event pick_up ^^ how?
Reply With Quote #1

how do i properly register when user picked up something?

Last edited by Owyn; 02-21-2009 at 13:09.
Owyn is offline
Send a message via ICQ to Owyn
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-20-2009 , 17:48   Re: register_event drop and buy ^^ how?
Reply With Quote #2

I just searched for "register buy" and there is a solution in the first thing that came up.

Edit:
Another search for "hook drop weapon" (or something like that) gave this http://forums.alliedmods.net/showthread.php?t=49247

Search. Read. Search. Read. Search. Read. Search. Read. Search. Read. Search. Read. Search. Read. Search. Read.

I don't know anything about CS and I can find this stuff.

Last edited by fysiks; 02-21-2009 at 03:59.
fysiks is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 02-21-2009 , 12:42   Re: register_event drop and buy ^^ how?
Reply With Quote #3

yup, found them too =\
but when FM_setmodel is called?
register_forward(FM_SetModel, "forward_set_model")

won't fm_setmodel be called everytime model is changed? (curweapon, drop,buy,touch) ?
Owyn is offline
Send a message via ICQ to Owyn
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-21-2009 , 12:47   Re: register_event drop and buy ^^ how?
Reply With Quote #4

PHP Code:
register_clcmd("drop""cmdDropped");

public 
cmdDroppedid ) {
   
// player trying todo weapon

__________________
xPaw is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 02-22-2009 , 05:44   Re: register_event pick_up ^^ how?
Reply With Quote #5

hi, i found
Quote:
register_event( "WeapPickup" , "on_WeapPickup" , "b" );
found this event) works great, so i don't need money and touch events
Owyn is offline
Send a message via ICQ to Owyn
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-22-2009 , 10:27   Re: register_event pick_up ^^ how?
Reply With Quote #6

Quote:
Originally Posted by .Owyn. View Post
hi, i found
found this event) works great, so i don't need money and touch events
You can also make it only react to particular weapon pickups by specifying the weapon index.

PHP Code:
register_event"WeapPickup" "eWeapPickup" "be""1=1""1=3""1=5",  "1=7",  "1=8""1=10" ,"1=11"); 
__________________
Bugsy is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 02-22-2009 , 11:23   Re: register_event pick_up ^^ how?
Reply With Quote #7

actually i need it for all weapons) but i saw topic started by you talking about it
Owyn is offline
Send a message via ICQ to Owyn
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-22-2009 , 11:42   Re: register_event pick_up ^^ how?
Reply With Quote #8

Quote:
Originally Posted by .Owyn. View Post
actually i need it for all weapons) but i saw topic started by you talking about it
Oh ok, just thought I would let you know.
__________________
Bugsy 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 16:54.


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