14.12.2018, 21:36
Quote:
CMD:contratos(playerid) { new cstr[128]; MEGAString[0] = EOS; if(PlayerInfo[playerid][pOrg] != 1) return SendClientMessage(playerid, -1, "Vocк nгo й um Assassino."); strcat(MEGAString, "Id/Nome\tValor\n"); for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[i][pCont] > 0 && IsPlayerConnected(i)) { format(cstr, 128, "{FFFFFF}%d %s\t{00FF00}%d\n", i, GetName(i), PlayerInfo[i][pCont]); strcat(MEGAString, cstr); } } ShowPlayerDialog(playerid, 30303, DIALOG_STYLE_TABLIST_HEADERS, "Contratos", MEGAString, "Pegar", "Fechar"); return 1; } |
Quote:
GetName(playerid) { new Name[24]; GetPlayerName(playerid, Name, sizeof Name); return Name; } |