27.11.2011, 16:00
Cansomeone help me i want to add in register and login when the player have to Login/register it has there name in the dialog please help
new name[MAX_PLAYER_NAME], str[128];
GetPlayerName(playerid, name, sizeof(name));
// To your Code
format(str, sizeof(str), "Name: %s", name);
SendClientMessage(playerid, COLOR, str);
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""BlueEx"Los Santos Reality Roleplay",""GreyEx"Welcome back To Grand Theft Auto Central Roleplay\nType in your password to get Started.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""BlueEx"Grand Theft Auto Central Roleplay Registration ",""GreyEx"Welcome to Grand Theft Auto Central Roleplay\nType in your password.","Register","Quit");
}