Help [/wanted] dialog.
#2

pawn Код:
if(strcmp(cmd, "/wanted", true) == 0)
    {
        if(IsPlayerConnected(playerid))
           {
            if(IsACop(playerid))
            {
                new jobs[1024];
                for(new i=0; i < MAX_PLAYERS; i++)
                {
                    if(IsPlayerConnected(i))
                    {
                        if(WantedLevel[i] > 0)
                        {
                            GetPlayerName(i, giveplayer, sizeof(giveplayer));
                            format(jobs, sizeof(jobs), "%s - Wanted Level {FF0000}%d\n{FFFFFF}",giveplayer,WantedLevel[i]);
                              ShowPlayerDialog(i,153,DIALOG_STYLE_LIST,"Suspecti cu wanted",jobs,"Ok", "");
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_BANI, "Momentan nu sunt suspecti cu wanted.");
                        }
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_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)