new police_gate; public OnGameModeInit() { police_gate = CreateObject(288,1588.6232,-1637.9790,13.4301,179.2121,0.000000,0.260944); } if(strcmp(cmdtext, "/Opengate", true) == 0) { if(PlayerInfo[playerid][pMember] == 1) { SendClientMessage(playerid, COLOR_GREEN,"Opening gate now, please wait..."); MoveObject(police_gate,1592.1737,-1638.2986,13.4820|, 2.5); return 1; } else { SendClientMessage(playerid, COLOR_RED,"You are not a cop!"); return 1; } } if(strcmp(cmdtext, "/Closegate", true) == 0) { if(PlayerInfo[playerid][pMember] == 1) { SendClientMessage(playerid, COLOR_GREEN,"Closing gate now, please wait..."); MoveObject(police_gate,1588.6232,-1637.9790,13.4301, 2.5); return 1; } else { SendClientMessage(playerid, COLOR_RED,"You are not a cop!"); return 1; } }