SA-MP Forums Archive
Buttons id - 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: Buttons id (/showthread.php?tid=480541)



Buttons id - Doros - 11.12.2013

I got a mode and Im dont know how to open the LSPD Door
Im Searched in the Pawn And I see Button id How can I know what Button it is
Like (F) Or ©


Re: Buttons id - Kyance - 11.12.2013

Is this what you're looking for?
https://sampwiki.blast.hk/wiki/Keys


Re: Buttons id - Doros - 11.12.2013

Quote:
Originally Posted by Kyance
Посмотреть сообщение
Is this what you're looking for?
https://sampwiki.blast.hk/wiki/Keys
No Look
PHP код:
    PrisonButtons[0] = CreateButton(-2097, -191.100006996.29998790); // Control Room 
How can I know what key is it?
Other Mods Just Press (F) and the object move


Re: Buttons id - davve95 - 11.12.2013

https://sampwiki.blast.hk/wiki/MoveObject

?


Re: Buttons id - Doros - 11.12.2013

Quote:
Originally Posted by davve95
Посмотреть сообщение
No I got the LSPD Locker DOOR to enter it We are Clickling on F But in my GM its not F Its other Key
How can I know What key is it?


Re: Buttons id - KingServerIRAN - 11.12.2013

https://sampwiki.blast.hk/wiki/GetPlayerKeys ?? or https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange ? ?


Re: Buttons id - Doros - 11.12.2013

Quote:
Originally Posted by KingServerIRAN
Посмотреть сообщение
no no no You Know RolePlay Server ?
To enter the Locker Room You need to press on Some Key that the Scripter Choosed it.
I want to know what is the Key Because In the Line it Write
PHP код:
if (buttonid == PrisonButtons[0] || buttonid == PrisonButtons[3] || buttonid == PrisonButtons[5] || buttonid == PrisonButtons[6]) 
Here is all the Lines
PHP код:
if (buttonid == PrisonButtons[0] || buttonid == PrisonButtons[3] || buttonid == PrisonButtons[5] || buttonid == PrisonButtons[6])
    {
         if (
PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pMember] == 11)
           {
            
ShowPlayerDialog(playeridPANELDIALOG_STYLE_LIST"Verdant Bluffs Correctional Facility Controls""Prison Controls\r\nLockdown All\r\nClear Lockdown\r\nDistress Beacon""Select""Cancel");
        }
        else return 
SendClientMessageEx(playeridCOLOR_GREY"You are not authorized to use the control panel.");
    }
    if(
buttonid == PrisonButtons[1])
    {
        if(
IsACop(playerid))
        {
             
MoveDynamicObject(BlastDoors[0],-2093.0048828125, -203.931106567381994.66918945311);
            
SetTimer("ClosePrisonDoor"30000);
        }
        else return 
SendClientMessageEx(playeridCOLOR_GREY"You are not authorized to use this control panel.");
    }
    if(
buttonid == PrisonButtons[2])
    {
        if(
IsACop(playerid))
        {
            
MoveDynamicObject(BlastDoors[1], -2088.7998046875, -211.29980468751996.70629882811);
             
MoveDynamicObject(BlastDoors[6], -2088.76562500,-209.21093750,998.669189451);
            
SetTimer("ClosePrisonDoor2"30000);
        }
        else return 
SendClientMessageEx(playeridCOLOR_GREY"You are not authorized to use this control panel.");
    }
    if(
buttonid == PrisonButtons[4]) //
    
{
        if(
IsACop(playerid))
        {
             
MoveDynamicObject(BlastDoors[11], -2050.50097656,-205.82617188,987.025390621);
            
SetTimer("ClosePrisonDoor3"30000);
        }
        else return 
SendClientMessageEx(playeridCOLOR_GREY"You are not authorized to use this control panel.");
    }
    if(
buttonid == PrisonButtons[7]) //
    
{
        if(
IsACop(playerid))
        {
             
MoveDynamicObject(BlastDoors[14], -2057.9, -143.4987.241);
            
SetTimer("ClosePrisonDoor4"30000);
        }
        else return 
SendClientMessageEx(playeridCOLOR_GREY"You are not authorized to use this control panel.");
    } 
What is the Key To look on the Dialog?


Re: Buttons id - Doros - 11.12.2013

Someone??


Re: Buttons id - Doros - 12.12.2013

Someone


Re: Buttons id - Doros - 13.12.2013

Comeone someone Please Help me