Quote:
Originally Posted by mi1s0n
1 - how can I get user input like username and password in a manner like hud message at the left of the screen?
|
Use messagemode to take user input or a console command
Quote:
|
I think I have to detect user's pressed keys and print them on screen while ENTER key has not been pressed
|
Not possible
Quote:
|
2 - how can I get the winner team after round ends?is there any functions?
|
Search
Quote:
|
3 - how can I show a hud message when a user connects?
|
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "mi1s0n"
#define VERSION "1.0"
#define AUTHOR "Milad Doorbash"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_putinserver(id)
{
set_task(10.0, "showHud", id)
}
public showHud(id)
{
set_hudmessage(255, 255, 42, 0.02, 0.47, 0, 6.0, 12.0)
show_hudmessage(id, "your id is : %d",id)
}
__________________