SendClientMessage for Dialogue
#2

PHP код:
    if(strcmp(cmd"/sought"true) == 0)
    {
            if(
IsAMilitares(playerid))
            {
                   if(
OnDuty[playerid] != && GetPlayerOrg(playerid) != 2) return SendClientMessage(playerid,COLOR_GRAD1,"ERROR: You do not hit your card.");

                new 
string[128],content[128];
                for(new 
i=0GetMaxPlayers(); i++)
                {
                    if(
IsPlayerConnected(i))
                    {
                        if(
AccountData[i][pWantedLevel] > 0)
                        {
                            
format(stringsizeof(string), "{FFFFFF}%s - Search Level: %d",GetPlayerNameRP(i),AccountData[i][pWantedLevel]);
                            
strcat(contentstringsizeof(content));
                            
ShowPlayerDialog(playerid0DIALOG_STYLE_LIST"{FFFF00}Wanted Government:"content"Okey","");
                        }
                    }
                }
                return 
1;
            }
            else 
SendClientMessage(playerid,COLOR_GRAD1,"ERRO: Restricted access only to military.");
        return 
1;
    } 
Reply


Messages In This Thread
SendClientMessage for Dialogue - by JoshNudock - 26.08.2015, 11:48
Re: SendClientMessage for Dialogue - by jlalt - 26.08.2015, 12:01
Re: SendClientMessage for Dialogue - by Threshold - 26.08.2015, 12:37

Forum Jump:


Users browsing this thread: 1 Guest(s)