Raised This Month: $ Target: $400
 0% 

Damage Editor:


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
pdoubleopdawg
Senior Member
Join Date: Aug 2005
Old 09-03-2005 , 13:48   Damage Editor:
Reply With Quote #1

I was thinking about editting damage. Although, would this actually work both client, and serverside? Aswell as, could you return FMRES_SUPERCEDE or something so the regular damage doesn't cut in?

--Thanks!

Code:
#include <amxmodx> #include <amxmisc> #include <engine> #include <fakemeta> public plugin_init() {     register_plugin("InstaKill","0.1","DahVid")     register_cvar("dmg_on","0")     register_cvar("dmg_armorsave","0")     register_cvar("dmg_type","1")     register_cvar("dmg_num","1000")     register_event("Damage","Damage_Event","be","2>0") } public Damage_Event(id) {     if(!get_cvar_num("dmg_on"))         return PLUGIN_HANDLED     new origin[3]     get_user_origin(id,origin)         new armorsave=get_cvar_num("dmg_armorsave")     new damage=get_cvar_num("dmg_num")     new damage_type=get_cvar_num("dmg_type")         message_begin(MSG_ONE,get_user_msgid("Damage"),{0,0,0},id)     write_byte(armorsave)     write_byte(damage) //gay plugins..     write_long(damage_type)     write_coord(origin[0])     write_coord(origin[1])     write_coord(origin[2])     return PLUGIN_CONTINUE }
pdoubleopdawg is offline
 


Thread Tools
Display Modes

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 14:26.


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