
case 154:
{
if(strlen(PlayerInfo[playerid][pOOC]) < 5)
{
SetPVarInt(playerid, "AppSetup", 1);
ShowPlayerDialog(playerid,155, DIALOG_STYLE_INPUT, "Tutorial", "What is the definition of Metagame?", "Next", "Cancel");
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
case 155:
{
if(strlen(PlayerInfo[playerid][pMetagame]) < 5)
{
SetPVarInt(playerid, "AppSetup", 2);
ShowPlayerDialog(playerid,156, DIALOG_STYLE_INPUT, "Tutorial", "What is the definition of Metagame?", "Next", "Cancel");
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
case 156:
{
if(strlen(PlayerInfo[playerid][pRevenge]) < 5)
{
SetPVarInt(playerid, "AppSetup", 3);
ShowPlayerDialog(playerid,157, DIALOG_STYLE_INPUT, "Tutorial", "What is the definition of Revenge Killing?", "Next", "Cancel");
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
case 157:
{
if(strlen(PlayerInfo[playerid][pRoleplay]) < 5)
{
SetPVarInt(playerid, "AppSetup", 4);
ShowPlayerDialog(playerid,158, DIALOG_STYLE_INPUT, "Tutorial", "What is the definition of Roleplay?", "Next", "Cancel");
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
case 158:
{
if(strlen(PlayerInfo[playerid][pPowergame]) < 5)
{
SetPVarInt(playerid, "AppSetup", 5);
ShowPlayerDialog(playerid,159, DIALOG_STYLE_INPUT, "Tutorial", "What is the definition of Powergame?", "Next", "Cancel");
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
case 159:
{
if(strlen(PlayerInfo[playerid][pQuest1]) < 5)
{
SetPVarInt(playerid, "AppSetup", 6);
ShowPlayerDialog(playerid,160, DIALOG_STYLE_INPUT, "Tutorial", "What do you do if you get Deathmatched?", "Next", "Cancel");
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
case 160:
{
if(strlen(PlayerInfo[playerid][pQuest2]) < 5)
{
SetPVarInt(playerid, "AppSetup", 7);
ShowPlayerDialog(playerid,161, DIALOG_STYLE_INPUT, "Tutorial", "You are being arrested ICly you...", "Next", "Cancel");
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
case 161:
{
if(strlen(PlayerInfo[playerid][pQuest3]) < 5)
{
SetPVarInt(playerid, "AppSetup", 8);
ShowPlayerDialog(playerid,162, DIALOG_STYLE_INPUT, "Tutorial", "What do you do if you spot a hacker?", "Next", "Cancel");
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
case 162:
{
if(strlen(PlayerInfo[playerid][pQuest4]) < 5)
{
SetPVarInt(playerid, "AppSetup", 9);
ShowPlayerDialog(playerid,163, DIALOG_STYLE_INPUT, "Tutorial", "Are you allowed to rob somebody that is under 20 Time-In-LS?", "Next", "Cancel");
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
case 163:
{
if(strlen(PlayerInfo[playerid][pQuest5]) < 5)
{
SetPVarInt(playerid, "AppSetup", 10);
ShowPlayerDialog(playerid,164, DIALOG_STYLE_INPUT, "Tutorial", "Are you allowed to use /report to talk to an admin?", "Next", "Cancel");
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
case 164:
{
new string[128], playersip[128];
GetPlayerIp(playerid,playersip,sizeof(playersip));
DeletePVar(playerid,"AppSetup"), DeletePVar(playerid,"TutQuestAmount");
SendClientMessage(playerid,COLOR_WHITE,"Answers posted.");
format(string, sizeof(string), "RegWarn: %s posted their application answers type /answers %d to view.", PlayerName(playerid), playerid);
SendAdminAndRegMessage(0xFF0000FF,string);
format(string, sizeof(string), "RegWarn: PlayersIP: %s - PlayersDNS: %s.", playersip, PlayerInfo[playerid][pHost]);
SendAdminAndRegMessage(0xFF0000FF,string);
}
if(GetPVarInt(playerid, "Tut") == 0)
{
if(GetPVarInt(playerid, "Approve") == 0)
{
strmid(PlayerInfo[playerid][pOOC], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pMetagame], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pRevenge], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pRoleplay], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pPowergame], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pQuest1], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pQuest2], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pQuest3], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pQuest4], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pQuest5], "None", 0, strlen("None"), 255);
OnConnectInit(playerid);
//SetPlayerWorldBounds(playerid, -1857.7467, 57.3635, 1054.7097, 1728.326);
SetPlayerColor(playerid,0x80008096);
SetPlayerVirtualWorld(playerid,1);
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,-1857.7467, 57.3635, 1054.7097);
TogglePlayerControllableEx(playerid,false);
SetPVarInt(playerid, "Mute", 1);
SetPVarInt(playerid, "Tut", 0);
SetPlayerSkin(playerid,25);
SetPVarInt(playerid, "TutQuestAmount", 0);
ShowPlayerDialog(playerid,154, DIALOG_STYLE_INPUT, "Tutorial", "What is OOC and IC stand for?", "Next", "Cancel");
return CallRemoteFunction("TutorialAnswers","i",playerid);
|
This?
PHP код:
|
|
Sorry if i am slow but what u mean exactly with set the players answers?
|
|
Ok. Tell me how does the player answer what is the definition of OOC and IC definition? Where does the player write the text?
|
strmid(PlayerInfo[playerid][pOOC], inputtext, 0, strlen(inputtext), 255);