17.07.2012, 22:16
pawn Код:
if(!strcmp(cmdtext, "/open", true))
{
if(IsPlayerInRangeOfPoint(playerid, 10, 1410.19995117, -1650.09997559, 13.80000019))
{
MoveObject(GateOpen, 1410.09997559, -1650.09997559, 10.80000019, 3);
SendClientMessage(playerid, 0xEF994300, "You have opened the gate.");
}
if(IsPlayerInRangeOfPoint(playerid, 10, 955.70001221,-50.70000076,1002.00000000))
{
MoveObject(Door, 955.70001221,-50.59999847,998.20001221, 3);
}
return 1;
}
if(!strcmp(cmdtext, "/close", true))
{
if(IsPlayerInRangeOfPoint(playerid, 10, 1410.19995117,-1650.09997559,13.80000019))
{
MoveObject(GateOpen, 1410.19995117, -1650.09997559, 13.80000019, 3);
SendClientMessage(playerid, 0xEF994300, "You have closed the gate.");
}
if(IsPlayerInRangeOfPoint(playerid, 10, 955.40002441,-49.90000153,1000.09997559))
{
MoveObject(Door, 955.70001221,-50.70000076,1002.00000000, 3);
}
return 1;
}