03.12.2015, 10:58
If you using mysql, put this after player register
Код:
// Setup local variables new NumPlayers, Msg[256]; // Execute the query to get all ID's from all accounts in table "playerdata" mysql_query("SELECT * FROM `playerdata`"); // Store the result mysql_store_result(); // Count the amount of rows returned in the result NumPlayers = mysql_num_rows(); // Free the result mysql_free_result(); format(Msg, sizeof(Msg), "{B7B7B7}[SERVER] {FFDC2E}%s(%i) {FFFFFF}has registered, making the server have a total of {FFDC2E}%d {FFFFFF}players registered.", myName, spareid, NumPlayers); SendClientMessageToAll(COLOR_WHITE, Msg);