SA-MP Forums Archive
Dialog - 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: Dialog (/showthread.php?tid=255145)



Dialog - Snowman12 - 14.05.2011

Hay is it possible to put if's in dialog sp i can ide part of commands from people who it dosnt apply for?

if so can you post an example


Re: Dialog - StilThere - 14.05.2011

You want to hide listitems for certain people or what?


Re: Dialog - Snowman12 - 14.05.2011

yes like admin help wont appear in there list and also commands that the admins arnt a high engough level to see


Re: Dialog - Snowman12 - 14.05.2011

does anyone know?


Re: Dialog - StilThere - 14.05.2011

I would suggest you'd format the listitems?

like
pawn Код:
new DialogString[256];
format(DialogString, sizeof(DialogString), "regularplayerlistitem\netcetera\netcetera");
if(IsPlayerAdmin) format(DialogString, sizeof(DialogString), "%s\nadminitems\netcetera", DialogString);
ShowPlayerDialog(playerid, 3, 2, "Deal", DialogString, "Purchase", "Cancel");