Add new register_event flags to filter humans and bots (bug 5768, r=me)

Former-commit-id: 15b0fba122d8c2ba7024b74aa07b78a877cc9d8c
This commit is contained in:
Vincent Herbet
2013-07-02 11:22:43 +02:00
parent 15572e2d61
commit 1026edec6c
3 changed files with 20 additions and 4 deletions

View File

@ -114,10 +114,12 @@ native console_cmd(id,const cmd[],any:...);
/* Registers event on which a given function will be called
* Flags:
* "a" - global event.
* "b" - specified.
* "b" - specified to client (human player and bot).
* "c" - send only once when repeated to other players.
* "d" - call if is send to dead player.
* "e" - to alive.
* "f" - to human player only ("b" flag must be set).
* "g" - to bot only ("b" flag must be set).
* NOTE: Due to a long-standing bug that would break compatibility with old plugins,
* the client id should be checked for alive/dead state if you use d or e.
* Examples for conditions: