SA-MP Forums Archive
Ran 10 - 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: Ran 10 (/showthread.php?tid=586578)



Ran 10 - alexanderjb918 - 23.08.2015

Код:
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;
}
How do i change it so it just picks that?


Re: Ran 10 - Abagail - 23.08.2015

Just remove the entire switch & random function.