Help [/wanted] dialog.
#1

Hello, I order /wanted dialogue and want to show everyone that they wanted not just one, you have to do to look at all not just one? Please help me.

Command:
PHP код:
    if(strcmp(cmd"/wanted"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
           {
            if(
IsACop(playerid))
            {
                new 
jobs[1024];
                for(new 
i=0MAX_PLAYERSi++)
                {
                    if(
IsPlayerConnected(i))
                    {
                        if(
WantedLevel[i] > 0)
                        {
                            
GetPlayerName(igiveplayersizeof(giveplayer));
                            
format(jobssizeof(jobs), "%s - Wanted Level {FF0000}%d\n{FFFFFF}",giveplayer,WantedLevel[i]);
                              
ShowPlayerDialog(playerid,153,DIALOG_STYLE_LIST,"Suspecti cu wanted",jobs,"Ok""");
                        }
                        else
                        {
                            
SendClientMessage(playeridCOLOR_BANI"Momentan nu sunt suspecti cu wanted.");
                        }
                    }
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY"* Nu esti politist!");
            }
        }
//not connected
        
return 1;
    } 
Reply


Messages In This Thread
Help [/wanted] dialog. - by Edu4rd - 31.05.2014, 21:19
Re: Help [/wanted] dialog. - by Eth - 31.05.2014, 21:30
Re: Help [/wanted] dialog. - by Edu4rd - 31.05.2014, 21:44
Re: Help [/wanted] dialog. - by Edu4rd - 31.05.2014, 21:56
Re: Help [/wanted] dialog. - by SilentSoul - 31.05.2014, 22:29
Re: Help [/wanted] dialog. - by AiRaLoKa - 01.06.2014, 03:29
Re: Help [/wanted] dialog. - by Threshold - 01.06.2014, 04:12
Re: Help [/wanted] dialog. - by Edu4rd - 01.06.2014, 06:06
Re: Help [/wanted] dialog. - by AiRaLoKa - 01.06.2014, 06:45
Re: Help [/wanted] dialog. - by Edu4rd - 01.06.2014, 07:03

Forum Jump:


Users browsing this thread: 1 Guest(s)