Raised This Month: $ Target: $400
 0% 

set_user_health / set_user_armor


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
BigDontCry
Member
Join Date: Nov 2007
Location: Sweden
Old 11-07-2007 , 16:03   set_user_health / set_user_armor
Reply With Quote #1

Hey =)

I'm just playing around with all the syntaxes you can use with AMXX... And I made this so that the clients would have 150 HP and 150 Armor when they spawn...

Well... they have..... Sort of... =)

I can take an M4A1 and shoot all my bullets to the head, still they don't die... Until I put a knife in their head...

Why?

PHP Code:
public plugin_init() {
 
  
register_plugin("TestPlug""1.0""")
 
}
public 
client_PreThink(id) {
 
 if(
is_user_connected(id)) {
   
set_user_health(id150)
   
set_user_armor(id150)
 
   
entity_set_float(idEV_FL_fuser20.0)
 }

__________________
Big Men Don't Cry

Quote:
[20:23] [email protected]: I don't know how
[20:23] [email protected]: I'm only 15
[20:23] [email protected]: I don't know anything
BigDontCry 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 01:14.


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