Quote:
Originally Posted by Decak
When player press E he gets +2 hp example:
Code:
#include <amxmodx>
public plugin_init() {
register_plugin(...)
register_forward(FM_PlayerPrethink, "prethink")
}
public prethink(id) {
new button = pev(id, pev_button)
if(button == IN_USE) {
set_user_health(id, get_user_health(id)+2)
}
return PLUGIN_CONTINUE
}
|
Quote:
Originally Posted by Flick3rR
PHP Code:
(button == IN_USE)
->
PHP Code:
(button & IN_USE)
|
i know that,
i was talking about making my own command.
Quote:
Originally Posted by Backstabnoob
It works exactly the way he's doing it, hooking +command and -command.
|
but it seems like this command isn't sent to the server.