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)
+--- Thread: dialog (/showthread.php?tid=462339)



dialog - SampzzonE - 06.09.2013

Hi all!

I have a problem... I made a dialog with some things and i want to show the dialog just for TEAM_X not for others...


Re: dialog - Konstantinos - 06.09.2013

pawn Код:
for( new i = 0; i < MAX_PLAYERS; i++ )
{
    if( IsPlayerConnected( i ) && gTeam[ i ] = TEAM_X ) ShowPlayerDialog( ... );
    // Change gTeam what whatever you're using for the Teams, and add the parameters in ShowPlayerDialog
    // It will loop through the players, if they're connected and their team is TEAM_X, it will show them the dialog.
}



Re: dialog - SampzzonE - 06.09.2013

thanks bro.