SA-MP Forums Archive
Register/Login System - 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: Register/Login System (/showthread.php?tid=427942)



Register/Login System - Zlaja - 03.04.2013

When registering I want to add a Sex, How old is character, From where is his character(America,Rusia etc.)
And I want that all of that be in /stats.
I didn't make /stats yet but I will work on it.
Can someone help me ?


Re: Register/Login System - Sithis - 03.04.2013

Here are some pointers:

During your registration process, you will need to present a dialog asking for the sex, age, country and save their preference accordingly. Then you read from that saved information when someone uses your /stats command.


Re: Register/Login System - HurtLocker - 03.04.2013

To give you the idea:
pawn Код:
GetPlayerName(playerid, name, sizeof(name));
                format(file, sizeof(file), "\\users\\%s.ini", name);
                kills=dini_Int(file, "Kills");
                deaths=dini_Int(file, "Deaths");
                R=float(kills)/float(deaths);
                money=dini_Int(file, "Money");
                score=dini_Int(file, "Score");
                alv=dini_Int(file, "AdminLevel");
                format(string,sizeof(string), "%s's STATS: [ Kills: %d || Deaths: %d || Ratio: %f || Money: %d || Score: %d || Admin level: %d ]", name, kills, deaths, R, money, score, alv);
                SendClientMessage(playerid, 0x1E90FFFF, string);



Re: Register/Login System - Zlaja - 03.04.2013

Quote:
Originally Posted by Sithis
Посмотреть сообщение
Here are some pointers:

During your registration process, you will need to present a dialog asking for the sex, age, country and save their preference accordingly. Then you read from that saved information when someone uses your /stats command.
Yes, I want to do the dialog.

I already have dialog for password.
I want dialog for sex.
"Write your sex"
Next dialog
"How old your character is?"
"From where your character comes from?"
And answers America etc..

My question is how to do it xd.


Re: Register/Login System - Konstantinos - 03.04.2013

https://sampwiki.blast.hk/wiki/ShowPlayerDialog
https://sampwiki.blast.hk/wiki/OnDialogResponse