//CreateObject(968, -1701.5, 687.59997558594, 24.89999961853, 0, 0, 96); pdgate2 = CreateObject(968, -1701.4000244141, 687.70001220703, 24.700000762939, 0, 90, 270.00051879883); |
if(strcmp(cmd, "/pdgateo2", true) == 0) { if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) { if (PlayerToPoint(8, playerid,-1701.5, 687.59997558594, 24.89999961853) || PlayerToPoint(3,playerid,-1701.5, 687.59997558594, 24.89999961853) || PlayerInfo[playerid][pLocal] != 255) { format(string, sizeof(string), "* Officer %s click on the remote control and open the gate", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); MoveObject(pdgate2, -1701.5, 687.59997558594, 24.89999961853, 5); } } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not a Cop !"); } } return 1; } |