Dialog style?
#4

Try this:

PHP код:
CMD:wfdebt(playerid, params[])
{
    if(
gTeam[playerid] == 2 || IsACop(playerid)|| PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pMember] == 7)
    {
        new 
string[128], x;

        foreach(
Player, i)
        {
            if(
GetPlayerCash(i) < 0)
            {
                
format(string, sizeof(string), "%s\n%s: \t %d$", string,GetPlayerNameEx(i),GetPlayerCash(i));
                
x++;
            }
        }
        if(
x != 0)
        {
            
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_MSGBOX, "Current Players Wanted in Debt:", string, "Okay", "");
        }
        else
        {
            if(
GetPlayerCash(playerid) > 1)
            {
                
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_MSGBOX, "Current Players Wanted in Debt:", string, "Okay", "");
                
format(string, sizeof(string), "%s\nNo one is in debt!", string);
                 
x++;
            }
        }
     }
    else
    {
        
SendClientMessageEx(playerid, COLOR_GREY, "   You're not a Cop / Debt Collectors or Government");
    }
    return 
1;
} 
Reply


Messages In This Thread
Dialog style? - by MrCallum - 26.08.2016, 17:11
Re: Dialog style? - by Shinja - 26.08.2016, 17:13
Re: Dialog style? - by MrCallum - 26.08.2016, 17:15
Re: Dialog style? - by DarkSkull - 26.08.2016, 18:09
Re: Dialog style? - by Threshold - 26.08.2016, 18:22
Re: Dialog style? - by DeeadPool - 26.08.2016, 18:31

Forum Jump:


Users browsing this thread: 1 Guest(s)