Help With Key
#1

what is worng why its not work i try to ways its under

1.
Код:
p
ublic OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	new Float:X,Float:Y,Float:Z;
	GetPlayerPos(playerid,X,Y,Z);
	if(PRESSED(KEY_SECONDARY_ATTACK))
	{

	if(X >= 1019.6192 && X <= 1047.1677 && Y >= -2321.0471 && Y <= -2347.2522)
             {
		SendClientMessage(playerid,COLOR_GREEN,"Lift is Going Up");
		MoveObject(lift,1024.61, -2345.58, 12.60,3);
	}
	}
	return 1;
}
2.
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	new Float:X,Float:Y,Float:Z;
	GetPlayerPos(playerid,X,Y,Z);
	if(X >= 1019.6192 && X <= 1047.1677 && Y >= -2321.0471 && Y <= -2347.2522)
	{
	if(PRESSED(KEY_SECONDARY_ATTACK))
	{
		SendClientMessage(playerid,COLOR_GREEN,"Lift is Going Up");
		MoveObject(lift,1024.61, -2345.58, 12.60,3);
	}
	}
	return 1;
}
Reply


Messages In This Thread
Help With Key - by [MKD]Max - 08.07.2011, 15:39
Re: Help With Key - by Rolyy - 08.07.2011, 16:42

Forum Jump:


Users browsing this thread: 1 Guest(s)