i think im almost there, just can get the userid to print
the tested output is
PHP Code:
Player() has Left the server.
has joined the server didnt even show
output I wanted is
PHP Code:
[ID] Player(STEAM_0:0:1234) has Joined the server.
[ID] Player(STEAM_0:0:1234) has Left the server.
and the code i make/used
PHP Code:
#include <amxmodx>
#include <amxmisc>
stock header[] = "[ID]"
public client_connect(id) {
new userid = get_user_userid(id)
new name[32]
get_user_info(id, "name", name, 31)
client_print(0,print_chat,"%s %s(%s) has Joined the server.", header, name, userid);
}
public client_disconnect(id) {
new userid = get_user_userid(id)
new name[32]
get_user_info(id, "name", name, 31)
client_print(0,print_chat,"%s %s(%s) has Left the server.", header, name, userid);
}