Help With ClientMessage
#1

I have create this all work nothing not work but the problem is when i get the lift down its give me message

Lift Going Down


but when i press F Key again to make him go up its go but he send me 2 of clientmessags


Lift Going Down
Lift Going Up


like this how i can make him when i press F againt o make lift up send only this message


Lift Going Up

Help me!

Код:
	if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && PRESSED(KEY_SECONDARY_ATTACK))
	{
	    new Float:x,Float:y,Float:z;
		GetPlayerPos(playerid,x,y,z);
		if(gTeam[playerid] == TEAM_ARMY && x >= 999.9721 && x <= 1029.7795 && y >= -2351.1658 && y <= -2321.1563)
		{
			MoveObject(lift1,1013.67, -2338.25, 11.59,3);
			SendClientMessage(playerid, COLOR_GREEN,"Lift Going Down");

		}
	 	if(gTeam[playerid] == TEAM_ARMY && x >= 999.9721 && x <= 1029.7795 && y >= -2351.1658 && y <= -2321.1563)
		{

		    GetObjectPos(lift1,x,y,z);
			if(x == 1013.67 && y == -2338.25 && z == 11.59)
			{
	    		MoveObject(lift1,1013.67, -2338.25, 18.62,3);
				SendClientMessage(playerid, COLOR_GREEN,"Lift Going Up");
		

	    
			}

		}

	}
Reply


Messages In This Thread
Help With ClientMessage - by [MKD]Max - 10.09.2011, 08:10
Re: Help With ClientMessage - by Davz*|*Criss - 10.09.2011, 08:13
Re: Help With ClientMessage - by [MKD]Max - 10.09.2011, 08:57

Forum Jump:


Users browsing this thread: 1 Guest(s)