SA-MP Forums Archive
How can I know What Key Used? - 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: How can I know What Key Used? (/showthread.php?tid=480790)



How can I know What Key Used? - Doros - 12.12.2013

PHP код:
if (buttonid == PrisonButtons[0] || buttonid == PrisonButtons[3] || buttonid == PrisonButtons[5] || buttonid == PrisonButtons[6]) 
    { 
         if (
PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 11) 
           { 
            
ShowPlayerDialog(playerid, PANEL, DIALOG_STYLE_LIST, "Verdant Bluffs Correctional Facility Controls", "Prison Controls\r\nLockdown All\r\nClear Lockdown\r\nDistress Beacon", "Select", "Cancel"); 
        } 
        else return 
SendClientMessageEx(playerid, COLOR_GREY, "You are not authorized to use the control panel."); 
    } 
    if(
buttonid == PrisonButtons[1]) 
    { 
        if(
IsACop(playerid)) 
        { 
             
MoveDynamicObject(BlastDoors[0],-2093.0048828125, -203.93110656738, 1994.6691894531, 1); 
            
SetTimer("ClosePrisonDoor", 3000, 0); 
        } 
        else return 
SendClientMessageEx(playerid, COLOR_GREY, "You are not authorized to use this control panel."); 
    } 
    if(
buttonid == PrisonButtons[2]) 
    { 
        if(
IsACop(playerid)) 
        { 
            
MoveDynamicObject(BlastDoors[1], -2088.7998046875, -211.2998046875, 1996.7062988281, 1); 
             
MoveDynamicObject(BlastDoors[6], -2088.76562500,-209.21093750,998.66918945, 1); 
            
SetTimer("ClosePrisonDoor2", 3000, 0); 
        } 
        else return 
SendClientMessageEx(playerid, COLOR_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.02539062, 1); 
            
SetTimer("ClosePrisonDoor3", 3000, 0); 
        } 
        else return 
SendClientMessageEx(playerid, COLOR_GREY, "You are not authorized to use this control panel."); 
    } 
    if(
buttonid == PrisonButtons[7]) // 
    
{ 
        if(
IsACop(playerid)) 
        { 
             
MoveDynamicObject(BlastDoors[14], -2057.9, -143.4, 987.24, 1); 
            
SetTimer("ClosePrisonDoor4", 3000, 0); 
        } 
        else return 
SendClientMessageEx(playerid, COLOR_GREY, "You are not authorized to use this control panel."); 
    } 
Where I need to look to know what key move the Object?


Re: How can I know What Key Used? - Doros - 13.12.2013

Someone?


Re: How can I know What Key Used? - ProjectNewYork - 13.12.2013

Actually, these are buttons. You can open them by pressing F key once near them.

If u need any help tell me


Re: How can I know What Key Used? - Doros - 13.12.2013

Quote:
Originally Posted by ProjectNewYork
Посмотреть сообщение
Actually, these are buttons. You can open them by pressing F key once near them.

If u need any help tell me
but its not F can You help me?


Re: How can I know What Key Used? - Doros - 13.12.2013

?


Re: How can I know What Key Used? - Doros - 13.12.2013

Im waiting Please Answer