That won't hel, it will show the name and the ip of the server. I want it to show the name and the ip of every players thats on the server. For exemple if your nickname is Ghost and your IP is yy.yy.yyy, when the game autorestarts it will show you this: Nick-ul tau: Ghost - IP-ul tau: yy.yy.yyy . If my name is Park and my IP is xx.xx.xxx, it will show me Nick-ul tau: Park - IP-ul tau: xx.xx.xxx . And so on for each player on the server.
PHP Code:
public show_messages()
{
new current_map[32]
get_mapname(current_map, 31);
new playersnum = get_playersnum();
new maxplayers = get_maxplayers();
new timer[32]
get_time("%m/%d/%Y - %H:%M:%S",timer,31)
new index = get_user_index();
new name_player[32]
get_user_name(index, name_player, 31)
new ip_player[32]
get_user_ip(index, ip_player, 31, 1)
ColorChat(0, GREEN, "--------------------------- RESTART ---------------------------")
ColorChat(0, GREEN, "^x04Harta Curenta: ^x03%s ^x01| ^x04Jucatori: ^x03%d/%d",
current_map, playersnum, maxplayers)
ColorChat(0, GREEN, "Data si timpul: %s", timer)
ColorChat(0, GREEN, "Nick-ul tau: ^"%s^" - IP-ul tau: %s", name_player, ip_player)
ColorChat(0, GREEN, "--------------------------- HF & GL ---------------------------")
Problem here(deleted all my other tries, can get the index work): new index = get_user_index()