05.07.2012, 16:14
hellow
i have a registration:
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
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; }
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