pawn Код:
if(strcmp(cmd, "/opengate", true) == 0)
{
if(PlayerInfo[playerid][pLeader] == 1|| PlayerInfo[playerid][pMember] == 1)
{
MoveObject(PDGATE, 1602.288940, -1638.424194, 13.113057,2.5);//You forgot to define the speed of the gate
SendClientMessage(playerid,COLOR_GREEN, "You opening the Police Department Gate");
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are not a Police Officer!");
}
return 1;
}