19.01.2016, 21:01
hey guys i created a gpci kicker everything worked fine, but i am ineedy to show the player a dialog before kicking the player, i created the timer which is 1 second but it wasn't enough it shows the player the register dialog then it kicks him lel
code
Please help guys the dialog should be showen! thanks in advance <3
code
pawn Код:
public OnPlayerConnect(playerid)
{
//--------------------------------GCPI------------------------------------------
new zSerial[128];
gpci(playerid, zSerial, 128);
format(ystring, sizeof(ystring),"ladmin/Sban/%s.txt", zSerial);
if(dini_Exists(ystring))
{
format(ystring, sizeof(ystring),"{FFFFFF}You Can't Join The Server Now!\n{FFFFFF}Hardware ID: {FF0000}%d\n{FFFFFF}If You Want To Get Unbanned Visit {FF0000}www.tctdm.tk{FFFFFF}, Create an unban appeal there!", zSerial);
ShowPlayerDialog(playerid, 31013, DIALOG_STYLE_MSGBOX, "{FF0000}TCTDM - Hardware ID Banned", ystring, "OK", "");
}