20.11.2014, 23:33
pawn Код:
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, ConnectTD0);
TextDrawShowForPlayer(playerid, ConnectTD1);
TextDrawShowForPlayer(playerid, ConnectTD2);
TextDrawShowForPlayer(playerid, ConnectTD3);
TextDrawShowForPlayer(playerid, ConnectTD4);
TextDrawShowForPlayer(playerid, ConnectTD5);
TextDrawShowForPlayer(playerid, ConnectTD6);
TextDrawShowForPlayer(playerid, ConnectTD7);
TextDrawShowForPlayer(playerid, ConnectTD8);
TextDrawShowForPlayer(playerid, ConnectTD9);
TextDrawShowForPlayer(playerid, ConnectTD10);
SetTimerEx("HideTDs",5*1000, 0, "i", playerid);
//other things
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
if(fexist(Path(playerid)))
{
INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid,LOGIN_DIALOG,DIALOG_STYLE_INPUT,"Login","Enter Your Password Here","Login","Cancel");
}
else
{
ShowPlayerDialog(playerid,REGISTER_DIALOG,DIALOG_STYLE_INPUT,"Register","Register Your Account Here","Register","Quit");
return 1;
}