registration help
#1

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
Reply
#2

Why not download one that comes with admin system.
Reply
#3

because i have a good admin system
Reply
#4

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..
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)