Buttons id
#1

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 ©
Reply
#2

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

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
Reply
#4

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

?
Reply
#5

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?
Reply
#6

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

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?
Reply
#8

Someone??
Reply
#9

Someone
Reply
#10

Comeone someone Please Help me
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)