[Ajuda] /contratos
#5

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;
}

Se precisar do GetName
Quote:

GetName(playerid)
{
new Name[24];
GetPlayerName(playerid, Name, sizeof Name);
return Name;
}

Nгo cheguei a testar
Reply


Messages In This Thread
/contratos - by BrunoSayden177 - 14.12.2018, 20:29
Re: /contratos - by Luiiiz - 14.12.2018, 20:41
Re: /contratos - by BrunoSayden177 - 14.12.2018, 20:51
Re: /contratos - by 1sbedx - 14.12.2018, 21:34
Re: /contratos - by JamesDias - 14.12.2018, 21:36
Re: /contratos - by BrunoSayden177 - 14.12.2018, 22:55

Forum Jump:


Users browsing this thread: 1 Guest(s)