Help OnPlayerPressButton not working
#1

MY Code:
Код:
new FBILobbyLeftBTN[2]
new FBILobbyLeft;
Код:
FBILobbyLeftBTN[0] = CreateButton(297.66613770,-1498.67749023,-44.59006119,0.79565430); //Lobby Button Left
FBILobbyLeftBTN[1] = CreateButton(297.24850464,-1498.23107910,-44.59006119,180); //Lobby Button Left
FBILobbyLeft = CreateDynamicObject(1536,295.40136719,-1498.43457031,-46.13965225,0.00000000,0.00000000,0.00000000,1324123, .interiorid = 1); //Lobby Door Left
Код:
public OnPlayerPressButton(playerid, buttonid)
{
	if(buttonid == FBILobbyLeftBTN[0] || buttonid == FBILobbyLeftBTN[1])
	{
	    if(IsACop(playerid))
	    {
	        MoveDynamicObject(FBILobbyLeft,293.93002319,-1498.43457031,-46.13965225,4);
			SetTimer("CloseFBILobbyLeft", 2500, 0);
	    }
	    else
	    {
	        SendClientMessageEx(playerid,COLOR_GREY,"Access denied.");
			return 1;
		}
	}
}
Код:
forward CloseFBILobbyLeft();
public CloseFBILobbyLeft()
{
	MoveDynamicObject(FBILobbyLeft,295.40136719,-1498.43457031,-46.13965225,4);
	return 1;
}
Problem:
there is not any action that occurs when the Enter / F near 'Button' above includes no (Action / Message "Acess ...")! BAD ENGLISH, Sorry
Reply
#2

Did you put the yom_buttons filterscript ?
Reply
#3

Yes, I did but not effective
Reply
#4

help me pleasE !
Reply
#5

if you open the server you should have added buttons on the line of the filterscripts ( on server.cfg ) had same problem
Reply
#6

How to do it ?
Reply
#7

tks for rep, it's working
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)