I need a dialog
#1

Can someone make me this dialogue? Thanks.

Код:
COMMAND:vipid(playerid,  params[])
{
    new name[24], string[128];
    new vips = 0;
    SendClientMessage(playerid,0x2E8B57AA,"Vхrgus olevad vipid:");
    for(new i = 0; i < MAX_PLAYERS; i++){
        if (IsPlayerConnected(i)){
            if(PlayerInfo[i][pVipLevel] >= 1){
                GetPlayerName(i, name,sizeof(name));
                format(string,sizeof string," ", name, PlayerInfo[i][pVipLevel]);
                format(string,sizeof string,"%s - VIP Level: %d", name, PlayerInfo[i][pVipLevel]);
                SendClientMessage(playerid,0xFF4500AA,string);
                vips ++;
            }
        }
    }
    if(vips== 0){
        SendClientMessage(playerid, 0xFF0000AA, "Ьhtegi vipi pole vхrgus!");
      }
    return 1;
}
Reply
#2

Please help me
Reply
#3

Код:
COMMAND:vipid(playerid,  params[])
{
    new name[24], string[128];
    new vips = 0;
    new str[300];
    SendClientMessage(playerid,0x2E8B57AA,"Vхrgus olevad vipid:");
    for(new i = 0; i < MAX_PLAYERS; i++){
        if (IsPlayerConnected(i)){
            if(PlayerInfo[i][pVipLevel] >= 1){
                GetPlayerName(i, name,sizeof(name));
                format(string,sizeof string," ", name, PlayerInfo[i][pVipLevel]);
                format(string,sizeof string,"%s - VIP Level: %d\n", name, PlayerInfo[i][pVipLevel]);
				strcat(str, string);
                vips ++;
            }
        }
    }
    ShowPlayerDialog(playerid, 1000 /* change it to a unique one if it collides */, DIALOG_STYLE_MSGBOX, "VIPs", str, "Ok", "");
    if(vips== 0){
        SendClientMessage(playerid, 0xFF0000AA, "Ьhtegi vipi pole vхrgus!");
      }
    return 1;
}
Reply
#4

Thanks K0P!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)