again me! Look Here!!and help!
#3

or try this:
Код:
//init
gate1 = CreateObject(971, 2916.6887, -791.7552, 13.6093, 0.0000, 0.0000, 270.0000);
gate2 = CreateObject(971, 2916.6934, -785.8185, 13.6021, 0.0000, 0.0000, 270.0000);
gate3 = CreateObject(971, 2919.5332, -826.4330, 14.3749, 0.0000, 0.0000, 270.0000);
SetTimer("zadm",3000,1);
//down
forward zadm();
public zadm()
{
	for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
	{
		if(PlayerToPoint(15.0, playerid,2909.1292, -790.3306, 10.2547)&& OpenGate1[playerid] == false)
		{
			if(IsPlayerXAdmin(playerid)) return OpenGate1[playerid] = true,
			MoveObject(gate1, 2916.7163, -791.7419, 0.4390, 2.0),
			MoveObject(gate2, 2916.6914, -785.7935, 0.3271, 2.0),
			GameTextForPlayer(playerid, "Welcome", 5000, 3);
			if (!IsPlayerXAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED,"You Must Be Admin!!!");
		}else if(!PlayerToPoint(15.0, playerid,2909.1292, -790.3306, 10.2547)&& OpenGate1[playerid] == true)
		{
			if(IsPlayerXAdmin(playerid))return OpenGate1[playerid] = false,
			MoveObject(gate1, 2916.6887, -791.7552, 13.6093, 2.0),
			MoveObject(gate2, 2916.6934, -785.8185, 13.6021, 2.0);
			if(!IsPlayerXAdmin(playerid))return SendClientMessage(playerid, COLOR_RED,"You Must Be Admin!!!");
		}
		//poarta2
		if(PlayerToPoint(15.0, playerid,2938.6484,-826.6721,11.7429)&& OpenGate2[playerid] == false)
		{
			if(IsPlayerXAdmin(playerid)) return OpenGate2[playerid] = true,
			MoveObject(gate3, 2919.5359, -826.4325, 6.5434, 2.0),
			GameTextForPlayer(playerid, "Bye!", 5000, 3);
			if(IsPlayerCommandLevel(playerid,"0"))return SendClientMessage(playerid, COLOR_RED,"You Must Be Admin!!!");
		}else if(!PlayerToPoint(15.0, playerid,2938.6484,-826.6721,11.7429)&& OpenGate2[playerid] == true)
		{
			if(IsPlayerXAdmin(playerid))return OpenGate2[playerid] = false,
			MoveObject(gate3, 2919.5332, -826.4330, 14.3749, 2.0);
			if(!IsPlayerXAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED,"You Must Be Admin!!!");
		}
		return 1;
	}
}
i added for(new playerid=0; playerid<MAX_PLAYERS; playerid++) , dunno if it works havent tested it/
edit: sry i forgot somethig.. post updated
Reply


Messages In This Thread
again me! Look Here!!and help! - by Serediucr - 30.06.2009, 12:24
Re: again me! Look Here!!and help! - by Grim_ - 30.06.2009, 12:29
Re: again me! Look Here!!and help! - by Gamer_Z - 30.06.2009, 12:32
Re: again me! Look Here!!and help! - by Serediucr - 30.06.2009, 12:32
Re: again me! Look Here!!and help! - by Grim_ - 30.06.2009, 12:34
Re: again me! Look Here!!and help! - by Serediucr - 30.06.2009, 12:34
Re: again me! Look Here!!and help! - by Grim_ - 30.06.2009, 12:35
Re: again me! Look Here!!and help! - by Gamer_Z - 30.06.2009, 12:37
Re: again me! Look Here!!and help! - by Serediucr - 30.06.2009, 12:54
Re: again me! Look Here!!and help! - by Gamer_Z - 30.06.2009, 12:55

Forum Jump:


Users browsing this thread: 3 Guest(s)