06.07.2012, 10:32
Quote:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (newkeys & KEY_SECONDARY_ATTACK) { if(gTeam[playerid] == Police) if(IsPlayerInRangeOfPoint(playerid, 1.0,2481.3732, -1671.9863, 13.8873)) { if (isopen1 == 0) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What Would You Like To Do", "Open\nClose\nInfo", "Select", "Close"); MoveObject(test,2494.1902, -1670.2520, 11.6533,0.90); ApplyAnimation(playerid, "HEIST9", "Use_SwipeCard", 4.0, 0, 0, 0, 0, 0); GameTextForPlayer(playerid, "~b~Cell 1 ~g~Opening",1500,4); isopen1 = 1; return 1; } else if(gTeam[playerid] == Mafia) { SendClientMessage(playerid,COLOR_BLUE,"Sorry Your Not On The Police Team "); } if (isopen1 == 1) { MoveObject(test, 2485.69, -1670.25, 11.65,0.90); ApplyAnimation(playerid, "HEIST9", "Use_SwipeCard", 4.0, 0, 0, 0, 0, 0); GameTextForPlayer(playerid, "~b~Cell 1 ~r~ Closing",1500,4); isopen1 = 0; return 1; } } } return 1; } |