lspd members with dialogs
#6

pawn Код:
new string[512]

for(new i=0;i<MAX_PLAYERS;i++)
{
    if(PlayerIsACop[i]) // insert your own check here
    {
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(i, pname, sizeof(pname));
        format(string, 512, "%s%s\n", string, pname);
    }
}

ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "Police officers online", string, "Okay", "Close");
Just a rough example.

Now, for checking offline members you would have to use MySQL or have some kind of storing system for faction members, maybe storing their names in a file?
Reply


Messages In This Thread
lspd members with dialogs - by 'Pawno. - 26.06.2012, 21:39
Re: lspd members with dialogs - by Grand_Micha - 26.06.2012, 21:44
Re: lspd members with dialogs - by 'Pawno. - 26.06.2012, 21:52
Re: lspd members with dialogs - by Grand_Micha - 26.06.2012, 21:55
Re: lspd members with dialogs - by 'Pawno. - 26.06.2012, 21:59
Re: lspd members with dialogs - by Makaveli93 - 26.06.2012, 22:01
Re: lspd members with dialogs - by 'Pawno. - 26.06.2012, 22:13
Re: lspd members with dialogs - by Makaveli93 - 26.06.2012, 22:18
Re: lspd members with dialogs - by Jonny5 - 27.06.2012, 00:41
Re: lspd members with dialogs - by Makaveli93 - 27.06.2012, 01:00

Forum Jump:


Users browsing this thread: 2 Guest(s)