Easy Question - 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: Easy Question (
/showthread.php?tid=341905)
Easy Question -
Mr.Fames - 12.05.2012
Hey guys i need your help i have a PM System That You Can Disabled And Enable Through
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;
}
Re: Easy Question -
[D]ry[D]esert - 12.05.2012
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;
}
Re: Easy Question -
[D]ry[D]esert - 12.05.2012
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;
}
Re: Easy Question -
Mr.Fames - 12.05.2012
No need to do that it worked thanks