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(id, 150)
set_user_armor(id, 150)
entity_set_float(id, EV_FL_fuser2, 0.0)
}
}
__________________