SA-MP Forums Archive
Help. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help. (/showthread.php?tid=192526)



A little dialog Help. - Tee - 22.11.2010

I have made checkpoints at my org HQ and it is sposed to show the members of the org in a dialog.

But it only shows when the member is online, how can i do it so it shows even when the member is offline.

pawn Код:
case 1:
    {
    new count;
    for(new i; i<MAX_PLAYERS; i++){
    if(Member[i] == 1)
    GetPlayerName(i,Name,sizeof(Name));
    format(String, sizeof(String), "%s",Name);
    count++;
    ShowPlayerDialog(playerid,19, DIALOG_STYLE_LIST, "San Andreas Police Department.",String,"Back", "Cancel");
    }



Re: Help. - The_Moddler - 22.11.2010

You would have to save it to a file, then read it when they enter the CP.


Re: Help. - Tee - 22.11.2010

What i am saying is that, if i get accepted into SAPD, my name will appear there, but if i leave server, my name will be deleted and when i connect, my name will appear there. So if a player wants to see the members of SAPD and i am offline, they wont see if i am online.


Re: Help. - The_Moddler - 23.11.2010

That's what I'm saying to you, you will have to save the name to a file, and when they enter the CP read the file and show it up on a textdraw, etc.