how to force a command
#7

Код:
/*------------------------------------------------------
-> Server login system
------------------------------------------------------*/
	new tmp;
	tmp = dini_Int("/eAdmin/Config/config.ini","MustLogin");

	if(tmp == 1)
	{
	  	if(dUserINT(GetName(playerid)).("Registered") == 1 && dUserINT(GetName(playerid)).("Loggedin") == 0)
	  	{
 			logged[playerid]=0;
			SelectTextDraw(playerid,COLOR_RED);

	  	    PlayerTextDrawHide(playerid,textdraw37);
			PlayerTextDrawHide(playerid,textdraw38);
			PlayerTextDrawHide(playerid,textdraw39);
			PlayerTextDrawHide(playerid,textdraw40);

			PlayerTextDrawHide(playerid,textdraw_10);

		    TextDrawShowForPlayer(playerid, Textdraw0);
			TextDrawShowForPlayer(playerid, Textdraw1);

			TextDrawHideForPlayer(playerid, Textdraw2);
			TextDrawHideForPlayer(playerid, Textdraw3);
			TextDrawHideForPlayer(playerid, Textdraw4);
			TextDrawHideForPlayer(playerid, Textdraw5);
			TextDrawHideForPlayer(playerid, Textdraw6);
			TextDrawHideForPlayer(playerid, Textdraw7);
			TextDrawHideForPlayer(playerid, Textdraw8);
			TextDrawHideForPlayer(playerid, Textdraw9);
			TextDrawHideForPlayer(playerid, Textdraw10);
			TextDrawHideForPlayer(playerid, Textdraw11);
			TextDrawHideForPlayer(playerid, Textdraw12);
			TextDrawHideForPlayer(playerid, Textdraw13);
			TextDrawHideForPlayer(playerid, Textdraw14);
			TextDrawHideForPlayer(playerid, Textdraw15);
			TextDrawHideForPlayer(playerid, Textdraw16);
			TextDrawHideForPlayer(playerid, Textdraw17);
			TextDrawHideForPlayer(playerid, Textdraw18);
			TextDrawHideForPlayer(playerid, Textdraw19);
			TextDrawHideForPlayer(playerid, Textdraw20);
			TextDrawHideForPlayer(playerid, Textdraw21);
			TextDrawHideForPlayer(playerid, Textdraw22);
			TextDrawHideForPlayer(playerid, Textdraw23);
			TextDrawHideForPlayer(playerid, Textdraw24);
			TextDrawHideForPlayer(playerid, Textdraw25);
			TextDrawHideForPlayer(playerid, Textdraw26);
			TextDrawHideForPlayer(playerid, Textdraw27);
			TextDrawHideForPlayer(playerid, Textdraw28);
			TextDrawHideForPlayer(playerid, Textdraw29);
			TextDrawHideForPlayer(playerid, Textdraw30);
			TextDrawHideForPlayer(playerid, Textdraw31);
			TextDrawHideForPlayer(playerid, Textdraw32);
			TextDrawHideForPlayer(playerid, Textdraw33);
			TextDrawHideForPlayer(playerid, Textdraw34);
			TextDrawHideForPlayer(playerid, Textdraw35);
			TextDrawHideForPlayer(playerid, Textdraw36);
			TextDrawHideForPlayer(playerid, Textdraw37);
			TextDrawHideForPlayer(playerid, Textdraw38);
			TextDrawHideForPlayer(playerid, Textdraw39);
			TextDrawHideForPlayer(playerid, Textdraw40);
			TextDrawHideForPlayer(playerid, Textdraw41);
			TextDrawHideForPlayer(playerid, Textdraw42);
			TextDrawHideForPlayer(playerid, Textdraw43);
			TextDrawHideForPlayer(playerid, Textdraw44);
			TextDrawHideForPlayer(playerid, Textdraw45);
			TextDrawHideForPlayer(playerid, Textdraw46);
			TextDrawHideForPlayer(playerid, Textdraw48);
			TextDrawHideForPlayer(playerid, Textdraw49);

			PlayerTextDrawHide(playerid, Textdraw50);


			for(new g; g<MAX_TEAMS; g++)
			{
		  		TextDrawHideForPlayer(playerid, textdraw2[g]);

				TextDrawHideForPlayer(playerid, textdraw4[g]);
				TextDrawHideForPlayer(playerid, textdraw5[g]);

				TextDrawHideForPlayer(playerid, textdraw7[g]);
				TextDrawHideForPlayer(playerid, textdraw8[g]);

				TextDrawHideForPlayer(playerid, textdraw10[g]);
				TextDrawHideForPlayer(playerid, textdraw11[g]);

				TextDrawHideForPlayer(playerid, textdraw13[g]);
				TextDrawHideForPlayer(playerid, textdraw14[g]);

				TextDrawHideForPlayer(playerid, textdraw16[g]);
				TextDrawHideForPlayer(playerid, textdraw17[g]);

				TextDrawHideForPlayer(playerid, textdraw19[g]);
				TextDrawHideForPlayer(playerid, textdraw20[g]);

				TextDrawHideForPlayer(playerid, textdraw22[g]);
				TextDrawHideForPlayer(playerid, textdraw23[g]);

				TextDrawHideForPlayer(playerid, textdraw25[g]);
				TextDrawHideForPlayer(playerid, textdraw26[g]);

				TextDrawHideForPlayer(playerid, textdraw28[g]);
				TextDrawHideForPlayer(playerid, textdraw29[g]);

				TextDrawHideForPlayer(playerid, textdraw31[g]);
			}
			TextDrawHideForPlayer(playerid, textdraw3);

			TextDrawHideForPlayer(playerid, textdraw6);

			TextDrawHideForPlayer(playerid, textdraw9);

			TextDrawHideForPlayer(playerid, textdraw12);

			TextDrawHideForPlayer(playerid, textdraw15);

			TextDrawHideForPlayer(playerid, textdraw18);

			TextDrawHideForPlayer(playerid, textdraw21);

			TextDrawHideForPlayer(playerid, textdraw24);

			TextDrawHideForPlayer(playerid, textdraw27);

			TextDrawHideForPlayer(playerid, textdraw30);

			TextDrawHideForPlayer(playerid, textdraw32);
			TextDrawHideForPlayer(playerid, textdraw33);
			TextDrawHideForPlayer(playerid, textdraw34);
			TextDrawHideForPlayer(playerid, textdraw35);

	  	    SetPlayerPos(playerid, 1380.6447,-1753.0427,13.5469);
			SetPlayerFacingAngle(playerid, 269.6420);
			SetPlayerCameraPos(playerid, 1387.2906,-1752.8887,13.3828);
			SetPlayerCameraLookAt(playerid, 1380.6447,-1753.0427,13.5469);
			SetPlayerSkin(playerid,TeamInfo[0][TeamSkin]);
			SetPlayerTeam(playerid,TEAM_0);
			return 1;
	  	}
	}
Reply


Messages In This Thread
how to force a command - by Akeem - 08.02.2018, 20:27
Re: how to force a command - by MarkNelson - 08.02.2018, 20:32
Re: how to force a command - by solstice_ - 08.02.2018, 21:57
Re: how to force a command - by RogueDrifter - 08.02.2018, 22:02
Re: how to force a command - by Akeem - 08.02.2018, 23:37
Re: how to force a command - by RogueDrifter - 09.02.2018, 00:39
Re: how to force a command - by Akeem - 09.02.2018, 01:10
Re: how to force a command - by RogueDrifter - 09.02.2018, 01:12
Re: how to force a command - by Akeem - 09.02.2018, 01:21
Re: how to force a command - by RogueDrifter - 09.02.2018, 01:23

Forum Jump:


Users browsing this thread: 1 Guest(s)