dialog
#1

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...
Reply
#2

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.
}
Reply
#3

thanks bro.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)