How can I know What Key Used?
#1

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."); 
    } 
Where I need to look to know what key move the Object?
Reply
#2

Someone?
Reply
#3

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

If u need any help tell me
Reply
#4

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

?
Reply
#6

Im waiting Please Answer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)