AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Plugin Help - please (https://forums.alliedmods.net/showthread.php?t=22485)

LittleDude 12-27-2005 23:43

Plugin Help - please
 
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.

v3x 12-27-2005 23:48

Code:
register_event("WeapPickup", "check_awp", "b", "1=18");
Code:
public check_awp( id ) {   // set on fire }

LittleDude 12-27-2005 23:50

thanks v3x :) you're great

Charr 12-29-2005 13:06

Use a task for the fire damage

MistaGee 12-29-2005 16:34

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? :P ), if not just glue a function to the "drop" command.

Greetz MGee


All times are GMT -4. The time now is 16:09.

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