Easy Question
#1

Hey guys i need your help i have a PM System That You Can Disabled And Enable Through
pawn Код:
DIALOG_STYLE_MSGBOX
Dialog The First Button Is Enable And 2'nd Is Disable It Works fine but i want to make a SendClientMessage Show When Someone Presses The Enable / Disable here is my OnDialogResponse
pawn Код:
if(dialogid == 1)
    {
        if(!response) return PMEnabled[playerid] = 0;
        if(response) return PMEnabled[playerid] = 1;
        return 1;
    }
Reply
#2

try this:
Код HTML:
if(dialogid == 1)
    {
	if(!response)
	{
 	PMEnabled[playerid] = 0;
	SendClientMessage(playerid,0x800080AA,"Pm is Enable now");
	}
	if(response)
	{
 	PMEnabled[playerid] = 1;
 	SendClientMessage(playerid,0x800080AA,"Pm is Dissable now");
 	}
 	return 1;
 	}
Reply
#3

Oh My bad ..
Код HTML:
if(dialogid == 1)
    {
	if(!response)
	{
	new dialog;
	PMEnabled[playerid] = 0;
 	format(dialog, sizeof(dialog), "PM message is disable now");
	ShowPlayerDialog(playerid, 123, DIALOG_STYLE_MSGBOX, "PM", dialog, "OK", "");
	
	}
	if(response)
	{
 	new dialog;
	PMEnabled[playerid] = 1;
 	format(dialog, sizeof(dialog), "PM message is Enable now");
	ShowPlayerDialog(playerid, 124, DIALOG_STYLE_MSGBOX, "PM", dialog, "OK", "");
 	}
 	return 1;
 	}
Reply
#4

No need to do that it worked thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)