Raised This Month: $ Target: $400
 0% 

1hp plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
broertje
Senior Member
Join Date: Mar 2005
Old 10-16-2005 , 15:34   1hp plugin
Reply With Quote #1

How Can I Set It So Everbody Has 1hp All Rounds Untill Admin Use amx_1hp 0
Code:
#include <fun> #include <amxmodx> #include <amxmisc> #define PLUGIN "New Plugin" #define VERSION "1.0" #define AUTHOR "Author" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_concmd("amx_1hp","1hp",ADMIN_LEVEL_A,"- 1hp mode") public 1hp(id) {   if (!(get_user_flags(id)&ADMIN_LEVEL_A)) {             }else{           set_user_health(id, 1)             }   }
broertje is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-16-2005 , 15:41  
Reply With Quote #2

Ok Just a note, you must include amxmodx before ANYTHING else

Code:
#inlcude <anxmodx> #include <amxmisc> #include <fun> #define PLUGIN "New Plugin" #define VERSION "1.0" #define AUTHOR "Author" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_concmd("amx_1hp","1hp",ADMIN_LEVEL_A,"- 1hp mode") } public 1hp(id, level, cid)   {       if( !cmd_access(id, level, cid, 1) ) return PLUGIN_HANDLED                 for( new i = 1; i<get_maxplayers(); i++) {                 if( !is_user_connected(i) ) continue                 set_user_health(i, 1)                     }   }
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-16-2005 , 16:18  
Reply With Quote #3

Code:
public plugin_init() {    register_event("ResetHUD","event_resethud","b"); } public event_resethud(id) {    set_user_health(id,1); }

perhaps?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-16-2005 , 16:22  
Reply With Quote #4

but what if he doesnt want it all the time? Just when they enter that command.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-16-2005 , 17:16  
Reply With Quote #5

Then add some kind of cvar control, I was just showing how to automatically do it every round.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-16-2005 , 18:06  
Reply With Quote #6

Look for my "License to Kill" plugin.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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:56.


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