Mám problém s prihlasovaným,mám LOGIN/REGISTER systém,akože všetko ide,len potrebujem ukladať peniaze,skiny a wanted level ale neviem ako.Pls poraďte mi čo mám doplniť.
#include <a_samp>
#include <dini>
#include <MD5>
#define REGISTER 180
#define LOGIN 250
public OnPlayerConnect(playerid)
{
new Hrac[64];
new Sname[MAX_PLAYER_NAME];
GetPlayerName(playerid,Sname,sizeof(Sname));
format(Hrac,sizeof(Hrac),"/Hrac/%s.txt",Sname);
if(dini_Exists(Hrac))
{
ShowPlayerDialog(playerid,LOGIN,DIALOG_STYLE_INPUT,"*Prihlásenie*","Vitaj zpäť na The RaI by IchNar a RAK0S prihlás sa!","Prihlásiť","Zrušiť");
}
else
{
ShowPlayerDialog(playerid,REGISTER,DIALOG_STYLE_INPUT,"*Registrácia*","Vitaj na The RaI by IchNar a RAK0S zaregistruj sa!","Registrovať","Zrušiť");
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 5)
{
if(response == 0)
{
SendClientMessage(playerid,0xFFAAFF,"Bol si vyhodený zo servera preotže nesúhlasíš s pravidlami");
Kick(playerid);
}
}
if(dialogid == LOGIN)
{
if(response == 0)
{
SendClientMessage(playerid,0xFFAAF,"Bol si vyhodený zo servera pretože si sa neprihlásil");
Kick(playerid);
return 1;
}
if(response == 1)
{
Login(playerid,(inputtext));
return 1;
}
}
if(dialogid == REGISTER)
{
if(response == 0)
{
SendClientMessage(playerid,0xFFAAF,"Bol si vyhodený zo servery pretože si sa neregistroval");
ShowPlayerDialog(playerid,REGISTER,DIALOG_STYLE_INPUT,"*Registrácia*","Vitaj na The RaI(original)by IchNar a RAK0S zaregistruj sa!","Registrovať","Zrušiť");
Dotaz
IchNar 0
Mám problém s prihlasovaným,mám LOGIN/REGISTER systém,akože všetko ide,len potrebujem ukladať peniaze,skiny a wanted level ale neviem ako.Pls poraďte mi čo mám doplniť.
Link to comment
Share on other sites
0 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now