Error with gate open on "H"
#1

For some reason my gate won't open when pressing the HORN key.
My command /swipecard works, but the H key won't..
This is my code.
Код:
	if(newstate & KEY_CROUCH)
	{
		if(IsPlayerInRangeOfPoint(playerid, 3, 2850.5952,2613.0771,10.8203))
		{
			MoveObject(Truck1Gate, 2857.20068, 2612.86646, 7.01409, 1);
			SendClientMessage(playerid, COLOR_ADMIN, "Poarta sa deschis pentru 6 secunde.");
			SetTimerEx("CloseGate", 10000, false, "i", playerid);
		}
	}
Reply
#2

PHP код:
if(newstate == KEY_CROUCH
Reply
#3

What is newstate? You need keys. GetPlayerKeys

https://sampwiki.blast.hk/wiki/GetPlayerKeys
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)