Raised This Month: $ Target: $400
 0% 

Plugin Help - please


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LittleDude
Member
Join Date: Dec 2004
Location: Selah, WA
Old 12-27-2005 , 23:43   Plugin Help - please
Reply With Quote #1

This is my first plugin and what I want it to do is that when you pick up an AWP it sets you on fire, and the fire does 10 damage every second...so you have 10 seconds to live.

And to check if they have the weapon you would have to register_event the "CurWeapon" event if I believe so...would it be like this?

Code:
register_event("CurWeapon", "PickUpWeap")
along the lines of that? I would be very grateful if anyone could help.
__________________
It is stupid to be stupid, and stupid to not be stupid
LittleDude is offline
Send a message via AIM to LittleDude
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 12-27-2005 , 23:48  
Reply With Quote #2

Code:
register_event("WeapPickup", "check_awp", "b", "1=18");
Code:
public check_awp( id ) {   // set on fire }
__________________
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
LittleDude
Member
Join Date: Dec 2004
Location: Selah, WA
Old 12-27-2005 , 23:50  
Reply With Quote #3

thanks v3x you're great
__________________
It is stupid to be stupid, and stupid to not be stupid
LittleDude is offline
Send a message via AIM to LittleDude
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 12-29-2005 , 13:06  
Reply With Quote #4

Use a task for the fire damage
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 12-29-2005 , 16:34  
Reply With Quote #5

btw: If you don't know how to set ppl on fire, just have a look at the code of amx_atac, it's a great plugin to learn from.

Are you going to implement a function that players who throw away their AWP are freed from the fire? I don't know if there's an event for this (V3x? ), if not just glue a function to the "drop" command.

Greetz MGee
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble
MistaGee is offline
Send a message via ICQ to MistaGee
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:09.


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