SA-MP Forums Archive
registration 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: registration help (/showthread.php?tid=356964)



registration help - RoXONPL - 05.07.2012

hellow

i have a registration:


Код:
#include <a_samp>
#define Blue 0x06CDFFFF

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print("Login And Register Script Basic v1.0 by §с†eџĐµĐe");
    print("--------------------------------------\n");
    return 1;
}

new pname[20], filename[24];
new File:user;

public OnPlayerConnect(playerid)
{
    GetPlayerName(playerid, pname, 20);
    format(filename, 24, "users/%s.txt", pname);
    if(!fexist(filename))
    {
        ShowPlayerDialog(playerid, 1, 1, "Register", "Please type in a password:", "Register", "Cancel");
    }
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	
    if(dialogid == 1)
    {
        if(response == 0)
        {
            SendClientMessage(playerid, Blue, "You have been disconnected!");
            Kick(playerid);
            return 1;
        }
        user = fopen(filename, io_write);
        fwrite(user, inputtext);
        fclose(user);
        switch(listitem)
        {
        case 0;
        {
        SendClientMessage(playerid, Blue, "Your Message");
        }
        {
        case 1;
        SendClientMessage(playerid, Blue, "Your Message");
        }
    return 1;
}
please can someone add me something to this registration so it saves players score it would be cool if it could save in that folder "users" with players Names


or can you give me a link to a registration with out a gui or dialogs so player has to type /registration password
and it has to save players Name and Score


Cya


Re: registration help - jaami - 05.07.2012

Why not download one that comes with admin system.


Re: registration help - RoXONPL - 05.07.2012

because i have a good admin system


Re: registration help - jaami - 05.07.2012

Quote:
Originally Posted by RoXONPL
Посмотреть сообщение
because i have a good admin system
How could you have a good admin system if you dont have registeration/login system..


Re: registration help - RoXONPL - 05.07.2012

well i only have a drift server its not like i need a pro system i just need a simple registration that saves score which i cant found most of tham hvae gui or dialogs which i dont want