Dialog style?
#4

Try this:

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

        foreach(
Playeri)
        {
            if(
GetPlayerCash(i) < 0)
            {
                
format(stringsizeof(string), "%s\n%s: \t %d$"string,GetPlayerNameEx(i),GetPlayerCash(i));
                
x++;
            }
        }
        if(
!= 0)
        {
            
ShowPlayerDialog(playerid100DIALOG_STYLE_MSGBOX"Current Players Wanted in Debt:"string"Okay""");
        }
        else
        {
            if(
GetPlayerCash(playerid) > 1)
            {
                
ShowPlayerDialog(playerid100DIALOG_STYLE_MSGBOX"Current Players Wanted in Debt:"string"Okay""");
                
format(stringsizeof(string), "%s\nNo one is in debt!"string);
                 
x++;
            }
        }
     }
    else
    {
        
SendClientMessageEx(playeridCOLOR_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)