 |
|
Veteran Member
Join Date: Aug 2007
Location: Poland
|

12-10-2007
, 11:05
Re: set/get_user_hp not working...
|
#3
|
with 102 hp also doesnt work :/
Quote:
|
You have 900 HP, can should be able to take 899 damage and survive.
|
no... 100hp, one hegren can kill me
PHP Code:
#include <amxmodx> #include <fun>
#define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "Sn!ff3r"
#define HP 249
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_event("HLTV", "daj_hp", "a", "1=0", "2=0") }
public daj_hp() { /*new players = get_playersnum() for (new i = 1; i <= players; i++) { set_user_health(i, HP) client_print(0,print_chat,"Player with UID %d have %d HP",i, get_user_health(i)) }*/ new players[32],count get_players(players,count) for (new i = 1; i <= count ; i++) { set_user_health(players[i], HP) } }
Doesn't work -.-
|
|
|
|