Raised This Month: $ Target: $400
 0% 

Player Out Of Range


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Jenger
Junior Member
Join Date: May 2007
Old 05-31-2007 , 20:06   Player Out Of Range
Reply With Quote #1

I edited the original topic, because I fixed the first, but here's the current problem.

In this code:

#include <amxmodx>
#include <amxmisc>
#include <fun>

public SyphonHealth(Victim)
{
new Attacker = get_user_attacker(Victim);
new Health = get_user_health(Attacker);
new Damage = read_data(2);
if (Attacker) {
set_user_health(Attacker, (Health+Damage));
set_hudmessage(200, 0, 0, -1.0, 0.55, 2, 0.1, 4.0, 0.02, 0.02, 7);
show_hudmessage(Attacker,"%i+ (%i)", Damage, Health+Damage);
}
return PLUGIN_CONTINUE;
}

public plugin_init() {
register_plugin("Syphon Health", "1.0", "Jengerer");
register_event("Damage", "SyphonHealth", "b", "2!0", "4!0", "2!1");
return PLUGIN_CONTINUE;
}


When I run the map, if I kill someone with a grenade, the plugin crashes.

Last edited by Jenger; 05-31-2007 at 21:56.
Jenger is offline
 



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 10:41.


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