Raised This Month: $ Target: $400
 0% 

Health + Armor Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 06-13-2011 , 16:17   Re: Health + Armor Plugin
Reply With Quote #1

Code:
#include <amxmodx> #include <cstrike> #include <fun> // Health limit #define LIMIT 220 #define LIMIT2 150 public plugin_init() {     register_plugin("HP + AP After Kill -", "0.1", "Mxx");     register_event("DeathMsg", "event_DeathMsg", "a"); } public event_DeathMsg() {     static killer, victim;     killer = read_data(1);     victim = read_data(2);     if(!is_user_connected(killer) || !is_user_connected(victim) || !is_user_alive(killer))         return;         cs_set_user_armor(killer, min(LIMIT2, get_user_armor(killer) +40), CS_ARMOR_VESTHELM);     set_user_health(killer, min(LIMIT, get_user_health(killer) + 40)); }
Just like this or did you mean something diffrent? :S
Erox902 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 23:31.


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