27.03.2010, 19:56
Код:
if (strcmp("/playing", cmdtext, true, 10) == 0) { new name[MAX_PLAYER_NAME], string[256], gametype[256]; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { GetPlayerName(i, name, sizeof(name)); gametype = GetPlayerGameType(i); format(string, sizeof(string), "Name: %s | Playing: %s", name, gametype); SendClientMessage(playerid, COLOR_WHITE, string); } } return 1; }