07.01.2012, 11:17
This goes near the top of your script...or outside of the gate cmd
Hmm..try this, if it still doesn't work what are the objectname and objectname2 defines
pawn Код:
new bool:gateopen = false;
pawn Код:
CMD:gate(playerid, params[])
{
if(playerVariables[playerid][pGroup] == 5)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, -411.60000610352, 1361.6999511719, 31.200000762939))
{
if(gateopen == false)
{
MoveObject(objectname, -411.60000610352, 1362, 14.800000190735, 1);
}
else
{
MoveObject(objectname2, -411.60000610352, 1361.6999511719, 31.200000762939, 1);
}
}
else SendClientMessage(playerid, COLOR_RED, "You aren't near the S.A.S. gate!");
}
else return SendClientMessage(playerid, COLOR_RED, "You aren't part of S.A.S!");
return 1;
}