Dialogue... -
Hello, This dialogue is made when the player logs in every time he gets it whether he clicks accept or refuse
Код:
public OnPlayerRequestClass(playerid, classid)
{
new string[768];
PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];
if(IsPlayerNPC(playerid))
{
SpawnPlayer(playerid);
return 1;
}
if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
{
ClearChatbox(playerid, 10);
SendClientMessage(playerid, COLOR_YELLOW2, " ");
new message[] = "\t\t\t\t\t\t Los Angeles (4.0.1) Roleplay Terms and Conditions \n\n\n\n\n\n 1- Any sort of Un-Role Playing is Banable.\n\n 2- If you need help on the server please use /helpme.";
new message2[] = "\n\n 3- By Reading this, you agree to Follow all server /rules with risk of being kicked or banned by breaking them.\n\n 4- Web-Site: <www.wix.com/larpsite/larp>\n\n\n 5- Have fun and play\n\n\n Press on 'Agree' If you Agree, 'Refuse' If you refuse.";
format(string, sizeof(string),"%s %s",message,message2);
ShowPlayerDialog(playerid, 1244, DIALOG_STYLE_MSGBOX,"<LARP> Terms and Conditions",string,"Agree","Refuse");
SetPlayerCameraPos(playerid, 1363.3137,-1276.4448,21.6530);
SetPlayerCameraLookAt(playerid, 1285.9583,-1219.0508,104.1589);
//PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];
SetPlayerTeamFromClass(playerid,classid);
}
else
{
SpawnPlayer(playerid);
}
return false;
}
How can i make it that it appear on the 1st time a player registers and never appears if he is already registered?
Re: Dialogue... -
Well you can save a variable like RegistrationStep to his account file.
And set for exampe to RegistrationStep[playerid] = 1; when he agreed it.