new IP[16], name[MAX_PLAYER_NAME];
GetPlayerIp(playerid, IP, sizeof(IP));
GetPlayerName(playerid, name, sizeof(name));
SendClientMessage(playerid, COLOR_LIGHTRED, "The server is now retrieving some information from the database. This usually takes around 10 seconds.");
LoadPlayerTextDraws(playerid);
new amessage[256];
format(amessage, sizeof(amessage), "%s has connected to the server! ID: %d IP: %d", GetNameWithSpace(playerid), playerid, IP);
SendMessageToAdmins(amessage, COLOR_LIGHTRED);
public OnPlayerConnect( playerid ) { new _name[ MAX_PLAYER_NAME ], _msg[ 64 ] ; GetPlayerName( playerid, _name, MAX_PLAYER_NAME ); format( _msg, sizeof( _msg ), "%s [id(%d)] has just connected to xxx...", _name, playerid ); SendClientMessageToAll( 0xFFFF00FF, _msg ); return 1; }
Try this....
Код:
public OnPlayerConnect( playerid ) { new _name[ MAX_PLAYER_NAME ], _msg[ 64 ] ; GetPlayerName( playerid, _name, MAX_PLAYER_NAME ); format( _msg, sizeof( _msg ), "%s [id(%d)] has just connected to xxx...", _name, playerid ); SendClientMessageToAll( 0xFFFF00FF, _msg ); return 1; } |
new IP[16], name[MAX_PLAYER_NAME];
GetPlayerIp(playerid, IP, sizeof(IP));
GetPlayerName(playerid, name, sizeof(name));
SendClientMessage(playerid, COLOR_LIGHTRED, "The server is now retrieving some information from the database. This usually takes around 10 seconds.");
LoadPlayerTextDraws(playerid);
new amessage[256];
format(amessage, sizeof(amessage), "%s has connected to the server! ID: %d IP: %s", GetNameWithSpace(playerid), playerid, IP);
SendMessageToAdmins(amessage, COLOR_LIGHTRED);