Raised This Month: $ Target: $400
 0% 

drop weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 03-23-2006 , 14:29   drop weapon
Reply With Quote #1

how can i check if a player has dropped a weapon/bomb(without using client_PreThink)

Thanks for help...

P34nut
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-23-2006 , 15:46  
Reply With Quote #2

I am not sure if this works or not.

Code:
register_clcmd("drop","my_func")
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-23-2006 , 16:01  
Reply With Quote #3

It works. I used it in my Satchel Charges plugin to drop the detonator when the player had the knife out.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-24-2006 , 02:00  
Reply With Quote #4

He said
Quote:
has dropped
When command is called i fairly sure that player still have a weapon.
It's possible to use a task with a short delay but i don't think that would work good in some cases.
I prefer fakemeta set_model way which i used in my "No weapon drop on death" plugin.
VEN is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 03-24-2006 , 02:21  
Reply With Quote #5

Code:
register_event("BombDrop", "bomb_drop", "b") /* Bomb has been dropped */ public bomb_drop(id) {      new name[32]      get_user_name(id, name, 31)      client_print(0, print_chat, "%s has dropped the bomb", name) }

That one way of doing that.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
VEN
Veteran Member
Join Date: Jan 2005
Old 03-24-2006 , 10:25  
Reply With Quote #6

Note: fakemeta set_model method would work for any drop: manual, automatic (buy, death). Also you have to check owner to filter out weapon buy/give.
VEN is offline
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 03-24-2006 , 14:36  
Reply With Quote #7

Ok its works in my script now
thanks everyone

this 1 can be closed
__________________
All you need to change the world is one good lie and a river of blood
P34nut 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:43.


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