[Duda]Yom_Buttons
#2

Mira este ejemplo.

Quote:
Originally Posted by Southclaw
pawn Код:
new btn_GateActivate;

public OnGameModeInit()
{
    btn_GateActivate = CreateButton(-174.3534, 2375.4634, 46.2856, "Press ~k~~VEHICLE_ENTER_EXIT~ open the gate");
}


public OnButtonPress(playerid, buttonid)
{
    if(buttonid == btn_GateActivate)
    {
        MoveDynamicObject(GateObject, -184.2654, 2373.3563, 51.3534);
        SendClientMessage(playerid, 0xFFBBCCFF, "Gate Open!");
    }
}
Bбsicamente las coordenadas de ahн son para el objeto, de ahн se crea un radio.
Reply


Messages In This Thread
[Duda]Yom_Buttons - by Fornew - 27.01.2014, 01:44
Respuesta: [Duda]Yom_Buttons - by Zume - 27.01.2014, 01:47
Respuesta: [Duda]Yom_Buttons - by Fornew - 27.01.2014, 01:52
Respuesta: [Duda]Yom_Buttons - by Zume - 27.01.2014, 04:02

Forum Jump:


Users browsing this thread: 1 Guest(s)