10.03.2014, 07:10
this dialog id
i want make it to LoginShowPlayerDialog fuctions
like this
i want make public LoginShowPlayerDialog(playerid)
pawn Код:
if(dialogid == 1244)
{
if(response)
{
if (gPlayerAccount[playerid] != 0)
{
ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_PASSWORD,"Welcome, Please Log-In","{33CCFF}Type your password below to log-in ","Log-in","Quit");
}
else
{
ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_PASSWORD,"Welcome, Please Register","{33CCFF}Type your password below to register a new account.","Register","Quit");
}
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has accepted the terms and conditions.",d,m,y,h,mi,s,sendername);
LoginLog(string);
}
else
{
SendClientMessage(playerid, COLOR_GREY,"* You selected \"Refuse\", To play you must agree to the terms of condition");
Kick(playerid);
}
}
like this
pawn Код:
public ShowAchievement(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw59);
TextDrawShowForPlayer(playerid, Textdraw60);
TextDrawShowForPlayer(playerid, Textdraw61);
TextDrawShowForPlayer(playerid, Textdraw62);
TextDrawShowForPlayer(playerid, Textdraw63);
TextDrawShowForPlayer(playerid, Textdraw64[playerid]);
SetTimerEx("HideAchievement",15000,false,"i",playerid);
}