This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

check awp dropped


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 10-31-2004 , 03:30   check awp dropped
Reply With Quote #1

hey guys do any of you know the event that is called when a player either drops an AWP or dies with one. I have the event for awp pickup, but i need the others as well, thanks in advance

heres the pickup one, in case it helps.
register_event("WeapPickup", "check_awp", "b","1=18")

oh and heres the code for bomb dropped
register_event("TextMsg", "eBombDrop", "bc", "2&#Game_bomb_d")

it just seems so technical the last argument in register_event
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis is offline
Da Bishop
Senior Member
Join Date: Aug 2004
Location: Chester County PA
Old 10-31-2004 , 11:02  
Reply With Quote #2

i don't think there is a specific event for awps... but you can find the weaponbox that contains the awps

Code:
        new ent = 0         new model[128]                 ent = find_ent_by_class(33, "weaponbox")                     entity_get_string(ent, EV_SZ_model, model, 127);                 if (equal("models/w_awp.mdl", model)

And if you would like to get rid of the awp

Code:
        new ent = 0         new model[128]                 ent = find_ent_by_class(33, "weaponbox")                     entity_get_string(ent, EV_SZ_model, model, 127);                 if (equal("models/w_awp.mdl", model)                  callthink(ent)
__________________
Anything that is done can only be done better by urself - since life is a opinion make it the way urs feel its best

~live by it
Da Bishop is offline
Send a message via MSN to Da Bishop
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 10-31-2004 , 12:31  
Reply With Quote #3

wow checking for entities and removing them is a little hard to understand .. I'm gonna try a slightly easier approach, but it isn't working it seems so simple the code may only work for 0.16? here is the code, It should work but it doesn't

Code:
new usersweapon = get_user_weapon(lastKnown,clip,ammo) if(usersweapon==CSW_AWP)
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis is offline
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 10-31-2004 , 13:15  
Reply With Quote #4

I might as well give you guys more of an overview and let you know my broader goal rather then one small objective.

On my server, we play this little game ... called either Capture the awp or the man with the awp ... anyway Awps are restricted from the buy list ... so i spawn an awp for a player ... then we go about stealing it over and over and over ... and the same awp gets news owners every time the current owner dies. Also, if the opposing team doesn't pick up the awp and they killed the person with the awp,, meaning the awp is lost. The whole team gets punished for losing the awp. So I designing a plugin that will help automate this process if there are no admins present.

Main objectives:
Let everyone know when awp has been picked up [done]
Let everyone know if awp has been lost due to death [need help]
Let everyone know if awp has been dropped by player [need help]

I have attached my code but it's not working as of yet
Attached Files
File Type: sma Get Plugin or Get Source (the_man_with_awp.sma - 747 views - 2.5 KB)
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis 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 00:52.


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