#include <a_samp> if (strcmp("/rules", cmdtext, true, 10) ==0) { ShowPlayerDialog(playerid,100,DIALOG_STYLE_MSGBOX,"{FF0000}.: RULES :.","{FFFFFF}1.Must Follow The {FFFF00}Rules\n2.No car {FFFF00}ramming !\n3.No{FFFF00} Mod/Cleo/Soibet/Hacking/Cheating - {FF0000}NOT ALLOWED! \n4.Respect The {0000FF}Admin and Another {FFFF00}Player!\n5.{FF0000}Report {FFFFFF} if you see {FF0000}cheaters/hackers! {FFFFFF}use /report [id] [reason] ","Accept","Exit"); return 1; }
public OnPlayerCommandText(playerid, cmdtext[])
{
return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/rules", cmdtext, true, 10) ==0)
{
ShowPlayerDialog(playerid,100,DIALOG_STYLE_MSGBOX,"{FF0000}.: RULES :.","{FFFFFF}1.Must Follow The {FFFF00}Rules\n2.No car {FFFF00}ramming !\n3.No{FFFF00} Mod/Cleo/Soibet/Hacking/Cheating - {FF0000}NOT ALLOWED! \n4.Respect The {0000FF}Admin and Another {FFFF00}Player!\n5.{FF0000}Report {FFFFFF} if you see {FF0000}cheaters/hackers! {FFFFFF}use /report [id] [reason] ","Accept","Exit");
return 1;
}
return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/rules", cmdtext, true, 10) ==0)
{
ShowPlayerDialog(playerid,100,DIALOG_STYLE_MSGBOX,"{FF0000}.: RULES :.","{FFFFFF}1.Must Follow The {FFFF00}Rules\n2.No car {FFFF00}ramming !\n3.No{FFFF00} Mod/Cleo/Soibet/Hacking/Cheating - {FF0000}NOT ALLOWED! \n4.Respect The {0000FF}Admin and Another {FFFF00}Player!\n5.{FF0000}Report {FFFFFF} if you see {FF0000}cheaters/hackers! {FFFFFF}use /report [id] [reason] ","Accept","Exit");
return 1;
}
return 1; //change this to 1
}
pawn Код:
but the commands that u use i work perfectly ! . . |
#define DIALOG_RULES 8000
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/rules", true))
{
ShowPlayerDialog(playerid,DIALOG_RULES,DIALOG_STYLE_MSGBOX,"{FF0000}.: RULES :.","{FFFFFF}1.Must Follow The {FFFF00}Rules\n2.No car {FFFF00}ramming !\n3.No{FFFF00} Mod/Cleo/Soibet/Hacking/Cheating - {FF0000}NOT ALLOWED! \n4.Respect The {0000FF}Admin and Another {FFFF00}Player!\n5.{FF0000}Report {FFFFFF} if you see {FF0000}cheaters/hackers! {FFFFFF}use /report [id] [reason] ","Accept","Exit");
return 1;
}
return 0;
}
#include <a_samp>
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/rules", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, 8000, DIALOG_STYLE_MSGBOX,"{FF0000}.: RULES :." , "{FFFFFF}1.Must Follow The {FFFF00}Rules\n2.No car {FFFF00}ramming !\n3.No{FFFF00} Mod/Cleo/Soibet/Hacking/Cheating - {FF0000}NOT ALLOWED! \n4.Respect The {0000FF}Admin and Another {FFFF00}Player!\n5.{FF0000}Report {FFFFFF} if you see {FF0000}cheaters/hackers! {FFFFFF}use /report [id] [reason] ", "Accept", "Exit");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 8000){
}
return 0;
}