Dialog Question << reps ! >>
#1

Hello , how to make dialog onplayerspawn that only 1 time play got the dialog , so if respawned again the dialog will not show, in fact its radio dialog
OnPlayerSpawn
Код:
		ShowPlayerDialog(playerid,Radio,DIALOG_STYLE_MSGBOX,"Would you torn off the radio.","Yes","No");
Reply
#2

pawn Код:
new Spawned[MAX_PLAYERS];

//OnPlayerConnect
Spawned[playerid] = 0;

//OnPlayerSpawn
if(Spawned[playerid] == 0)
{
    Spawned[playerid] = 1;
    ShowPlayerDialog(playerid,Radio,DIALOG_STYLE_MSGBOX,"Would you torn off the radio.","Yes","No");
}
Reply
#3

pawn Код:
// Global:
new
    bool: First_Spawn[MAX_PLAYERS char];

// OnPlayerConnect:
First_Spawn{playerid} = true;

// OnPlayerSpawn:
if (First_Spawn{playerid})
{
    ShowPlayerDialog(playerid, Radio, DIALOG_STYLE_MSGBOX, "Would you torn off the radio.", "Yes", "No");
    First_Spawn{playerid} = false;
}
Reply
#4

Thanks + reps!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)