09.07.2017, 11:46
PHP код:
CMD:procurados(playerid, params[])
{
new contar, strdialog[128];
SendClientMessage(playerid, 0x00BFFAA, "[SERVER]:{E8E8E8} Vocк abriu o menu de procurados.");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(Warlley[i][pProcurado] >= 1)
{
new city[64] = "Nгo identificado";
switch(GetPlayerCity(i))
{
case CITY_LS: city = "Los Santos";
case CITY_SF: city = "San Fierro";
case CITY_LV: city = "Las Venturas";
}
contar ++;
format(strdialog, sizeof(strdialog), "%s{%h}%s{E8E8E8}[ID: %d]\t\t{FFD700}%d\t\t{E8E8E8}%s\n", strdialog, GetPlayerColor(i) >>> 8, getPName(i), playerid, Warlley[i][pProcurado], city);
}
}
format(WarlleyS, sizeof(WarlleyS), "{E8E8E8}Nick:\t\t{FFD700}Nнvel de Procura:\t\t{E8E8E8}Localizaзгo:\n\n%s", strdialog);
ShowPlayerDialog(playerid, DIALOG_PROCURADOS, DIALOG_STYLE_TABLIST_HEADERS, "{CC0000}Todos os procurados:", WarlleyS, "Fechar", "");
return 1;
}