Help on making gender - 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: Help on making gender (
/showthread.php?tid=548051)
Help on making gender -
Somalez - 27.11.2014
A'ight, so basically after a player registers it creates a *playernam.dub.ass" or something similar and inside are written important things like money/family/family rank etc. I want to make a gender thingy using dini to appear in this playername.dub.sav and i want a dialog when player spawns (only if gender = none) and it gives to options {male,female}. I made few lanes for this, but idk how to make the dialog and if first choice then write female or w/e
Code:
dUserSet(PlayerName(playerid)).("gender","None");
PlayerInfo[playerid][gender] = dUserINT(PlayerName(playerid)).("gender");
(save acc)
dUserSetINT(PlayerName(playerid)).("gender",PlayerInfo[playerid][gender]);
Basically I want if gender is set to none to appear on player spawn a dialog with two choices [male/female] and if he choice male for example then on his playername.dub.sav it will appear male. Also if possible that if he's gender is male or female he can't pick female/male clothes, but this is not vital, yet since I can try do it myself.