SA-MP Forums Archive
[Help] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] (/showthread.php?tid=299852)



[Help] - TheLonelyBeast - 27.11.2011

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


Re: [Help] - Kostas' - 27.11.2011

pawn Код:
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);



Re: [Help] - TheLonelyBeast - 27.11.2011

pawn Код:
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");
    }
Where to add it because still learning pawn


Re: [Help] - TheLonelyBeast - 27.11.2011

anyone else can help please where to put that code