Код:
stock ShowMainMenuDialog(playerid, frame)
{
new titlestring[64];
new string[512];
switch(frame)
{
case 1:
{
format(titlestring, sizeof(titlestring), "{3399FF}Dang Nhap - %s", GetPlayerNameEx(playerid));
format(string, sizeof(string), "{FFFFFF}Chao mung den voi Sever Viet Nam Role Play, %s.\n\nDia chi IP cua ban la: %s\n\nTen cua ban da duoc dang kэ, vui lтng dang nhap de vao game.", GetPlayerNameEx(playerid), GetPlayerIpEx(playerid));
ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,titlestring,string,"Dang Nhap","Thoat");
}
case 2:
{
format(titlestring, sizeof(titlestring), "{3399FF}Dang Ky - %s", GetPlayerNameEx(playerid));
format(string, sizeof(string), "{FFFFFF}Chao mung ban den voi server Viet Nam Role Play, %s.\n\nDia chi IP cua ban lа: %s\n\nTai khoan chua duoc dang kэ vui lтng dang ky mot tai khoan.\n\nNho doc luat truoc khi choi nhe.", GetPlayerNameEx(playerid), GetPlayerIpEx(playerid));
ShowPlayerDialog(playerid,MAINMENU2,DIALOG_STYLE_PASSWORD,titlestring,string,"Dang Ky","Thoat");
}
case 3:
{
format(titlestring, sizeof(titlestring), "{3399FF}Dang Nhap lai - %s", GetPlayerNameEx(playerid));
format(string, sizeof(string), "{FFFFFF}Sai mat khau!\n\nChao mung ban den voi server Viet Nam Role Play, %s.\n\nDia chi IP cua ban lа.%s\n\nVui long dang nhap mat khau cho dung sai 1 lan nua la bi kick ra khoi game.", GetPlayerNameEx(playerid), GetPlayerIpEx(playerid));
ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,titlestring,string,"Dang Nhap","Thoat");
}
case 4:
{
format(titlestring, sizeof(titlestring), "{3399FF}Khoa tai khoan - %s", GetPlayerNameEx(playerid));
format(string, sizeof(string), "{FFFFFF}Co so du lieu cua chung toi chi ra rang %s hien dang dang nhap, co gi vui long lien lac yahoo b0ykut3.l0ve_f0r3v3r@yahoo.com de duoc giai quyet.", GetPlayerNameEx(playerid));
ShowPlayerDialog(playerid,MAINMENU3,DIALOG_STYLE_MSGBOX,titlestring,string,"Thoбt","");
}
}
}