SA-MP Forums Archive
[HELP]yom_buttons - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP]yom_buttons (/showthread.php?tid=370915)



[HELP]yom_buttons - Orhun_Kaya - 21.08.2012

hello I create buttons for lspd but doesn't work I don't see button here codes
pawn Код:
#define FILTERSCRIPT

#include <a_samp>
#include <yom_buttons>

new Button[4];
new LSPDKapi[4];

public OnFilterScriptInit()
{
    Button[0] = CreateButton(245.10000610,72.30000305,1004.09997559,0.00000000);
//  CreateObject(2886,245.10000610,72.30000305,1004.09997559,0.00000000,0.00000000,0.00000000); //object(sec_keypad) (1)
    LSPDKapi[0] = CreateObject(2987,246.39999390,72.50000000,1003.90002441,0.00000000,0.00000000,0.00000000); //kapali
//  CreateObject(2987,244.89999390,72.50000000,1003.90002441,0.00000000,0.00000000,0.00000000); //acik
    print(" LSPD Buttons");
    return 1;
}

public OnPlayerPressButton(playerid, buttonid)
{
    if (buttonid == Button[0])
    {
    SendClientMessage(playerid, -1, "Test1");
    MoveObject(LSPDKapi[0],244.89999390,72.50000000,1003.90002441,0.00000000,0.00000000,0.00000000);
    }
    else
    {
    SendClientMessage(playerid,  -1, "Test2");
    }
    return false;
}