27.04.2014, 09:00
You can use a ******'s include from YSI called y_va just on top of script put
and with other stock's put this:
and your code is:
Код:
#include <YSI\y_va>
Код:
stock va_ShowPlayerDialog(playerid, dialogid, style, caption[], const info[], button1[], button2[], va_args<>) { new fmat[800]; va_format(fmat, sizeof(fmat), info, va_start<7>); return ShowPlayerDialog(playerid, dialogid, style, caption, fmat, button1, button2); }
Код:
new playerIP[32]; GetPlayerIp(playerid,playerIP,sizeof(playerIP)); if (CheckBan(playerIP) == 1) { va_ShowPlayerDialog(playerid,12,DIALOG_STYLE_MSGBOX,"BANNED","Akun atau IP anda telah di banned!\n\nAccount: %s\nIP: %s\nDi banned oleh: %s\nAlasan: %s\nPada Waktu: %s | Tanggal: %s\n\nSihlakan Post forum bagian unban request","OK","", GetPlayerNameEx(playerid),playerIP,PlayerInfo[playerid][pAdminban],PlayerInfo[playerid][pBanReason],PlayerInfo[playerid][pBanExpired],PlayerInfo[playerid][pBanExpired2]); // place kick in dialo g responce Kick(playerid); return 1; }