12.03.2013, 20:48
Quote:
|
Alright another question as my brain will not work today.. where should i put the resets?
Код:
public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
}
if(PlayerInfo[playerid][pVip] >=1 )
{
SendClientMessage(playerid, COLOR_VIOLET, "Welcome back to Urban Gang-Wars, VIP. Make sure to use /vhelp for your special commands.");
}
return 1;
}
|
Код:
public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
}
if(PlayerInfo[playerid][pVip] >=1 )
{
SendClientMessage(playerid, COLOR_VIOLET, "Welcome back to Urban Gang-Wars, VIP. Make sure to use /vhelp for your special commands.");
}
PlayerInfo[playerid][pAdmin] = 0; // Reset the rest of them here as well.
return 1;
}


