Код:
new rand = random(10)+1;
switch(rand)
{
case 0, 1:
{
if(strlen(PlayerInfo[playerid][pOOC]) < 5)
{
SetPVarInt(playerid,"Tut", 1);
SetPVarInt(playerid,"Approve", 1);
SetPVarInt(playerid,"Mute", 0);
SetPlayerWorldBounds(playerid, 4507.66, -2989.536, 2989.536, -4274.103); // Whole LS
OnConnectInit(playerid);
SetPlayerMoney(playerid,5000);
SetPVarInt(playerid, "Bank", 0);
SetPVarInt(playerid, "PlayerLogged", 1);
DeletePVar(playerid, "LableDraw");
OnPlayerDataSave(playerid);
LoadTutorialP(playerid);
SetPlayerColor(playerid,COLOR_WHITE);
DeletePVar(playerid,"AppSetup");
DeletePVar(playerid, "RegPlayer");
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);
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
}
return true;
}