Help, Please - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help, Please (
/showthread.php?tid=277750)
Help, Please -
seanny - 19.08.2011
Hello, I am Editing the GF Script (The One by FeaR) and I am confused at one part
pawn Код:
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid,InfoMsg,DIALOG_STYLE_MSGBOX,"{FFFF00}Info about RP Quiz","You will now be taken to an RP Quiz \nwhich you must pass in order to play.","{00FF00}Let's Go","{FF0000}Fuck this");
return 1;
}
Im Using an RP Quiz System which some guy gave to me to use, I want it to show to the player after they registerd an Account
PS: Dont tell me "Dont use GF!" or Similar
Re: Help, Please -
Abreezy - 19.08.2011
Show me your registration codes, and i'll show you where to place it.
Re: Help, Please -
seanny - 19.08.2011
Do you mean the Whole
pawn Код:
public OnPlayerConnect(playerid)
?
Re: Help, Please -
doreto - 19.08.2011
whats the problem ?
Re: Help, Please -
Toreno - 19.08.2011
You first need to know if the player name in not taken, if it's not then it should show the registeration dialog first.
pawn Код:
if(!playerexists) SHOWPLAYERDIALOG(REGISTERATION, ...); // It's only an example!
else if(playerexists) SHOWPLAYERDIALOG(LOGIN, ...); // It's only an example!
Then when he finished, you need to do so another dialog would pop up.
Also, if you have no clue how to script then you should learn first. People won't script for you the whole thing, get a scripter or something.
Re: Help, Please -
Abreezy - 19.08.2011
The question is, is the registration and login in dialogs? If it is, go to the dialogresponse thats for registration, after it says something like "you're registered" you would add the showplayerdialog for the RP quiz.