That's not the buttons he's talking about... He's talking about the ones where you press the action key, and the character pushes a wall mounted button, to open the door.
|
if (buttonid == PrisonButtons[0]) { if (IsACop(playerid)) { MoveDynamicObject(prisonbutton0,2578.28296, -1496.61218, -47.34000,0); SetTimer("ClosePrisonDoor0", 3000, 0); } else return SendClientMessageEx(playerid, COLOR_WHITE, "Access Denied."); } if(buttonid == PrisonButtons[1]) { if(IsACop(playerid)) { MoveDynamicObject(prisonbutton1,2595.95532, -1487.13977, -49.92000, 0); SetTimer("ClosePrisonDoor1", 3000, 0); } else return SendClientMessageEx(playerid, COLOR_GREY, "Access Denied."); } if(buttonid == PrisonButtons[2]) { if(IsACop(playerid)) { MoveDynamicObject(prisonbutton2,2595.95532, -1487.13977, -49.92000, 0); SetTimer("ClosePrisonDoor2", 3000, 0); } else return SendClientMessageEx(playerid, COLOR_GREY, "Access Denied."); } if(buttonid == PrisonButtons[3]) { if(IsACop(playerid)) { MoveDynamicObject(prisonbutton3,2587.85669, -1496.61206, -47.34000, 0); SetTimer("ClosePrisonDoor3", 3000, 0); } else return SendClientMessageEx(playerid, COLOR_GREY, "Access Denied."); } if(buttonid == PrisonButtons[4]) { if(IsACop(playerid)) { MoveDynamicObject(prisonbutton4,2571.82983, -1532.14771, -47.34000, 0); SetTimer("ClosePrisonDoor4", 3000, 0); } else return SendClientMessageEx(playerid, COLOR_GREY, "Access Denied."); } if(buttonid == PrisonButtons[5]) { if(IsACop(playerid)) { MoveDynamicObject(prisonbutton5,2571.82983, -1532.14771, -47.34000, 0); SetTimer("ClosePrisonDoor5", 3000, 0); } else return SendClientMessageEx(playerid, COLOR_GREY, "Access Denied."); } if(buttonid == PrisonButtons[6]) { if(IsACop(playerid)) { MoveDynamicObject(prisonbutton6,2593.54297, -1497.40930, -47.34000, 0); SetTimer("ClosePrisonDoor6", 3000, 0); } else return SendClientMessageEx(playerid, COLOR_GREY, "Access Denied."); } if(buttonid == PrisonButtons[7]) { if(IsACop(playerid)) { MoveDynamicObject(prisonbutton7,2593.54297, -1497.40930, -47.34000, 0); SetTimer("ClosePrisonDoor7", 3000, 0); } else return SendClientMessageEx(playerid, COLOR_GREY, "Access Denied."); } if(buttonid == PrisonButtons[8]) { if(IsACop(playerid)) { MoveDynamicObject(prisonbutton8,2577.50000, -1484.82642, -49.92000, 0); SetTimer("ClosePrisonDoor8", 3000, 0); } else return SendClientMessageEx(playerid, COLOR_GREY, "Access Denied."); } if(buttonid == PrisonButtons[9]) { if(IsACop(playerid)) { MoveDynamicObject(prisonbutton9,2577.50000, -1484.82642, -49.92000, 0); SetTimer("ClosePrisonDoor9", 3000, 0); } else return SendClientMessageEx(playerid, COLOR_GREY, "Access Denied."); }
MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed, Float:rx = -1000.0, Float:ry = -1000.0, Float:rz = -1000.0)