Register/Login System
#1

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

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

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);
Reply
#4

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)